@font-face {
  font-family: Manrope;
  src: url("/yazi/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  src: url("/yazi/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --white: #fff;
  --ink: #14241d;
  --muted: #53655a;
  --forest: #193a2d;
  --moss: #d9ee9e;
  --line: #dce3d7;
  --page: 76rem;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.75rem; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0; line-height: 1.7; }
h1, h2, h3 { margin: 0; font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #54832e; outline-offset: 4px; }

.page { width: min(var(--page), calc(100% - clamp(2rem, 9vw, 8rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 1rem auto auto 1rem; padding: .7rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 4.7rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--forest); font-size: .955rem; font-weight: 800; letter-spacing: -.018em; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .625rem; background: var(--forest); color: var(--moss); font-size: .75rem; letter-spacing: -.035em; }
nav { display: flex; align-items: center; gap: clamp(.875rem, 2.6vw, 2.45rem); }
nav a { display: block; padding-block: .65rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
nav a:hover, nav a[aria-current] { color: var(--forest); text-decoration: underline; text-underline-offset: .35rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 31rem;
  margin-block: 2.15rem 2.4rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #143126;
  color: #f8fbf3;
}
.hero-content { position: relative; z-index: 1; align-self: center; padding: clamp(2rem, 5.1vw, 4.5rem); }
.eyebrow { margin-bottom: .8rem; font-size: .875rem; line-height: 1.4; font-weight: 800; color: #43634c; }
.hero h1 { font-size: clamp(3rem, 6.25vw, 6.15rem); line-height: .98; letter-spacing: -.083em; }
.hero h1 em { color: var(--moss); font-style: normal; }
.hero-intro { max-width: 28rem; margin-top: 1.45rem; color: #d8e4d9; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.hero-art {
  position: relative;
  min-height: 100%;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 70% 48%, #83ad6650 0, transparent 56%),
    repeating-linear-gradient(122deg, #49765326 0, #49765326 1px, transparent 1px, transparent 2.1rem),
    #1e3e2e;
}
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #143126 0%, #1431264d 13%, transparent 39%); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 2.85rem; padding: .63rem 1.05rem; border: 1px solid transparent; border-radius: .64rem; font-size: .94rem; line-height: 1.25; font-weight: 800; cursor: pointer; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #2a5441; }
.hero .primary { background: var(--moss); color: #1a2d1a; }
.hero .primary:hover { background: #e9f6bc; }
.subtle { background: transparent; color: #f7fbf1; border-color: #a6c1ab70; }
.subtle:hover { background: #ffffff14; }
.hero :focus-visible { outline-color: var(--moss); }
.light { border-color: #cedace; color: var(--forest); background: #f8faf6; }
.light:hover { border-color: #88a18b; background: #eaf2e8; }

.featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.75rem); margin-block: 0 5.5rem; }
.feature { overflow: hidden; border: 1px solid var(--line); border-radius: 1.05rem; background: var(--white); }
.feature-media { aspect-ratio: 2.4; overflow: hidden; background: var(--forest); }
.feature-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 59%; }
.english-media {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 23px, #81a67a34 23px, #81a67a34 24px), #dcead4;
}
.language-note {
  display: grid;
  width: min(68%, 22rem);
  padding: .9rem 1.3rem 1rem;
  transform: rotate(-6deg);
  color: #25432e;
  background: #faffef;
  border: 1px solid #aac5a3;
  box-shadow: .55rem .6rem 0 #86a78565;
}
.language-note span:first-child { font-weight: 800; font-size: .875rem; color: #46694e; }
.language-note strong { margin: .25rem 0; font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.075em; white-space: nowrap; }
.note-rule { display: block; height: .4rem; width: 76%; border-radius: .5rem; background: var(--moss); }
.feature-content { padding: clamp(1.25rem, 3vw, 2rem); }
.feature-content .eyebrow { margin-bottom: .4rem; }
.feature h2 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); line-height: 1.13; letter-spacing: -.049em; }
.feature-content > p:last-of-type { margin: .6rem 0 1.05rem; color: var(--muted); }

.projects { margin-bottom: 4.25rem; }
.section-header { display: flex; align-items: center; margin-bottom: 1.25rem; }
.section-header h2, .about h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.065em; line-height: 1.05; }
.project-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(1.25rem, 5vw, 4rem); padding: 1.65rem 0; border-top: 1px solid var(--line); }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row .eyebrow { margin-bottom: .42rem; }
.project-row h3 { font-size: clamp(1.26rem, 2.25vw, 1.85rem); line-height: 1.25; letter-spacing: -.045em; }
.project-row p:not(.eyebrow), .about p { color: var(--muted); }
.project-row details { margin-top: .65rem; }
.project-row summary { width: fit-content; cursor: pointer; color: var(--forest); font-weight: 800; padding-block: .25rem; }
.project-row details p { padding-top: .4rem; }
.about { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.3rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 4.25rem; border: 1px solid #d2e1d1; border-radius: 1rem; background: #eaf1e7; }
.about-mark { display: grid; place-items: center; width: clamp(5rem, 13vw, 10rem); aspect-ratio: 1; border-radius: 50%; color: var(--moss); background: var(--forest); }
.about-mark span { font-size: clamp(1.6rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.1em; padding-right: .1em; }
.about p { max-width: 41rem; margin-top: .65rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.2rem; color: var(--muted); font-size: .875rem; }
.footer-inner a { color: var(--forest); text-decoration: underline; text-underline-offset: .23em; }

.lesson { padding-bottom: 4.5rem; }
.lesson-intro { margin-block: 2.9rem 2.3rem; max-width: 48rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--forest); font-size: .9rem; font-weight: 800; text-decoration: underline; text-underline-offset: .25rem; }
.lesson-intro h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1.01; letter-spacing: -.075em; }
.lesson-intro > p:last-child { margin-top: .9rem; color: var(--muted); font-size: 1.06rem; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .85fr); align-items: start; gap: clamp(1.1rem, 3vw, 2.2rem); }
.lesson-main { display: grid; gap: 1rem; }
.lesson-panel, .lesson-path { padding: clamp(1.2rem, 3.4vw, 2.05rem); border: 1px solid var(--line); border-radius: .9rem; background: white; }
.lesson-panel h2, .lesson-path h2 { margin: 0 0 .8rem; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.035em; }
.lesson-panel p:not(.feedback) { color: var(--muted); }
.examples { margin: 0 0 1rem; }
.examples > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .32rem .85rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.examples > div:last-child { border-bottom: 1px solid var(--line); }
.examples dt { font-weight: 800; }
.examples dd { margin: 0; color: var(--muted); }
.patterns { display: grid; gap: .32rem; margin: .7rem 0 0; padding-left: 1.2rem; font-weight: 700; }
.lesson-path { background: #eaf1e7; }
.lesson-path ol { margin: 0; padding-left: 1.45rem; }
.lesson-path li { padding: .6rem 0; border-bottom: 1px solid #cfddcd; font-weight: 700; }
.lesson-path li:last-child { border: 0; }
.lesson-path li[aria-current] { color: var(--forest); font-weight: 800; }
.lesson-path li span { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; }
.lesson-panel fieldset { display: grid; gap: .45rem; margin: 0 0 1rem; padding: 0; border: none; }
.lesson-panel legend { margin-bottom: .6rem; padding: 0; font-weight: 800; }
.lesson-panel label { display: flex; align-items: center; gap: .7rem; padding: .72rem .82rem; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; }
.lesson-panel label:has(:checked) { background: #f0f7eb; border-color: #5a8658; }
.lesson-panel input { margin: 0; height: 1.2rem; width: 1.2rem; accent-color: var(--forest); }
.feedback { margin-top: .8rem; padding: .72rem .82rem; border-radius: .55rem; color: var(--forest); background: #eaf1e7; font-weight: 700; }
.feedback[data-correct="false"] { background: #fff2dc; color: #65491d; }

@media (max-width: 58rem) {
  .hero-content { padding: clamp(1.9rem, 4.4vw, 3.4rem); }
  .hero { min-height: 27rem; }
}

@media (max-width: 45rem) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: .35rem; padding-block: .75rem .3rem; }
  nav { width: 100%; justify-content: space-between; gap: .5rem; }
  nav a { padding: .6rem .18rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-block: 1.15rem 1.4rem; }
  .hero h1 { font-size: clamp(3.4rem, 11vw, 5.25rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.6; }
  .hero-art img { object-position: 50% 51%; }
  .hero-art::after { background: linear-gradient(180deg, #143126 0%, #1431262b 19%, transparent 37%); }
  .featured { gap: 1rem; margin-bottom: 3.5rem; }
  .feature-media { aspect-ratio: 1.85; }
  .language-note { width: 80%; }
  .projects { margin-bottom: 3rem; }
  .project-row { grid-template-columns: 1fr; gap: .7rem; padding-block: 1.2rem; }
  .about { margin-bottom: 3rem; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-intro { margin-block: 1.7rem; }
}

@media (max-width: 34rem) {
  .featured { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 2.27; }
  .language-note { width: 67%; }
  .about { grid-template-columns: 1fr; gap: .9rem; }
  .about-mark { width: 4.2rem; }
  .examples > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, button { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
}
