/*
 * On the Menu — the static site. The same tokens the app uses (see
 * android/.../ui/theme/Color.kt); the font stacks are the ones the web
 * client already shipped, which name Fraunces first and then fall through to
 * whatever the reader has. Nothing is fetched from another origin, here or
 * anywhere else on this site.
 */
:root {
  --paper: #f3ede4;
  --paper-deep: #e7dccd;
  --cream: #fffaf3;
  --ink: #2f2421;
  --muted: #695a54;
  --heading: #39121b;
  --wine: #5b1f2c;
  --wine-deep: #39121b;
  --on-wine: #fff7ed;
  --gold: #835a22;
  --line: #c9b699;
  --hairline: #dccdb6;
  --shadow: 0 1rem 2.5rem rgb(57 18 27 / 12%);
  --radius-sm: 0.35rem;
  --radius-md: 0.6rem;
  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-body: "Aptos", "Segoe UI", system-ui, sans-serif;
  --content: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211318;
    --paper-deep: #1a0e12;
    --cream: #2b1b21;
    --ink: #f2e8dc;
    --muted: #c3aea3;
    --heading: #f4dfd0;
    --wine: #71303f;
    --wine-deep: #8a4152;
    --gold: #d9b26a;
    --line: #5a4048;
    --hairline: #3e242d;
    --shadow: 0 1rem 2.5rem rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -- Header and footer ---------------------------------------------- */
.site-header {
  padding: 1.6rem 0 .4rem;
}
.site-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: .02em;
}
.site-header img { width: 1.8rem; height: 1.8rem; }

.site-footer {
  margin: 4rem 0 0;
  border-top: 1px solid var(--hairline);
  padding: 1.4rem 0 3rem;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: .8rem; }

/* -- The eyebrow, borrowed from the app ------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 .5rem;
}

/* -- Sheets ---------------------------------------------------------- */
.sheet {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 1.6rem 0;
}
.sheet > :last-child { margin-bottom: 0; }
.sheet-title { margin-top: 0; }

/* -- Buttons --------------------------------------------------------- */
.button {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--wine);
  color: var(--on-wine);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--wine);
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--wine); }
@media (prefers-color-scheme: dark) {
  .button.secondary { color: var(--ink); border-color: var(--line); }
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

.note {
  border-left: 3px solid var(--gold);
  padding: .1rem 0 .1rem .9rem;
  color: var(--muted);
  font-size: .92rem;
}

.lede { font-size: 1.1rem; color: var(--muted); }

/* -- Legal documents ------------------------------------------------- */
.effective-date { font-family: var(--font-heading); color: var(--gold); margin: 0 0 1.4rem; }
.toc { font-size: .92rem; }
.toc ul { margin: .3rem 0 0; padding-left: 1.1rem; }
ul.blocks li, ol.blocks li { margin-bottom: .5rem; }
.lead-in { font-weight: 600; color: var(--heading); }

/* Hidden until a script decides otherwise; no-JS readers never see a
   control that cannot work for them. */
[hidden] { display: none !important; }
