/* dbeca.org — tokens from holiday-on-dexter-passport/design/tokens.css (house style). */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --dexter-gold: #e8d18a;
  --dexter-ink: #0e0e0d;
  --dexter-paper: #ffffff;
  --surface: #fbfaf6;
  --surface-raised: #ffffff;
  --text: #0e0e0d;
  --text-muted: #5c5a52;
  --gold-text: #7d6418;
  --line: #d9d2bd;
  --line-strong: #8f8873;
  --focus: #0e0e0d;
  --logo-ground: #ffffff;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 4px; --radius-md: 8px; --radius-pill: 999px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 65ch;
  --page: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121211;
    --surface-raised: #1c1b19;
    --text: #f1eee4;
    --text-muted: #b3ae9e;
    --gold-text: #e8d18a;
    --line: #34322d;
    --line-strong: #7a7566;
    --focus: #e8d18a;
    --logo-ground: #000000;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1.625 var(--font-sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--dexter-paper); color: var(--dexter-ink);
  padding: var(--space-2) var(--space-4); z-index: 10;
}
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--space-8); } }

/* ---------- The band: header + page title on ink ---------- */
.band {
  background: var(--dexter-ink);
  color: var(--dexter-paper);
  border-bottom: 1px solid var(--dexter-gold);
}
.band :focus-visible { outline-color: var(--dexter-gold); }
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-4); padding-bottom: var(--space-4);
}
.wordmark {
  font: 700 1.25rem/1 var(--font-serif);
  letter-spacing: 0.08em; text-decoration: none;
}
.nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: var(--space-2) 0;
  font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: #d8d4c8;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--dexter-gold); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--dexter-gold); }

.masthead { padding-top: var(--space-12); padding-bottom: var(--space-16); }
@media (min-width: 640px) { .masthead { padding-top: var(--space-16); padding-bottom: var(--space-24); } }

.ruled {
  display: inline-block;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--dexter-gold);
  border-bottom: 1px solid var(--dexter-gold);
  color: var(--dexter-gold);
  font: 600 0.75rem/1.4 var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase;
}
.display {
  margin: var(--space-6) 0 0;
  max-width: 18ch;
  font: 700 clamp(2.25rem, 1.4rem + 4vw, 4rem)/1.05 var(--font-serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  margin: var(--space-6) 0 0;
  max-width: 52ch;
  color: #d8d4c8;
  font-size: 1.125rem; line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none;
  border: 1px solid transparent;
}
.btn-gold { background: var(--dexter-gold); color: var(--dexter-ink); }
.btn-gold:hover { background: #f1e0a8; }
.btn-ghost { border-color: #5a574e; color: var(--dexter-paper); }
.btn-ghost:hover { border-color: var(--dexter-gold); }
.btn-ink { background: var(--text); color: var(--surface); }

/* ---------- Content ---------- */
main { display: block; }
.section { padding: var(--space-16) 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .section { padding: var(--space-24) 0; } }

.label {
  margin: 0 0 var(--space-4);
  color: var(--gold-text);
  font: 600 0.75rem/1.4 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
}
h2, h3 { font-family: var(--font-serif); text-wrap: balance; }
h2 { margin: 0 0 var(--space-6); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); line-height: 1.15; font-weight: 700; }
h3 { margin: 0 0 var(--space-2); font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
.muted { color: var(--text-muted); }
.big { font: 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem)/1.5 var(--font-serif); max-width: 34ch; }

.split { display: grid; gap: var(--space-12); }
@media (min-width: 820px) { .split { grid-template-columns: 5fr 4fr; gap: var(--space-16); align-items: start; } }

.list-plain { margin: 0; padding: 0; list-style: none; }
.pillars { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { padding-top: var(--space-4); border-top: 2px solid var(--text); }
.pillars p { margin: 0; color: var(--text-muted); }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
@media (min-width: 640px) { .card { padding: var(--space-8); } }
.card > :last-child { margin-bottom: 0; }

.feature {
  display: grid; gap: var(--space-6);
  background: var(--dexter-ink); color: var(--dexter-paper);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .feature { padding: var(--space-12); } }
@media (min-width: 820px) { .feature { grid-template-columns: 3fr 2fr; align-items: end; } }
.feature h2 { margin-bottom: var(--space-3); }
.feature p { color: #d8d4c8; }
.feature .label { color: var(--dexter-gold); }
.feature :focus-visible { outline-color: var(--dexter-gold); }

.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 14rem 1fr; gap: var(--space-6); } }
.facts dt { color: var(--text-muted); font-size: 0.875rem; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

.dates { font-variant-numeric: tabular-nums; }
.event { display: grid; gap: var(--space-4); padding: var(--space-8) 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .event { grid-template-columns: 12rem 1fr; gap: var(--space-8); } }
.event:last-child { border-bottom: 1px solid var(--line); }
.event .when { font: 600 0.875rem/1.5 var(--font-sans); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; margin-left: var(--space-2); padding: 2px var(--space-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font: 600 0.6875rem/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
  vertical-align: middle; color: var(--text-muted);
}

.logo-tile {
  background: var(--logo-ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 360px;
}
.logo-tile img { width: 100%; }

.contact-big { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 640px) { .contact-big { grid-template-columns: repeat(3, 1fr); } }
.contact-big a { font: 600 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.3 var(--font-serif); word-break: break-word; }

.corridor { max-width: 320px; }
.corridor-map { width: 100%; height: auto; }
.cm-ink-stroke { stroke: var(--text); }
.cm-muted-stroke { stroke: var(--text-muted); }
.cm-ink-fill { fill: var(--text); }
.cm-muted-fill { fill: var(--text-muted); }
.cm-sans { font-family: var(--font-sans); }
.cm-serif { font-family: var(--font-serif); }
.cm-ring { stroke: none; }
@media (prefers-color-scheme: dark) { .cm-ring { stroke: var(--dexter-gold); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--space-12) 0; color: var(--text-muted); font-size: 0.875rem; }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer p { margin-bottom: var(--space-2); }
.footer .slogan { font: italic 400 1rem/1.5 var(--font-serif); color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
}
@media print {
  .band { background: none; color: #000; border-bottom: 2px solid #000; }
  .nav, .skip, .actions { display: none; }
}
.spaced { margin-top: var(--space-8); }
figure { margin: 0; }
.split > * { min-width: 0; }
.corridor figcaption { margin-top: var(--space-3); font-size: 0.875rem; }

/* ---------- Home hero photo ---------- */
.masthead.has-hero { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .masthead.has-hero { grid-template-columns: 1fr 480px; gap: var(--space-16); } }
.hero-photo img { width: 100%; border-radius: var(--radius-md); border: 1px solid #2a2925; }
.hero-photo figcaption { margin-top: var(--space-3); font-size: 0.8125rem; color: #b3ae9e; }
.hero-photo a { color: #d8d4c8; }

/* ---------- Event date tile ---------- */
.date-tile {
  display: inline-grid; justify-items: center; align-content: center;
  width: 6rem; padding: var(--space-3) 0;
  background: var(--dexter-ink); color: var(--dexter-paper);
  border-radius: var(--radius-sm);
  border-top: 1px solid var(--dexter-gold); border-bottom: 1px solid var(--dexter-gold);
  font-variant-numeric: tabular-nums;
}
.date-tile .m, .date-tile .y { font: 600 0.6875rem/1.4 var(--font-sans); letter-spacing: 0.16em; }
.date-tile .d { font: 700 2.25rem/1.1 var(--font-serif); color: var(--dexter-gold); }
.event .when { display: grid; gap: var(--space-3); align-content: start; }
.links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }
.links a { font-weight: 600; }
