/* ==========================================================================
   Michael Wolfgang — static site styles
   No framework, no build step for CSS. Tokens first, then components.
   ========================================================================== */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #171a26;
  --muted: #5a6175;
  --border: #e3e6ee;
  --border-strong: #cfd4e0;
  --accent: #0f7b6c;
  --accent-strong: #0b5f53;
  --accent-soft: #e1f4ef;
  --accent-contrast: #ffffff;
  --link: #0b5f53;
  --success: #15803d;
  --success-soft: #e8f6ee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warning: #9a5b00;
  --warning-soft: #fff4de;
  --info-soft: #eaf0ff;
  --hero-from: #082a26;
  --hero-to: #127a6b;
  --code-bg: #12142080;
  --code-solid: #14172a;
  --code-text: #e8eaf6;
  --shadow-sm: 0 1px 2px rgba(23, 26, 38, 0.05), 0 1px 3px rgba(23, 26, 38, 0.05);
  --shadow-md: 0 4px 14px rgba(23, 26, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 70, 60, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --prose: 72ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1018;
    --surface: #161924;
    --surface-2: #1d2130;
    --text: #e9ebf3;
    --muted: #a0a7bc;
    --border: #272c3d;
    --border-strong: #363c52;
    --accent: #4fd1b8;
    --accent-strong: #7fe3cf;
    --accent-soft: #10312c;
    --accent-contrast: #0e1018;
    --link: #7fe3cf;
    --success: #4ade80;
    --success-soft: #11291b;
    --danger: #ff8a80;
    --danger-soft: #331715;
    --warning: #f5c26b;
    --warning-soft: #33270e;
    --info-soft: #172240;
    --hero-from: #06201d;
    --hero-to: #0e5a4f;
    --code-solid: #0a0c14;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1018;
  --surface: #161924;
  --surface-2: #1d2130;
  --text: #e9ebf3;
  --muted: #a0a7bc;
  --border: #272c3d;
  --border-strong: #363c52;
  --accent: #4fd1b8;
  --accent-strong: #7fe3cf;
  --accent-soft: #10312c;
  --accent-contrast: #0e1018;
  --link: #7fe3cf;
  --success: #4ade80;
  --success-soft: #11291b;
  --danger: #ff8a80;
  --danger-soft: #331715;
  --warning: #f5c26b;
  --warning-soft: #33270e;
  --info-soft: #172240;
  --hero-from: #06201d;
  --hero-to: #0e5a4f;
  --code-solid: #0a0c14;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 2.9rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.3em; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent); color: var(--accent-contrast); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-contrast);
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 0.65rem; color: var(--text);
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hero-to), var(--accent)); color: #fff;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a, .nav-btn {
  font: inherit; font-size: 0.95rem; font-weight: 550; color: var(--muted);
  background: none; border: 0; padding: 0.5rem 0.75rem; border-radius: 8px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav a:hover, .nav-btn:hover, .nav-group.open > .nav-btn { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"], .nav-btn.is-current { color: var(--accent); background: var(--accent-soft); }
.nav-btn::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 0.2rem; opacity: 0.7;
}
.nav-group { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 0.4rem; display: none; z-index: 120;
}
.nav-group.open > .menu, html:not(.js) .nav-group:focus-within > .menu { display: block; }
.menu a { display: flex; width: 100%; color: var(--text); font-weight: 500; }
.menu a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.menu-title { display: none; }
.theme-toggle {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; margin-left: 0.4rem;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; color: var(--text); place-items: center;
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.75rem 1.25rem 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-btn { display: none; }
  .nav-group { position: static; }
  .menu {
    position: static; display: block; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none;
  }
  .menu-title {
    display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--muted); font-weight: 700; padding: 0.9rem 0.75rem 0.2rem;
  }
  .menu a small { display: none; }
  .theme-toggle { margin: 0.6rem 0 0 0.5rem; width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(79, 209, 184, 0.40), transparent 60%),
              linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: #b5f0e3; }
