:root {
  color-scheme: light;
  --paper: #fbf8ef;
  --card: #fffcf5;
  --ink: #203229;
  --muted: #4e6256;
  --forest: #12392e;
  --forest-deep: #0e2e25;
  --fern: #2b5b4b;
  --leaf: #dce8da;
  --brass: #795b27;
  --line: #dcded1;
  --radius: 22px;
  --width: 73rem;
  --text: 'Segoe UI', Arial, sans-serif;
  --display: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: .25em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid #9a6a22; outline-offset: 4px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button[hidden] { display: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.033em; }
h1 { font-size: clamp(2.15rem, 5vw, 4.65rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.13rem; }
p + p { margin-top: .9rem; }
.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.measure { width: min(100%, 48rem); }
.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; translate: 0 -190%; background: white; color: var(--forest); padding: .65rem 1rem; border-radius: .4rem; }
.skip:focus { translate: 0 0; }
.top { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: var(--card); }
.top-inner { min-height: 75px; display: flex; align-items: center; gap: 1.3rem; }
.wordmark { display: inline-flex; align-items: center; gap: .68rem; flex-shrink: 0; color: var(--forest); text-decoration: none; line-height: 1.04; }
.wordmark img { width: 43px; height: 43px; border-radius: 50%; object-fit: cover; background: #e3e7d8; }
.wordmark b { display: block; font: 500 1.52rem/.98 var(--display); }
.wordmark small { display: block; margin-top: .34rem; color: var(--muted); font-size: .66rem; font-weight: 700; }
.primary { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.55rem, 1.45vw, 1.4rem); margin-left: auto; }
.primary a, .menu-panel a { text-decoration: none; font-weight: 650; }
.primary a { padding-block: .38rem; font-size: .86rem; }
.primary a[aria-current='page'], .menu-panel a[aria-current='page'] { text-decoration: underline; text-underline-offset: .35em; }
.top-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.language, .mobile { position: relative; }
.language summary, .mobile summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: var(--card); font-weight: 750; font-size: .84rem; }
summary::-webkit-details-marker { display: none; }
.language summary::after { content: ''; width: .38rem; height: .38rem; border: solid var(--forest); border-width: 0 1px 1px 0; rotate: 45deg; margin-top: -.15rem; }
.menu-panel { position: absolute; z-index: 12; right: 0; top: calc(100% + .55rem); display: grid; min-width: 12rem; max-width: min(76vw, 20rem); padding: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px #1f382225; }
.menu-panel a { hyphens: auto; padding: .54rem .8rem; border-radius: 8px; }
.menu-panel a:hover, .menu-panel a[aria-current='page'] { background: var(--leaf); color: var(--forest-deep); }
.mobile { display: none; }
.hamburger { width: .85rem; height: .65rem; border-block: 1.5px solid currentColor; position: relative; }
.hamburger::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1.5px solid currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: .45rem; padding: .66rem 1.03rem; border: 1px solid transparent; border-radius: 9px; background: var(--forest); color: white; font-weight: 700; text-decoration: none; line-height: 1.25; transition: background-color .18s, translate .18s; }
.button:hover { background: var(--fern); color: white; translate: 0 -2px; }
.button.secondary { background: transparent; color: var(--forest); border-color: #9baa9d; }
.button.secondary:hover { background: var(--leaf); color: var(--forest); }
.top .button { font-size: .83rem; white-space: nowrap; }
.masthead { background: linear-gradient(117deg, #f8f3e5 4%, #eef0e5 96%); border-bottom: 1px solid var(--line); }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(105px, 17.8vw, 212px); align-items: center; gap: clamp(.8rem, 4vw, 4rem); padding-block: clamp(1.45rem, 3.5vw, 3.4rem); }
.intro-text { min-width: 0; }
.intro-text h1 { max-width: 19ch; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.intro-text .lead { max-width: 68ch; margin-top: .78rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.21rem); }
.context, .crumbs { margin-bottom: .65rem; color: var(--brass); font-weight: 730; font-size: .81rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: inherit; }
.mascot { position: relative; display: grid; place-items: center; width: min(100%, 212px); aspect-ratio: 1; justify-self: end; isolation: isolate; }
.mascot::before { content: ''; position: absolute; inset: 9% 9% 7%; z-index: -1; border-radius: 49% 51% 47% 53%; border: 1px solid #869a84; background: linear-gradient(150deg, #f2e7ca, #cbd9c7); }
.mascot::after { content: ''; position: absolute; inset: 3% 3% 0; z-index: -1; border: 1px solid #aeb8a1; border-radius: 50%; transform: rotate(-12deg); }
.mascot img { width: 100%; filter: drop-shadow(0 6px 6px #2633262b); transform-origin: 50% 90%; animation: settle-in .7s ease-out both; transition: transform .24s ease; }
.mascot:hover img { transform: translateY(-4px) rotate(-2deg); }
@keyframes settle-in { from { opacity: .78; transform: translateY(8px) rotate(2deg); } to { opacity: 1; transform: translateY(0); } }
.home-mast { background: linear-gradient(118deg, #12382d, #205242); color: #fff9e9; }
.home-mast .mast-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .64fr); padding-block: clamp(2.5rem, 6vw, 5.2rem); }
.home-mast h1 { font-size: clamp(2.45rem, 7vw, 6rem); }
.home-mast .lead { color: #eef4e9; }
.home-mast .context { color: #ecd8a5; }
.home-mast .mascot { width: min(100%, 380px); }
.home-mast .mascot img { border-radius: 47% 47% 13% 13%; border: 2px solid #e7d59b; }
.home-mast .mascot::before { background: #bfb98a22; border-color: #f0dfab6e; }
.home-mast .mascot::after { border-color: #f0dfab70; }
.home-mast .button { color: var(--forest-deep); background: #ebd7a1; }
.home-mast .button:hover { background: #f5e5bb; }
.home-mast .button.secondary { background: transparent; color: #fff9e9; border-color: #e4efd7a1; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.section { padding-block: clamp(1.7rem, 4vw, 3.9rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head .lead { color: var(--muted); max-width: 60ch; }
.section-head h2 { max-width: 28ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .55rem; padding: 1.14rem 1.12rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
a.card { color: var(--forest); text-decoration: none; transition: translate .18s, border-color .18s; }
a.card:hover { translate: 0 -3px; border-color: #79947c; }
a.card h3 { text-decoration: underline; text-decoration-thickness: .075em; text-underline-offset: .2em; }
.card p { font-size: .94rem; color: var(--muted); }
.card .card-context { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .77rem; color: var(--brass); font-weight: 700; }
.card img { width: 65px; height: 65px; object-fit: contain; }
.card-mark { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: .25rem; font-size: .83rem; font-weight: 750; color: var(--forest); }
.lesson-card { min-height: 12rem; }
.intro-cards .card { position: relative; overflow: hidden; }
.intro-cards h3 { font-size: 1.25rem; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .95rem; list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: inline-block; padding: .58rem 0; }
.reading { max-width: 48rem; }
.reading :is(h2,h3,h4) { margin-top: 1.7em; margin-bottom: .52em; }
.reading > :is(h2,h3,h4):first-child { margin-top: 0; }
.reading h3 { font-weight: 750; }
.reading p { max-width: 76ch; }
.reading ul, .reading ol { padding-left: 1.35rem; }
.reading li + li { margin-top: .35rem; }
.reading blockquote { margin: 1.3rem 0; padding: .75rem 1.1rem; border-left: 3px solid #8a9b79; background: #eaf0e3; }
.reading table { border-collapse: collapse; display: block; width: 100%; overflow-x: auto; }
.reading :is(td,th) { min-width: 8rem; padding: .5rem; border: 1px solid var(--line); }
.reading :is(code,span,a,p,li) { overflow-wrap: anywhere; }
.service-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service-facts .card { justify-content: start; }
.service-facts ul { padding-left: 1.2rem; margin: .2rem 0 0; }
.service-facts li + li { margin-top: .28rem; }
.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fold > summary { padding: .92rem 1.1rem; font-weight: 750; color: var(--forest); }
.fold > .reading { padding: 0 1.1rem 1.1rem; }
.fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.video-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(15rem, .9fr); gap: clamp(1rem, 4vw, 2.15rem); align-items: start; }
.player { margin: 0; }
.video-surface { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--forest-deep); color: white; overflow: hidden; border-radius: var(--radius); }
.video-surface::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg,#00000022,#00000065); }
.video-surface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-surface .play { z-index: 1; background: #fffbf0; color: var(--forest-deep); border: 1px solid #fff; padding: .76rem 1rem; box-shadow: 0 8px 26px #00000049; }
.play-shape { width: 0; height: 0; border-block: .34rem solid transparent; border-left: .55rem solid currentColor; }
.video-surface .play:hover { background: #f2dfa7; }
.video-surface iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-surface.loaded::after { display: none; }
.player figcaption { margin-top: .56rem; color: var(--muted); font-size: .87rem; }
.player figcaption a { font-weight: 700; display: inline-block; margin-right: .55rem; }
.lesson-aside, .lesson-note { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.lesson-aside h2 { margin-bottom: .62rem; font-size: 1.64rem; }
.lesson-aside p { color: var(--muted); }
.moments, .sources { padding: 0; margin: .6rem 0 0; list-style: none; }
.moments li + li, .sources li + li { margin-top: .52rem; }
.moments time { display: inline-block; min-width: 2.84rem; margin-right: .36rem; font-variant-numeric: tabular-nums; color: var(--brass); font-weight: 700; }
.answer { margin-block: 1em; }
.lesson-note { margin: 1.25rem 0; }
.lesson-note h3 { margin-top: 0; }
.contact { background: #e7eee2; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(1rem, 4vw, 3rem); }
.contact address { display: grid; gap: .1rem; margin-top: .95rem; font-style: normal; }
.contact p { color: var(--muted); }
.form { display: grid; gap: .72rem; }
.form > label { display: grid; gap: .24rem; color: var(--forest-deep); font-size: .9rem; font-weight: 650; }
.form :is(input:not([type='checkbox']),textarea) { min-width: 0; width: 100%; padding: .57rem .7rem; border: 1px solid #8a9888; border-radius: 8px; background: var(--card); color: var(--ink); }
.form textarea { min-height: 6.7rem; resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; }
.form [type='checkbox'] { margin: .21rem 0 0; width: 1.12rem; height: 1.12rem; flex: 0 0 auto; accent-color: var(--forest); }
.form .button { justify-self: start; }
.form .form-notice { font-size: .81rem; }
.foot { background: var(--forest-deep); color: #edf2e8; padding-block: 1.4rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 2rem; }
.foot a { color: #fff8df; }
.foot-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.foot small { color: #d8e6d9; }
@media (max-width: 950px) {
  .primary, .top .top-contact { display: none; }
  .mobile { display: block; }
  .video-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.6rem); }
  .top-inner { min-height: 63px; gap: .67rem; }
  .wordmark img { width: 35px; height: 35px; }
  .wordmark b { font-size: 1.31rem; }
  .wordmark small { font-size: .61rem; }
  .top-actions { gap: .32rem; }
  .mast-grid, .home-mast .mast-grid { grid-template-columns: minmax(0, 1fr) clamp(67px, 21vw, 122px); gap: .55rem; }
  .mast-grid { padding-block: 1.3rem; }
  .intro-text h1 { font-size: clamp(1.75rem, 6.1vw, 2.65rem); }
  .home-mast h1 { font-size: clamp(2rem, 7.5vw, 3.7rem); }
  .intro-text .lead { font-size: .94rem; line-height: 1.53; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid, .service-facts, .list { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .cards { grid-template-columns: 1fr; }
  .lesson-card { min-height: 0; }
  .top-inner { gap: .25rem; }
  .wordmark { gap: .36rem; }
  .wordmark small { max-width: 7.5rem; overflow-wrap: anywhere; }
  .wordmark img { width: 29px; height: 29px; }
  .language summary, .mobile summary { padding-inline: .47rem; }
  .menu-panel { min-width: 10.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .button:hover, a.card:hover, .mascot:hover img { translate: none; transform: none; }
}
