/* Retro 70s theme: mustard halftone background, cream "paper" card, hard shadows.
   Loaded by every page. Selectors are prefixed with `html body` so they win over each page's inline CSS. */
html:root {
  --ink: #2B1B14;
  --ink-2: #6A5346;
  --paper: #FFF8EA;
  --mustard: #F2B233;
  --orange: #D8502A;
  --rust: #A9381A;
  --teal: #1F8A70;
  --stripe-h: 14px;
  --pad-y: 36px;
  --pad-x: 40px;

  /* re-point the article page's own tokens at the warm palette */
  --bg: var(--paper);
  --surface: #F6E7C8;
  --line: #E3CFA5;
  --accent: var(--rust);
  --pick: #E38B1E;
  --pick-ink: #8A4B00;
  --track: #EAD9B5;
  --bad: #B3261E;
}

html body {
  background-color: var(--mustard);
  background-image: radial-gradient(rgba(122, 44, 10, .22) 1.6px, transparent 1.8px);
  background-size: 18px 18px;
  color: var(--ink);
  padding: 32px 16px 64px;
}

/* the cream card every page sits on */
html body #container,
html body .page {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--orange);
  padding: var(--pad-y) var(--pad-x);
}

/* 70s stripe band across the top of the card */
html body #container::before,
html body .page::before {
  content: "";
  display: block;
  height: var(--stripe-h);
  margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) 26px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(to bottom,
    var(--orange) 0 33.34%,
    var(--mustard) 33.34% 66.67%,
    var(--teal) 66.67% 100%);
}

/* nav */
html body nav.sitenav { border-bottom: 2px dashed rgba(43, 27, 20, .28); }
html body nav.sitenav .brand { color: var(--ink); }

html body .tabs a {
  padding: 11px 20px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
html body .tabs a:hover {
  background: #FFD98A;
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
html body .tabs a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
html body .tabs a[aria-current="page"] { background: var(--teal); border-color: var(--ink); color: var(--paper); }
html body .tabs a:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

/* type */
html body #container h1,
html body #header-text h1 {
  font-family: "Shrikhand", "Cooper Black", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
html body h2 { color: var(--rust); }
html body .page h2 { color: var(--ink); }
html body a { color: var(--rust); }
html body .item, html body .item:hover { color: inherit; }

/* homepage / list pages */
html body .hero img,
html body #header img {
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
}
html body .role, html body .lede, html body .item .desc { color: var(--ink-2); }
html body .item { border-top: 2px dashed rgba(43, 27, 20, .22); }
html body .item:last-child { border-bottom: 2px dashed rgba(43, 27, 20, .22); }
html body .item .date, html body footer { color: #7A6455; }
html body .item .title { color: var(--ink); }
html body .item:hover .title { text-decoration-color: var(--orange); }
html body .links-list a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* resume: logos have white backgrounds, so let the card color show through */
html body .timeline-header img.logo { mix-blend-mode: multiply; }
html body hr { border-color: rgba(43, 27, 20, .2); }

@media (max-width: 520px) {
  html:root { --pad-y: 24px; --pad-x: 20px; }
  html body { padding: 20px 12px 48px; }
  html body .tabs a { padding: 9px 14px; font-size: .92rem; }
  html body #container, html body .page { box-shadow: 6px 6px 0 var(--orange); border-radius: 14px; }
  html body #container::before, html body .page::before { border-radius: 11px 11px 0 0; }
}

/* print and PDF export stay clean: white, no card, no stripes */
@media print {
  html body { background: #fff !important; padding: 0 !important; }
  html body #container, html body .page {
    background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; max-width: none;
  }
  html body #container::before, html body .page::before { display: none; }
  html body #header img { border: 0; box-shadow: none; }
  html body #header-text h1 { font-family: inherit; font-weight: 700; }
  html body h2, html body #side-col h2 { color: #999; }
  html body a { color: inherit; }
}

/* small fixes */
html body #side-col h2 { color: var(--rust); }
html body .facts { gap: 20px 32px; }

@media print { html body #side-col h2 { color: #999; } }
