:root {
  color-scheme: light;
  --paper: #faf7ef;
  --surface: #fffdf8;
  --ink: #2e3026;
  --muted: #55574c;
  --accent: #4c6241;
  --tint: #e9ecdf;
  --line: #d9d9cd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: #dbe3c8; }
.wrap { width: min(1140px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 100; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { transform: none; }
body > nav { border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -.8px; }
.logo img { border-radius: 22%; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(32px, 5vw, 76px); padding-block: 68px 74px; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -.048em; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(31px, 3.8vw, 49px); letter-spacing: -.037em; line-height: 1.13; }
h3 { font-size: 17px; font-weight: 650; line-height: 1.4; }
.sub { margin-top: 22px; max-width: 48ch; color: var(--muted); font-size: 18px; line-height: 1.65; }
.store-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-primary, .store-alternate { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 11px 17px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600; transition: background 150ms ease, color 150ms ease; }
.btn-primary span, .store-alternate span { font-size: 17px; line-height: 1; }
.btn-android, .store-alternate { background: transparent; color: var(--ink); }
.store-buttons > .btn-primary:first-child { background: var(--ink); color: var(--surface); }
.action-note { margin-top: 13px; color: var(--muted); font-size: 13px; }
.hero-preview { padding: clamp(20px, 4vw, 42px) 24px 18px; border: 1px solid #dce0d1; border-radius: 22px; background: var(--tint); }
.hero-screens { width: min(100%, 382px); position: relative; margin-inline: auto; display: flex; align-items: center; }
.hero-screens img, .exercise-preview img { display: block; height: auto; border: 4px solid #35382d; border-radius: clamp(18px, 3vw, 34px); box-shadow: 0 16px 28px #28342229; }
.hero-screens .screen-widget { width: 45%; margin-left: auto; margin-right: 3%; }
.hero-screens .screen-word { position: absolute; left: 3%; width: 54%; }
.hero-screens::before { content: ""; padding-block-start: 120%; }
figcaption { color: var(--muted); text-align: center; font-size: 13px; margin-top: 18px; }
.how-section { padding-block: 69px; border-block: 1px solid var(--line); background: #f2f1e9; }
.feature-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 68px; align-items: center; }
.steps { padding: 0; margin: 28px 0 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); padding-block: 16px; }
.steps p, .facts p, .section-head p { font-size: 16px; color: var(--muted); line-height: 1.65; margin-top: 8px; }
.exercise-preview { margin-inline: auto; width: min(100%, 265px); }
.exercise-preview img { width: min(100%, 213px); margin-inline: auto; }
.resources { padding-block: 70px 58px; }
.section-head { max-width: 660px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.resource-grid a { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 20px; text-decoration: none; }
.resource-grid h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.resource-grid p { margin-top: 8px; color: var(--muted); }
details { border-block: 1px solid var(--line); }
summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 24px; font-weight: 300; }
details[open] summary span { transform: rotate(45deg); }
.word-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; list-style: none; margin: 0; padding: 0 0 16px; }
.word-links a { display: inline-flex; align-items: center; min-height: 44px; }
.essentials { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; padding-bottom: 68px; }
.facts > div + div { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.download { padding-bottom: 58px; }
.download-panel { padding: 44px 24px; text-align: center; border: 1px solid #d5dac9; border-radius: 16px; background: var(--tint); }
.download-panel .store-buttons { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 23px 0; }
.footer-inner, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-bottom { color: var(--muted); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.guide { max-width: 760px; padding-block: 56px 72px; }
.guide h1 { font-size: clamp(38px, 6vw, 64px); }
.guide h2 { font-size: clamp(27px, 4vw, 39px); }
.guide .sub { max-width: 60ch; }
.guide section { margin-top: 40px; }
.guide section p, .guide ol, .guide blockquote { margin-top: 13px; }
.guide ol { padding-inline-start: 23px; }
.guide li + li { margin-top: 12px; }
.guide blockquote { margin-inline: 0; padding: 14px 18px; border-inline-start: 3px solid var(--accent); background: var(--tint); }
.guide section .btn-primary { margin-top: 18px; }

@media (hover: hover) {
  .btn-primary:hover, .store-buttons > .btn-primary:first-child:hover { background: var(--accent); color: var(--surface); }
  .resource-grid a:hover { background: var(--tint); }
  .nav-links a:hover, .footer-bottom a:hover, .resource-grid a:hover h3 { text-decoration: underline; }
}
@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .feature-layout { gap: 40px; }
  .essentials { gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { min-height: 64px; gap: 12px; }
  .logo { font-size: 22px; gap: 7px; }
  .logo img { width: 28px; height: 28px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-links a[href="#features"] { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 40px; gap: 28px; }
  h1 { font-size: clamp(38px, 9vw, 58px); }
  .sub { font-size: 16px; margin-top: 17px; }
  .store-buttons { margin-top: 20px; }
  .hero-preview { max-width: 455px; width: 100%; margin-inline: auto; }
  .hero-screens { max-width: 322px; }
  .how-section, .resources { padding-block: 42px; }
  .feature-layout, .essentials, .resource-grid { grid-template-columns: 1fr; }
  .feature-layout { gap: 16px; }
  .resource-grid { gap: 10px; }
  .essentials { gap: 24px; padding-bottom: 42px; }
  .download-panel { padding: 30px 18px; }
  .download { padding-bottom: 42px; }
  .word-links { grid-template-columns: 1fr; }
  .guide { padding-block: 28px 48px; }
}
@media (max-width: 380px) {
  .nav-links { gap: 9px; }
  .logo { font-size: 19px; }
  .logo img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary { transition: none; }
}
