/* Shared by every page: tokens (both themes), base, header, buttons and footer. The style guide
   (nmanzi/namesake docs/style-guide.md) is the only source of values. */
/* Layout: risograph picture-book. Butter paper, cobalt ink, fluoro-pink second plate.
   One bold moment: the ticket-style name card with a misregistered pink print. Everything else stays flat and quiet. */
:root {
  --paper: #fdf0bf;        /* page ground: butter */
  --card: #fffaf0;         /* card stock */
  --ink: #15185c;          /* text: navy-cobalt ink */
  --muted: #4c4e7e;
  --primary: #2b3fe0;      /* cobalt */
  --primary-ink: #2b3fe0;  /* cobalt used as text */
  --secondary: #ff5da2;    /* fluoro pink */
  --on-primary: #fff3c4;
  --on-secondary: #15185c; /* navy on pink, both themes */
  --tertiary: #8fd9a8;     /* soft green: unisex name band only */
  --on-tertiary: #15185c;
  --line: #e6d494;
  --dot: rgb(43 63 224 / .16);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1033; --card: #181c4f; --ink: #fff3c4; --muted: #b8b7da;
    --primary: #4254f5; --primary-ink: #9ea9ff; --secondary: #ff6fae; --on-primary: #fff3c4; --on-secondary: #15185c;
    --tertiary: #6fcf97; --on-tertiary: #15185c;
    --line: #2b306c; --dot: rgb(158 169 255 / .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1033; --card: #181c4f; --ink: #fff3c4; --muted: #b8b7da;
  --primary: #4254f5; --primary-ink: #9ea9ff; --secondary: #ff6fae; --on-primary: #fff3c4; --on-secondary: #15185c;
  --tertiary: #6fcf97; --on-tertiary: #15185c;
  --line: #2b306c; --dot: rgb(158 169 255 / .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
.wrap { max-width: 70rem; margin-inline: auto; padding-inline: max(1.25rem, 4vw); }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
.label { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.wordmark { font: 900 1.25rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; position: relative; }
.wordmark::before { content: "Namesake"; position: absolute; left: 2px; top: 2px; color: var(--secondary); z-index: -1; }
.wordmark { isolation: isolate; }
.pill { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: .55rem .8rem; border: 1.5px solid var(--ink); border-radius: 99px; white-space: nowrap; }

/* Buttons */
.btn { font: 700 1rem/1 var(--body); padding: 1rem 1.5rem; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 4px 4px 0 var(--secondary); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--secondary); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--secondary); }
.btn-quiet { background: transparent; color: var(--ink); padding-inline: 0; text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: .3em; text-decoration-thickness: 3px; }

/* Footer (every page) */
footer { margin-top: clamp(3rem, 7vw, 5rem); padding-block: 2rem 3rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
footer em { font: italic 400 1.15rem/1 var(--serif); color: var(--ink); }
.credit { flex-basis: 100%; font-size: .82rem; }
.foot-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.foot-nav a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: .3em; text-decoration-thickness: 3px; }
.foot-nav a[aria-current="page"] { text-decoration-color: var(--primary); }
.foot-small { flex-basis: 100%; font-size: .82rem; }
.foot-small a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
