/* Contrast — the visual system in design.md, reduced to what a two-page site needs.
   No colour, no ornament, Bodoni against Archivo. */

:root {
  --ground: #f2f1ef;
  --panel: #ffffff;
  --ink: #0f0f0f;
  --body: #2e2e2e;
  --muted: #6a6a6a;
  --faint: #adadad;
  --hairline: #ebebeb;
  --rule: #dcdcda;
  --display-weight: 400;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131313;
    --panel: #1a1a1a;
    --ink: #f2f1ef;
    --body: #d4d3d0;
    --muted: #9a9a9a;
    --faint: #6a6a6a;
    --hairline: #262626;
    --rule: #333333;
    /* design.md §3: Bodoni goes 400 → 500 in dark. Nothing else varies. */
    --display-weight: 500;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.frame {
  max-width: 620px; /* design.md: the doc renderer's line length */
  margin: 0 auto;
  padding: 72px 28px 96px;
}

/* Type — Bodoni never below 20px, never in a list. */
h1, h2 {
  font-family: "Bodoni Moda", Didot, Georgia, serif;
  font-weight: var(--display-weight);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.3; margin-top: 44px; }

@media (max-width: 480px) {
  .frame { padding: 48px 20px 72px; }
  h1 { font-size: 26px; }
}

p { margin: 14px 0 0; }
p + p { margin-top: 12px; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule);
}
a:hover { text-decoration-color: var(--ink); }

strong { font-weight: 600; color: var(--ink); }

.label {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--body);
  margin-top: 20px;
}

.sub { font-size: 11.5px; color: var(--muted); }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 40px 0 0;
}

/* A card is a panel inside the ground — container radius, 5px. */
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 20px 22px;
  margin-top: 28px;
}

ul { margin: 12px 0 0; padding-left: 18px; }
li { margin-top: 6px; }

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