.hero h1 { font-size: clamp(2.3rem, 5vw + 0.8rem, 3.8rem); margin-bottom: 0.4em; }
.hero .lede { font-size: 1.2rem; color: #d6f7ef; max-width: 38em; }
.hero .lede a { color: #fff; font-weight: 650; }
.hero-art {
  justify-self: end; width: min(100%, 360px); aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); transform: rotate(2deg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.2rem; margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: 0.85rem; color: #b5f0e3; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { display: none; }
}

.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.6rem 0 2.2rem; }
.page-head h1 { margin-bottom: 0.25em; font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem); }
.page-head .lede { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 750; color: var(--accent); margin: 0 0 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* ---------- Layout helpers ---------- */
.section { padding: 2.75rem 1.25rem 3.25rem; }
.section.tight { padding-top: 2rem; }
.stack > * + * { margin-top: 1.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.prose { max-width: var(--prose); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font: inherit; font-weight: 650; font-size: 0.98rem; padding: 0.7rem 1.2rem; border-radius: 10px;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-contrast);
  cursor: pointer; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-light { background: #fff; color: #0e5a4f; }
.btn-light:hover { background: #e1f4ef; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.88rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); text-decoration: none; }
.card-link h3 { color: var(--text); margin-bottom: 0.35rem; }
.card-link:hover h3 { color: var(--accent); }
.card-link p { color: var(--muted); font-size: 0.97rem; }
.card-link .more { margin-top: auto; font-weight: 650; font-size: 0.9rem; color: var(--accent); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem;
}
.card h2.card-title { font-size: 1.3rem; padding-left: 0.8rem; border-left: 4px solid var(--accent); margin-bottom: 1rem; }

/* Feature rows (home page) */
.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.feature:nth-child(even) { grid-template-columns: 1fr 300px; }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-art { border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); aspect-ratio: 1; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { margin-bottom: 0.6rem; }
.feature .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.feature .links li { margin: 0; }
.feature .links a { font-weight: 600; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f7b6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art { max-width: 260px; }
}

.feature-art.photo-art { aspect-ratio: 4 / 3; }
.about-intro { display: grid; grid-template-columns: 180px 1fr; gap: 1.6rem; align-items: start; }
.about-intro img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-md); }
@media (max-width: 620px) { .about-intro { grid-template-columns: 1fr; } .about-intro img { width: 140px; height: 140px; } }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 0.4rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 0.65rem 0.85rem;
}
textarea { font-family: var(--mono); font-size: 0.9rem; line-height: 1.5; min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.field { margin-bottom: 1.1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: 0.8rem; font-weight: 650;
  padding: 0.22rem 0.65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active, button.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ---------- Link lists ---------- */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; padding: 0.85rem 0; border-top: 1px solid var(--border); }
.link-list li:first-child { border-top: 0; padding-top: 0; }
.link-list li:last-child { padding-bottom: 0; }
.link-list a { font-weight: 650; }
.link-list a.ext::after { content: " ↗"; font-size: 0.85em; color: var(--muted); }
.link-list p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.93rem; }


/* ---------- Q&A ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; background: var(--surface-2); border-radius: 12px; padding: 0.3rem; margin-bottom: 1.5rem; }
.tab {
  font: inherit; font-weight: 650; font-size: 0.95rem; padding: 0.55rem 1.1rem; border-radius: 9px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.8rem; overflow: hidden; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.3rem;
  font-weight: 650; font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; margin-top: 0.55em;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: 0.8em; }
.qa summary:hover { background: var(--surface-2); }
.qa .num {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 750;
}
.qa .answer { padding: 0 1.3rem 1.3rem 4.1rem; color: var(--muted); }
.qa .answer p { margin: 0; border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text); }
.qa .answer.empty p { color: var(--muted); font-style: italic; border-color: var(--border-strong); }
@media (max-width: 620px) { .qa .answer { padding-left: 1.3rem; } }


/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .tag { color: var(--muted); max-width: 26em; margin-top: 0.8rem; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 5rem 0; }
.not-found .big { font-size: clamp(4rem, 15vw, 8rem); font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .theme-toggle, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Running results */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.pr-card { display: block; text-decoration: none; color: inherit; padding: 1rem 1.1rem; }
.pr-card .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; }
.pr-card .v { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.pr-card .m { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.dist-block { margin-top: 2rem; scroll-margin-top: 5rem; }
.ultra-head { margin-top: 3rem; }
table.results, table.ref-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.results th, table.ref-table th { text-align: left; background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ==========================================================================
   Trips-specific components
   ========================================================================== */
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 0.2rem; }
.section-head p { margin: 0; }

/* Hero card (replaces the photo on the personal site) */
.hero-card { aspect-ratio: auto; transform: rotate(2deg); background: rgba(255, 255, 255, 0.10); backdrop-filter: blur(6px); padding: 1.6rem; }
.hero-card-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 1rem; color: #fff; }
.hero-ladder { list-style: none; margin: 0; padding: 0; }
.hero-ladder li { display: flex; gap: 0.9rem; align-items: baseline; margin: 0; padding: 0.55rem 0; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #e8fbf6; font-weight: 600; }
.hero-ladder li:first-child { border-top: 0; }
.hero-ladder span { min-width: 3.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #8ff0dc; }

/* Place cards */
.place { display: flex; flex-direction: column; gap: 0.7rem; scroll-margin-top: 5rem; }
.place > p { margin: 0; }
.place-top { display: flex; gap: 0.85rem; align-items: center; }
.place-top h3 { margin: 0; font-size: 1.2rem; }
.place .loc { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.place-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.4rem; }
.chip-drive { background: var(--info-soft); color: var(--text); }
.chip-cost { background: var(--success-soft); color: var(--success); }
.place .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0; padding: 0.7rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.place .meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--muted); }
.place .meta dd { margin: 0.1rem 0 0; font-size: 0.9rem; font-weight: 600; }
.place .tip { font-size: 0.93rem; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.6rem 0.8rem; }
.place .tip strong { color: var(--text); }
.place-links { margin-top: auto; padding-top: 0.2rem; }
.place:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
@media (max-width: 520px) { .place .meta { grid-template-columns: 1fr 1fr; } }

/* Region headings */
.region { margin-top: 2.2rem; scroll-margin-top: 5rem; }
.region:first-child { margin-top: 0.5rem; }
.region-title { display: flex; align-items: center; gap: 0.7rem; font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); margin-bottom: 1.1rem; }
.region-count { font-size: 0.8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0.1rem 0.6rem; }
.region-blurb { margin-top: -0.5rem; }

/* Filters */
.filter-chips { margin-bottom: 0.6rem; }
.filters { margin-bottom: 1rem; }
.filters .toolbar { display: grid; gap: 0.9rem; align-items: end; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0.5rem; }
.filters .field { margin-bottom: 0; }
@media (max-width: 900px) { .filters .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .filters .toolbar { grid-template-columns: 1fr; } }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0.8rem 0 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-top: 1rem; }
.note { margin-bottom: 1.2rem; background: var(--info-soft); }
.note p { margin: 0; font-size: 0.95rem; }
.cat-grid .card-link p { font-size: 0.9rem; }
.month-card .checklist li { margin-bottom: 0.6rem; }

