/* Shared styles for Around the World in Numpty Days.
   Deliberately light-only: the site is styled as old paper, and the four person
   colours below are validated (colour-blind safe, all pairs) against this paper only. */
:root {
  color-scheme: light;
  --bg: #f4ecdc;          /* old paper */
  --surface: #fbf6ec;     /* card paper */
  --ink: #2b2118;
  --ink-soft: #6b5a48;
  --ink-faint: #9a8770;
  --accent: #c8452c;      /* the cover's title red */
  --pen: #1d3a8a;         /* ballpoint blue for scrawls */
  --rule: #e2d5bc;
  --shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 6px 18px rgba(60, 40, 20, .08);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  /* person colours: keep in sync with data/people.csv */
  --reza: #e8590c; --faiza: #862e9c; --rayyan: #2a78d6; --nael: #12936a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }
.back { font-family: var(--hand); font-size: 1.5rem; text-decoration: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; }
.hand { font-family: var(--hand); color: var(--pen); }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* person chip: a colour dot plus the name, so identity is never colour alone */
.who { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.who::before { content: ""; width: .62em; height: .62em; border-radius: 50%; background: var(--c, var(--ink-soft)); }

/* "Under construction" stub pages */
.stub { text-align: center; padding-top: 12vh; }
.stub h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: .2em 0; }
.stub .hand { font-size: 1.75rem; }
