:root {
  color-scheme: light;
  --cream: #f7f2ea;
  --surface: #fffdf9;
  --navy: #0f1e3d;
  --ink-soft: #39445b;
  --muted: #6f716f;
  --gold: #9b7a32;
  --border: rgba(15, 30, 61, 0.14);
  --danger: #8d332f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); line-height: 1.65; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: rgba(255, 253, 249, 0.9); }
.header-row { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: var(--navy); text-decoration: none; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; }
.nav a { color: var(--ink-soft); font-size: 0.94rem; font-weight: 650; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .nav-cta { min-height: 2.5rem; display: inline-flex; align-items: center; padding: 0.35rem 1rem; border-radius: 999px; background: var(--navy); color: var(--cream); white-space: nowrap; }
main { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.hero { max-width: 48rem; }
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
h1 { margin: 0.35rem 0 1rem; font-size: clamp(2.35rem, 6vw, 4.3rem); line-height: 1.05; }
h2 { margin: 2.5rem 0 0.7rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
p, li { color: var(--ink-soft); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.notice { margin: 2rem 0; padding: 1rem 1.2rem; border: 1px solid rgba(141, 51, 47, 0.32); border-radius: 1rem; background: rgba(255, 255, 255, 0.58); color: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.card { padding: 1.4rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); }
.card h2 { margin-top: 0; font-size: 1.35rem; }
.download-section { margin-top: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 2rem; }
.download-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--border); border-radius: clamp(1.5rem, 3vw, 2rem); background: var(--surface); }
.app-icon { width: clamp(7rem, 17vw, 10rem); height: auto; border-radius: 22%; box-shadow: 0 1rem 2.5rem rgba(15, 30, 61, 0.12); }
.download-content h1, .download-content h2 { margin: 0.3rem 0 0.55rem; font-size: clamp(2rem, 4vw, 3.15rem); }
.download-copy { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.store-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 0.65rem; }
.store-badge { display: block; width: auto; }
.app-store-badge { height: 3.25rem; }
.google-play-badge { height: 4.2rem; margin: -0.475rem -0.6rem; }
.install-page { min-height: 100vh; display: flex; flex-direction: column; }
.install-page main { flex: 1; display: flex; align-items: center; }
.install-page .download-section { margin-top: 0; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; margin-top: 1rem; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--navy); color: var(--cream); font-weight: 750; text-decoration: none; }
.button.secondary { border: 1px solid var(--border); background: var(--surface); color: var(--navy); }
.metadata { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.prose { max-width: 48rem; }
.prose ul { padding-left: 1.35rem; }
.site-footer { padding: 2rem 0 3rem; border-top: 1px solid var(--border); }
.site-footer p { margin: 0.25rem 0; font-size: 0.9rem; }
code { padding: 0.12rem 0.35rem; border-radius: 0.35rem; background: rgba(15, 30, 61, 0.07); color: var(--navy); }

@media (max-width: 48rem) {
  .header-row { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .nav { align-items: center; gap: 0.65rem 1rem; }
}

@media (max-width: 38rem) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .app-icon { margin-inline: auto; }
  .download-copy { margin-inline: auto; }
  .store-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
