:root {
  color-scheme: light;
  --paper: #f8f3e7;
  --ink: #142b23;
  --muted: #41584e;
  --orange: #f8a56a;
  --line: #d6dac9;
  --white: #fffdf5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #5278df; outline-offset: 4px; }
.wrap { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; line-height: 1.12; }
.mark {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  font-size: 25px;
  letter-spacing: -.12em;
  padding-right: 4px;
}
.mark span { color: var(--orange); }
.header-link { font-size: .94rem; font-weight: 750; white-space: nowrap; padding-block: 10px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  column-gap: clamp(32px, 5.5vw, 92px);
  padding-block: 56px 70px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.4;
}
.tag span { color: #9a3c1d; }
.hero-copy .tag { background: #e4ead9; padding: 8px 11px; border-radius: 5px; }
h1, h2, h3, p { margin-block-start: 0; }
h1 {
  font-size: clamp(3.4rem, 7.6vw, 7.25rem);
  font-weight: 860;
  line-height: .9;
  letter-spacing: -.065em;
  margin: 20px 0 22px;
}
h1 em { font-style: normal; color: #a43c19; }
.lede { font-size: clamp(1.12rem, 2vw, 1.37rem); font-weight: 650; line-height: 1.36; max-width: 36ch; margin-bottom: 15px; }
.offer { color: var(--muted); max-width: 45ch; margin-bottom: 25px; }
.offer strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 19px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .8em;
  min-height: 54px;
  padding: 12px 19px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #ffb781; }
.sample-link { font-size: .95rem; font-weight: 750; }
.sample {
  scroll-margin-top: 20px;
  background: var(--white);
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 #c8d4bf;
  min-width: 0;
}
.sample-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .71rem;
  letter-spacing: .06em;
  font-weight: 800;
}
.sample-meta span:last-child { white-space: nowrap; }
.card-top, .example { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-top { padding: 8px 0 12px; }
.word-line { display: flex; align-items: baseline; gap: 10px; }
.word-line h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; margin: 0; letter-spacing: -.06em; }
.phonetic, .translation { color: var(--muted); }
.card-top p { margin: 4px 0 0; line-height: 1.25; font-size: .92rem; }
.sound {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  background: #e4ead9;
  color: var(--ink);
  border: 1px solid #c5d3bf;
  border-radius: 8px;
  padding: 7px 9px;
  font-weight: 760;
  font-size: .82rem;
  cursor: pointer;
}
.sound:hover, .sound[aria-pressed="true"] { background: #cddfc4; }
.comic { width: 100%; height: auto; display: block; border-radius: 10px; }
.example { padding-top: 12px; }
.example + .example { border-top: 1px solid var(--line); margin-top: 12px; }
.example p { margin: 0; line-height: 1.3; font-size: .89rem; }
.example .translation { margin-top: 4px; font-size: .82rem; }
.audio-status { margin: 0; font-size: .84rem; color: #98391a; }
.audio-status:not(:empty) { margin-top: 9px; }
.audio-fallback { margin: 8px 0 0; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 78px);
  padding-block: clamp(40px, 7vw, 82px);
}
.feature-copy h2, .closing h2 {
  margin: 8px 0 8px;
  font-size: clamp(2.2rem, 4.1vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.feature-copy h2 { margin-bottom: 18px; text-wrap: balance; }
.feature-copy p:not(.tag) { max-width: 48ch; font-size: 1.06rem; }
.feature-link { display: inline-block; font-weight: 800; }
.listening { background: var(--ink); color: var(--white); }
.listening .tag { color: #d5e2ab; }
.listening p:not(.tag) { color: #e2eadb; }
.listening mark { background: #c2d9ff; color: #122c52; border-radius: .18em; padding: .02em .23em; font-weight: 760; }
.listening .feature-link { color: #ffc58e; }
.phrase-translation { margin: 10px 0 14px; font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.15; }
.phrase-card, .episode-art { min-width: 0; margin: 0; overflow: hidden; }
.phrase-card { background: var(--white); color: var(--ink); padding: 12px; border-radius: 18px; box-shadow: 6px 6px 0 #416254; }
.phrase-card img, .episode-art img { display: block; width: 100%; height: auto; }
.phrase-card img { border-radius: 9px; }
.phrase-card figcaption { display: grid; gap: 3px; padding: 12px 8px 6px; color: var(--muted); }
.phrase-card figcaption .tag { color: #843916; }
.phrase-card figcaption strong { color: var(--ink); font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.16; }
.clip-link { width: fit-content; margin-top: 5px; color: var(--ink); font-weight: 750; }
.film-showcase { margin-bottom: clamp(36px, 6vw, 70px); }
.film-demo { padding-block: clamp(32px, 5vw, 58px); }
.film-demo h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.film-frame { min-width: 0; margin: 0; }
.film-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.film-frame figcaption { padding-top: 8px; color: #d5e2ce; font-size: .86rem; }
.episode-art { background: #1d382d; color: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 #c8d4bf; }
.episode-art img { aspect-ratio: 4 / 3; object-fit: cover; }
.episode-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 11px 15px; font-weight: 760; }
.episode-art figcaption span { color: #d5e2ab; font-size: .86rem; }
.series .tag { color: #843916; }
.series-extra { color: var(--muted); margin: 20px 0 0; }
.series-extra a { font-weight: 720; }
.episode-clip { margin: 22px 0 0; scroll-margin-top: 20px; }
.episode-clip video { display: block; width: 100%; height: auto; background: var(--ink); border-radius: 11px; }
.episode-clip figcaption { display: grid; gap: 2px; padding-top: 8px; color: var(--muted); font-size: .88rem; }
.episode-clip figcaption strong { color: var(--ink); }
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: var(--white);
  padding: clamp(22px, 5vw, 48px);
  border-radius: 16px;
}
.closing .tag { color: #f8ba8a; }
.closing p:last-child { margin: 0; }
.closing .button { border-color: var(--orange); white-space: nowrap; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding-block: 23px 30px; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 35px 42px; }
  .sample { width: min(100%, 525px); }
  .feature-grid { grid-template-columns: 1fr; }
  .phrase-example, .episode-art { width: min(100%, 540px); }
  .film-demo .feature-copy, .series .feature-copy { grid-row: 1; }
}
@media (max-width: 660px) {
  .site-nav { display: none; }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 67px; gap: 10px; }
  .wordmark { gap: 8px; font-size: .87rem; }
  .mark { width: 37px; height: 37px; font-size: 22px; }
  .header-link { font-size: .83rem; }
  h1 { font-size: clamp(3.15rem, 13.5vw, 4.55rem); margin: 15px 0; }
  .hero { padding-block: 25px 32px; gap: 26px; }
  .lede { font-size: 1.08rem; margin-bottom: 12px; }
  .offer { margin-bottom: 16px; font-size: .94rem; }
  .hero-actions { gap: 10px 16px; }
  .button { min-height: 49px; font-size: .95rem; }
  .sample { padding: 12px; box-shadow: 4px 4px 0 #c8d4bf; }
  .sample-meta { font-size: .62rem; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
