/* 100 days, 100 portraits — shared base. Direction G "The Infinite Wall", white wall (Neli, 23 Oct 2026; was Sage).
   Both designers build on these tokens; page-specific CSS goes in its own file. */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Libre+Franklin:wght@400;500;600&display=swap");

:root {
  /* Wall (Sage) */
  --wall: #FFFFFF;
  --on-wall: #252525;        /* main text on the wall */
  --on-wall-2: #595959;      /* secondary text on the wall */
  --brass: #8A3B2C;          /* pale brass: small labels, day tags, focus on wall */
  /* Reading pages */
  --paper: #FFFFFF;
  --ink: #252525;
  --muted: #595959;
  --link: #252525;
  --rule: #E3E3E0;
  /* From the drawings */
  --ground: #A9A9A3;         /* the drawings' own grey, behind images while they load */
  --oxblood: #6B1E1A;        /* link hover only */

  --serif: "Newsreader", Georgia, serif;   /* headings; replaced Bodoni Moda, which was hard to read (Neli, 21 Oct 2026) */
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.on-wall :focus-visible { outline-color: var(--brass); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Drawings: always 9:16, never stretched. Use <img class="drawing"> with a width; height follows. */
.drawing { width: 100%; height: auto; aspect-ratio: var(--ar, 9 / 16); object-fit: contain; background: var(--ground); }

/* ---------- Shared header (same markup on every page: see site/_shared-header.html) ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--wall); color: var(--on-wall);
  border-bottom: 1px solid rgba(37, 37, 37, .08);
}
.site-header__inner {
  max-width: none; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px;
}
.site-title { font: 400 22px/1.1 var(--serif); color: var(--on-wall); text-decoration: none; letter-spacing: .005em; }
.site-title:hover { color: var(--on-wall); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav a {
  color: var(--on-wall-2); text-decoration: none;
  font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 0; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Phones: the header scrolls away instead of staying pinned, and the nav sits on one tight line. */
@media (max-width: 700px) {
  .site-header { position: static; }
  .site-header__inner { padding-block: 10px 4px; gap: 0 18px; }
  .site-nav ul { gap: 0 18px; }
  .site-nav a { letter-spacing: .1em; padding: 12px 0; }
}

/* ---------- Shared footer ---------- */
.site-footer { background: var(--wall); color: var(--on-wall-2); }
.site-footer__inner {
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 14px;
}
.site-footer a { color: var(--on-wall); }
.site-footer a:hover { color: var(--brass); }
.site-footer .site-title { font-size: 20px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* White wall: hovers fill dark, so their text turns white */
.viewer .chip:hover, .btn:hover, .skip-link, .skip-link:hover { color: #FFFFFF; }
.site-header { border-bottom-color: rgba(37, 37, 37, .1); }
.ruler__tab { color: #FFFFFF; }
