:root {
  color-scheme: light;
  --ink: #18312b;
  --muted: #62716d;
  --paper: #fffdf8;
  --surface: #f3f7f5;
  --line: #dfe8e4;
  --green: #238469;
  --green-dark: #155d4c;
  --shadow: 0 18px 45px rgba(24, 49, 43, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .96); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 12px; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { text-decoration: none; font-size: 14px; font-weight: 650; }
.site-header nav a:hover { color: var(--green); }
.site-header .login-link { padding: 9px 16px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-dark); }
.language-switcher { display: flex; background: var(--surface); padding: 4px; border-radius: 999px; }
.language-switcher a { padding: 5px 8px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.language-switcher a[aria-current="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.09); }

.breadcrumbs { padding-block: 18px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a8b3af; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }

.topic-hero, .hub-hero { position: relative; overflow: hidden; padding: 70px 0 90px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--topic-accent, var(--green)) 16%, transparent), transparent 35%), linear-gradient(150deg, #fffdf8 25%, #edf6f2 100%); }
.topic-hero::after, .hub-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -160px; bottom: -230px; border: 70px solid color-mix(in srgb, var(--topic-accent, var(--green)) 12%, transparent); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.hero-lead { max-width: 720px; margin: 24px 0 0; color: #455b55; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-facts span, .hub-count { padding: 8px 13px; border: 1px solid color-mix(in srgb, var(--topic-accent, var(--green)) 25%, #d8e2de); border-radius: 999px; background: rgba(255,255,255,.65); color: #344a44; font-size: 12px; font-weight: 750; }
.hero-stack { position: relative; height: 265px; }
.mini-card { position: absolute; width: 220px; min-height: 105px; display: grid; align-content: center; padding: 22px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.mini-card strong { font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.mini-card span { color: var(--muted); font-size: 13px; }
.mini-card-1 { top: 0; right: 20px; transform: rotate(3deg); }
.mini-card-2 { top: 80px; left: 0; transform: rotate(-5deg); }
.mini-card-3 { right: 0; bottom: 0; transform: rotate(6deg); }

.content-section { padding: 82px 0; }
.intro-section h2, .content-section h2, .cta-section h2 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 45px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.intro-section p, .hub-about p { margin: 0 0 18px; color: #40544f; font-size: 18px; }
.word-section { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { width: min(390px, 100%); margin: 0; color: var(--muted); }
.word-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.word-card { min-width: 0; animation: card-in .45s both; animation-delay: var(--delay); }
.word-card article { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(23, 57, 47, .06); transition: transform .2s ease, box-shadow .2s ease; }
.word-card article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.word-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e7ece9; }
.word-card-body { position: relative; padding: 18px; }
.word-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.word-card h3 { min-width: 0; margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.audio-button { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--topic-accent, var(--green)) 15%, white); color: var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.audio-button:hover, .audio-button:focus-visible { transform: scale(1.08); background: color-mix(in srgb, var(--topic-accent, var(--green)) 28%, white); outline: 2px solid var(--topic-accent, var(--green)); outline-offset: 2px; }
.audio-button.is-playing { background: var(--topic-accent, var(--green)); color: white; }
.transcription { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.meaning { min-height: 48px; margin: 0 0 16px; color: #344a44; font-size: 14px; }

.practice-section { background: var(--paper); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { position: relative; overflow: hidden; padding: 42px; border-radius: 24px; }
.tips-panel { background: #173e34; color: white; }
.phrases-panel { border: 1px solid #f0dfba; background: #fff5df; }
.panel-number { position: absolute; right: 24px; top: 12px; margin: 0; color: rgba(255,255,255,.16); font-family: Georgia, serif; font-size: 72px; line-height: 1; }
.phrases-panel .panel-number { color: rgba(111,79,24,.10); }
.panel h2 { max-width: 430px; font-size: 36px; }
.panel ol { display: grid; gap: 17px; margin: 0; padding-left: 24px; }
.panel ol li { padding-left: 8px; color: rgba(255,255,255,.82); }
.phrase-list { display: grid; gap: 14px; }
blockquote { margin: 0; padding: 17px 18px; border-left: 3px solid var(--topic-accent, var(--green)); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.72); }
blockquote p { margin: 0; font-weight: 750; }
blockquote footer { margin-top: 4px; color: #6d6047; font-size: 13px; }

.faq-section { background: #f8faf9; border-block: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-list summary { padding: 18px 22px; cursor: pointer; font-weight: 750; }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.related-section h2 { font-size: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-grid a { display: grid; gap: 5px; padding: 22px; border-left: 5px solid var(--card-accent); border-radius: 12px; background: var(--surface); text-decoration: none; transition: transform .2s ease; }
.related-grid a:hover { transform: translateY(-3px); }
.related-grid span { font-family: Georgia, serif; font-size: 22px; }
.related-grid small { color: var(--muted); }

.cta-section { position: relative; overflow: hidden; padding: 72px 0; background: radial-gradient(circle at 8% 10%, rgba(87, 196, 154, .2), transparent 30%), #123b31; color: white; }
.cta-section::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -260px; border: 64px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.app-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 72px; }
.cta-eyebrow { margin: 0 0 12px; color: #91dfc2; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.cta-section h2 { max-width: 720px; margin-bottom: 14px; color: white; font-size: clamp(34px, 4vw, 48px); }
.app-cta-copy > p:not(.cta-eyebrow) { max-width: 690px; margin: 0; color: rgba(255,255,255,.77); font-size: 17px; }
.app-cta-copy ul { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 24px 0 0; padding: 0; }
.app-cta-copy li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; }
.app-cta-copy li::before { content: "✓"; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(145,223,194,.16); color: #91dfc2; font-size: 12px; }
.app-cta-actions { padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.07); box-shadow: 0 24px 60px rgba(4, 24, 19, .22); backdrop-filter: blur(8px); }
.store-buttons { display: grid; gap: 12px; }
.store-button { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: #fff; color: #112c26; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); background: #f1faf7; box-shadow: 0 12px 25px rgba(0,0,0,.18); outline: 2px solid #91dfc2; outline-offset: 3px; }
.store-button > span:last-child { display: grid; line-height: 1.12; }
.store-button small { color: #566760; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.store-button strong { margin-top: 3px; font-size: 21px; letter-spacing: -.025em; }
.store-platform { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #112c26; color: white; font-size: 12px; font-weight: 850; letter-spacing: -.03em; }
.store-platform-play { color: #8be0bd; font-size: 18px; }
.web-alternative { margin: 17px 2px 0; color: rgba(255,255,255,.66); font-size: 12px; text-align: center; }
.web-alternative a { color: white; font-weight: 800; text-underline-offset: 3px; }
.web-alternative a:hover { color: #b9f0db; }
.gonative-cta-section { position: relative; padding: 72px 0; overflow: hidden; border-bottom: 1px solid #dce8e5; background: linear-gradient(135deg, #f8fbfa 0%, #eaf6f3 100%); }
.gonative-cta-section::after { content: "GN"; position: absolute; right: -20px; bottom: -78px; color: rgba(22,138,120,.055); font-family: Georgia, serif; font-size: 260px; font-weight: 700; line-height: 1; pointer-events: none; }
.gonative-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 72px; }
.gonative-eyebrow { margin: 0 0 10px; color: #168a78; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.gonative-brand { display: inline-flex; margin: 0 0 18px; padding: 6px 11px; border: 1px solid #bfe5de; border-radius: 999px; background: #e7f7f4; color: #0f6f62; font-size: 13px; font-weight: 850; letter-spacing: .03em; }
.gonative-cta-section h2 { max-width: 700px; margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 44px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.gonative-lead { max-width: 700px; margin: 0; color: #4d625d; font-size: 17px; }
.language-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.language-list li { padding: 6px 10px; border: 1px solid #cfdfdb; border-radius: 999px; background: rgba(255,255,255,.72); color: #36534c; font-size: 12px; font-weight: 750; }
.gonative-actions { padding: 22px; border: 1px solid #d3e2de; border-radius: 24px; background: rgba(255,255,255,.8); box-shadow: 0 18px 45px rgba(24,49,43,.08); }
.gonative-store-button { border-color: #d7e2df; box-shadow: 0 5px 16px rgba(24,49,43,.06); }
.gonative-store-platform { background: #0e242f; }
.site-footer { padding: 34px 0; background: #102d26; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 18px; }

.hub-hero { text-align: center; padding-block: 88px 100px; }
.hub-hero h1 { margin-inline: auto; }
.hub-hero .hero-lead { margin-inline: auto; }
.hub-count { display: inline-block; margin-top: 28px; }
.topic-directory > .shell > .eyebrow { margin-bottom: 30px; }
.topic-cluster + .topic-cluster { margin-top: 58px; padding-top: 50px; border-top: 1px solid var(--line); }
.cluster-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.cluster-heading > span { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.cluster-heading h2 { margin: 0; font-size: 32px; }
.topic-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.topic-index-card { position: relative; display: grid; min-height: 245px; align-content: end; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, white 55%, color-mix(in srgb, var(--card-accent) 13%, white)); text-decoration: none; box-shadow: 0 8px 24px rgba(23, 57, 47, .05); transition: transform .2s ease, box-shadow .2s ease; }
.topic-index-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-index-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; top: -48px; border: 28px solid color-mix(in srgb, var(--card-accent) 18%, transparent); border-radius: 50%; }
.topic-card-number { position: absolute; left: 28px; top: 22px; color: var(--card-accent); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.topic-index-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.topic-index-card p { max-width: 480px; margin: 0 0 18px; color: var(--muted); }
.topic-index-card strong { color: var(--green-dark); font-size: 13px; }
.hub-about { border-top: 1px solid var(--line); background: var(--surface); }

@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding-block: 14px; }
  .site-header nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: 12px; }
  .brand small { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stack { display: none; }
  .word-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell, .narrow { width: min(100% - 28px, 1160px); }
  .header-inner { gap: 12px; }
  .brand strong { font-size: 15px; }
  .site-header nav { justify-content: flex-start; gap: 16px; overflow-x: auto; }
  .site-header nav a { white-space: nowrap; }
  .site-header .login-link { padding: 6px 12px; }
  .language-switcher a { font-size: 0; }
  .language-switcher a::first-letter { font-size: 11px; }
  .topic-hero, .hub-hero { padding-block: 48px 62px; }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 18px; }
  .content-section { padding-block: 58px; }
  .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  .word-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .word-card-body { padding: 14px; }
  .word-card h3 { font-size: 21px; }
  .meaning { min-height: 44px; font-size: 13px; }
  .two-column, .topic-index-grid { grid-template-columns: 1fr; }
  .panel { padding: 30px 24px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .app-cta-grid, .gonative-cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-cta-actions, .gonative-actions { width: 100%; }
}

@media (max-width: 430px) {
  .word-grid { grid-template-columns: 1fr; }
  .word-card article { display: grid; grid-template-columns: 120px 1fr; }
  .word-card img { height: 100%; aspect-ratio: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .language-switcher { margin-left: auto; }
}
