/* EarWords landing page (/earwords/) only. Self-contained: does not load base.css.
   Colours from the app's notebook palette (EarWords SPEC section 6), light and dark.
   System fonts only, no external resource. */
:root {
  color-scheme: light dark;
  --bg: #F4EFE6;
  --surface: #FBF8F2;
  --text: #1C1B19;
  --muted: #5E5A52;
  --rule: #DDD4C3;
  --accent: #B4412F;
  --accent-ink: #FFFFFF;
  --accent-soft: #EEDDD2;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.05), 0 10px 30px rgba(28, 27, 25, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B19;
    --surface: #24221F;
    --text: #F4EFE6;
    --muted: #B5AFA3;
    --rule: #3A3732;
    --accent: #D2614E;
    --accent-ink: #1C1B19;
    --accent-soft: #3A2924;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.serif { font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-icon { width: 2rem; height: 2rem; border-radius: 8px; display: block; box-shadow: 0 0 0 1px var(--rule); }
.top nav { display: flex; gap: 1.4rem; font-size: 0.92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top .cta { background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 52rem) { .top nav { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 1rem; }
.hero h1 { font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 1.25rem; font-weight: 700; }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.75rem; max-width: 32rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store { display: inline-flex; flex-direction: column; line-height: 1.2; padding: 0.55rem 1.1rem; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); text-decoration: none; min-width: 10rem; }
.store small { color: var(--muted); font-size: 0.75rem; }
.store strong { font-size: 1rem; }

/* Notebook preview (illustration in HTML, no image) */
.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--shadow); padding: 1.4rem 1.4rem 1.1rem; }
.sheet .head { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.75rem; }
.sheet ol { list-style: none; padding: 0; margin: 0; }
.sheet li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: 1.05rem; }
.sheet li span:last-child { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.92rem; }
.sheet li.now { background: var(--accent-soft); border-radius: 8px; border-bottom-color: transparent; }
.sheet .play { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.6rem; font-weight: 650; font-size: 0.95rem; }

/* Sections */
section.block { padding: 4rem 0; border-top: 1px solid var(--rule); }
.block h2 { font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.6rem; }
.block .intro { color: var(--muted); margin: 0 0 2.25rem; max-width: 38rem; font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1.35rem 1.4rem; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.mark { display: inline-block; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 750; text-align: center; line-height: 1.9rem; margin-bottom: 0.75rem; font-size: 0.95rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1.35rem 1.4rem; }
.steps li::before { content: counter(step); display: block; font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.6rem; }
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.langs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.langs li { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.92rem; }

.faq details { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.2rem 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; color: var(--accent); font-size: 1.25rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }
.faq a { color: var(--accent); }

.download { text-align: center; }
.download .intro { margin-left: auto; margin-right: auto; }
.download .badges { justify-content: center; }

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer.site a { color: var(--muted); }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding: 2.75rem 0 3rem; }
  section.block { padding: 3rem 0; }
}
