/* Variant A (improved): clean sans, blue accent, text left / portrait right.
   Dark mode portrait: the original ink on a soft off-white card (multiply blend merges the drawing's white with the card).
   Theme: system preference by default; js/theme.js sets <html data-theme> (see the two dark blocks below).
   Name: the header title stays small; the hero heading is the large one. */
:root {
  --bg: #ffffff; --fg: #1a1a1a; --muted: #4a5568; --accent: #1d4ed8; --on-accent: #ffffff;
  --rule: #e2e8f0; --surface: #f3f6fb; --chip-bg: #e8eefc; --chip-fg: #1a1a1a; --chip-border: #e8eefc;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body); --measure: 46rem; --portrait-w: 15rem; --portrait-ratio: 4 / 5;
  --portrait-radius: 22px; --portrait-bg: var(--surface); --portrait-pad: 0; --portrait-img-radius: 0;
  /* venue tag palette (background tint / text), light */
  --tag-bg-0: #dbe8fa; --tag-fg-0: #123668;
  --tag-bg-1: #dbfaf9; --tag-fg-1: #126865;
  --tag-bg-2: #dbfae6; --tag-fg-2: #12682f;
  --tag-bg-3: #faf6db; --tag-fg-3: #685d12;
  --tag-bg-4: #fae4db; --tag-fg-4: #682c12;
  --tag-bg-5: #fadbe3; --tag-fg-5: #681228;
  --tag-bg-6: #fadbf7; --tag-fg-6: #681261;
  --tag-bg-7: #e8dbfa; --tag-fg-7: #361268;
}
/* Dark theme applies in two cases. KEEP THE TWO TOKEN BLOCKS BELOW IDENTICAL.
   (a) the system is dark and the visitor has not forced light  (b) the visitor forced dark via data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1115; --fg: #e6e8eb; --muted: #a0a7b4; --accent: #8ab4ff; --on-accent: #0b1020;
    --rule: #2a2f3a; --surface: #171b22; --chip-bg: #1e2a44; --chip-fg: #e6e8eb; --chip-border: #1e2a44;
    --portrait-bg: #ece8e1; --portrait-pad: .5rem; --portrait-img-radius: calc(var(--portrait-radius) - .5rem);
    --tag-bg-0: #20324b; --tag-fg-0: #b4d0f9;
    --tag-bg-1: #204b4a; --tag-fg-1: #b4f9f7;
    --tag-bg-2: #204b2e; --tag-fg-2: #b4f9cb;
    --tag-bg-3: #4b4520; --tag-fg-3: #f9f0b4;
    --tag-bg-4: #4b2d20; --tag-fg-4: #f9c8b4;
    --tag-bg-5: #4b202b; --tag-fg-5: #f9b4c5;
    --tag-bg-6: #4b2047; --tag-fg-6: #f9b4f3;
    --tag-bg-7: #32204b; --tag-fg-7: #d0b4f9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115; --fg: #e6e8eb; --muted: #a0a7b4; --accent: #8ab4ff; --on-accent: #0b1020;
  --rule: #2a2f3a; --surface: #171b22; --chip-bg: #1e2a44; --chip-fg: #e6e8eb; --chip-border: #1e2a44;
  --portrait-bg: #ece8e1; --portrait-pad: .5rem; --portrait-img-radius: calc(var(--portrait-radius) - .5rem);
  --tag-bg-0: #20324b; --tag-fg-0: #b4d0f9;
  --tag-bg-1: #204b4a; --tag-fg-1: #b4f9f7;
  --tag-bg-2: #204b2e; --tag-fg-2: #b4f9cb;
  --tag-bg-3: #4b4520; --tag-fg-3: #f9f0b4;
  --tag-bg-4: #4b2d20; --tag-fg-4: #f9c8b4;
  --tag-bg-5: #4b202b; --tag-fg-5: #f9b4c5;
  --tag-bg-6: #4b2047; --tag-fg-6: #f9b4f3;
  --tag-bg-7: #32204b; --tag-fg-7: #d0b4f9;
}
:root[data-theme="light"] { color-scheme: light; }

.variant-a .site-header { border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.variant-a h1 { font-size: 2.1rem; letter-spacing: -.01em; }
.variant-a h2 { border-bottom: 1px solid var(--rule); }
.variant-a .hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .6rem; }
.variant-a .lead { font-size: 1.2rem; margin: .25rem 0 0; }
.variant-a .portrait { border-radius: var(--portrait-radius); border: 1px solid var(--rule); background: var(--portrait-bg); padding: var(--portrait-pad); }
.variant-a .portrait img { border-radius: var(--portrait-img-radius); }
.variant-a .link-row a:hover, .variant-a .link-row .email:hover { box-shadow: 0 1px 0 var(--accent); }
