/* amidoneyet.app: design tokens + shared components.
   The palette is the app's own (shared/…/ui/theme/Theme.kt, `Palette.*`, light theme), so the
   site looks like the app it describes. Soft and muted; nothing saturated.

   Contrast (WCAG relative luminance, measured by tools/contrast.py, 4.5:1 minimum for text):
     --ink   on --page / --card / --pale-blue / --sand / --amber   body text, headings, step numbers
     --muted on --page / --card                                     secondary text, footer
     --blue  on --page / --card                                     links, eyebrows
     --brown on --sand                                              the "In family testing" note
   Fonts are self-hosted (fonts/, OFL licenses beside them): the privacy page promises the site
   makes no third-party requests. Display: Fraunces 600. Body: Atkinson Hyperlegible 400/700.
   Both are the fonts the app bundles. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-semibold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-bold-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --page: #EEF1EC;       /* page background (pale sage) */
  --ink: #1F3230;        /* body text, headings */
  --muted: #4B5E5A;      /* secondary text */
  --blue: #2C4F6B;       /* links, the grown-up's accent */
  --pale-blue: #D7E3EC;  /* privacy promise panel */
  --amber: #E9C46A;      /* the child's accent: step numbers */
  --sand: #F4E6C8;       /* status note */
  --brown: #7A4E0E;      /* text on sand */
  --card: #F9FAF6;       /* cards */
  --border: #D5DDD3;     /* hairlines, card borders */
  --focus: var(--blue);
  --display: "Fraunces", Georgia, serif;
  --body: "Atkinson Hyperlegible", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---- a11y ---- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--card); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---- header / nav ---- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.hero-icon { width: 168px; height: 168px; border-radius: 38px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(31, 50, 48, .08); }
.lede { font-size: 1.2rem; max-width: 40ch; margin-top: 18px; }
.lede + .lede { margin-top: 12px; }
.status {
  display: inline-block; margin-top: 24px; padding: 8px 16px; border-radius: 999px;
  background: var(--sand); color: var(--brown); font-weight: 700; font-size: .95rem;
}
.hear-more { margin-top: 14px; color: var(--muted); max-width: 40ch; }  /* --muted and link --blue on --page */
@media (max-width: 700px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-icon { width: 112px; height: 112px; border-radius: 26px; }
  .lede { font-size: 1.1rem; }
}

/* ---- sections ---- */
.section { padding: 48px 0; }
.section + .section { padding-top: 8px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--amber); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.promise {
  display: flex; gap: 12px 24px; align-items: baseline; flex-wrap: wrap;
  background: var(--pale-blue); color: var(--ink); border-radius: 18px; padding: 24px 28px;
}
.promise p { font-size: 1.15rem; margin: 0; margin-right: auto; }
.promise a { color: var(--ink); font-weight: 700; }

/* ---- prose (privacy) ---- */
.page-head { padding: 56px 0 8px; }
.page-head .meta { color: var(--muted); margin-top: 10px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose ul { margin: 0 0 14px 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .short { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; }
.site-footer .spacer { margin-right: auto; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue); }

/* ---- 404 ---- */
.not-found { padding: 88px 0 48px; text-align: center; }
.not-found .hero-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; }
.not-found h1 { margin-bottom: 14px; }