/* Itineraries */
.itinerary h2 { margin-bottom: 0.4rem; }
.it-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.day-label { margin: 1.4rem 0 0.5rem; font-size: 1.05rem; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--border-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; margin: 0 0 0.8rem; padding-left: 0.6rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .when { font-weight: 750; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Seasonal calendar */
.pyo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.pyo div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.8rem 1rem; display: flex; flex-direction: column; }
.pyo span { color: var(--muted); font-size: 0.88rem; }
.month { border-top: 4px solid var(--accent); }
.month.season-spring { border-top-color: #4caf50; }
.month.season-summer { border-top-color: #f5a623; }
.month.season-fall { border-top-color: #d9622b; }
.month.season-winter { border-top-color: #4a90d9; }
.month .eyebrow { margin-bottom: 0.2rem; }
.month .link-list li { padding: 0.7rem 0; }
.month .link-list p { font-size: 0.9rem; }
.prose h2 { margin-top: 1.6rem; font-size: 1.3rem; }
.prose > p:first-child { margin-top: 0; }

/* Photos */
.place-photo { margin: -1.6rem -1.6rem 0.2rem; position: relative; background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.place-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.place-photo figcaption { font-size: 0.68rem; line-height: 1.3; color: var(--muted); padding: 0.3rem 0.8rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.place-photo figcaption a { color: inherit; }
.credits li { margin-bottom: 0.2rem; }
