/* =============================================================
   jefvandegraaf.com — hand-written design system
   Rebuilt from the live GeneratePress/GB design: black masthead,
   DM Sans body / DM Serif Display headings, red accent #e8112d,
   copywriter yellow #ffdd00, yellow-highlight link underlines.
   ============================================================= */

/* ---- Fonts (self-hosted) ------------------------------------ */
/* 2026-07-23: reverted from Switzer/Archivo/DM Serif Display experiments.
   DM Sans only, everywhere — no serif. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-var-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------- */
:root {
  --contrast: #000000;
  --contrast-2: #575760;
  --contrast-3: #cccccc;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #e8112d;
  --copywriter-yellow: #ffdd00;
  --highlight: #f9f7e0;
  --ink: #000000;            /* always-black (header/footer) */
  --paper: #ffffff;          /* always-white */
  --serif: "DM Sans", sans-serif; /* no serif, per Jef — was DM Serif Display */
  --sans: "DM Sans", sans-serif;
  --heading: "DM Sans", sans-serif; /* reverted 2026-07-23 — was Switzer/Archivo/DM Serif Display */
  --container: 1290px;
}
/* ---- Reset / base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--contrast);
  background: var(--base-3);
}
img { max-width: 100%; height: auto; }
/* Fluid type scale: clamp(min, preferred, max) instead of fixed px.
   Preferred value = rem (respects user font-size) + vw (scales with
   viewport) — no breakpoint jumps, no overflow on in-between screens,
   and it's accessible since zooming still works (unlike raw px/vw). */
h1, h2, h3, h4, h5, h6 { margin: 1.5em 0 0.6em; line-height: 1.15; font-family: var(--heading); }
h1 { font-weight: 600; font-size: clamp(2.25rem, 1.85rem + 2vw, 3.75rem); letter-spacing: 1px; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 1.35rem + 0.75vw, 2rem); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 1.175rem + 0.375vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-weight: 600; font-size: clamp(1.125rem, 1.075rem + 0.25vw, 1.25rem); }
h5 { font-weight: 600; font-size: clamp(1rem, 0.965rem + 0.175vw, 1.125rem); }
h6 { font-weight: 600; font-size: clamp(0.925rem, 0.9rem + 0.125vw, 1rem); }
p { margin: 0 0 1.2em; }
hr { border: 0; border-top: 2px solid var(--base); margin: 3rem auto; }
a { color: inherit; }
::selection { background: var(--copywriter-yellow); color: #000; }

/* signature yellow-highlight links (Jef's custom style) */
p a, li a, figcaption a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--contrast-3);
  background-image: linear-gradient(to bottom, var(--highlight) 0%, var(--highlight) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: 0 110%;
  transition: all 0.35s;
}
p a:hover, li a:hover, figcaption a:hover {
  background-size: 100% 88%;
  border-bottom: 2px solid var(--copywriter-yellow);
}
.on-dark p a, .on-dark li a { border-bottom-color: var(--contrast-2); }
.on-dark p a:hover, .on-dark li a:hover { color: #000; }

blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 5px solid var(--copywriter-yellow);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
}
blockquote cite { font-family: var(--sans); font-style: normal; font-size: 0.85em; color: var(--contrast-2); }
pre, code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: var(--base-2);
  border: 1px solid var(--base);
  border-radius: 4px;
}
code { padding: 0.15em 0.4em; }
pre { padding: 1rem; overflow-x: auto; }
pre code { border: 0; background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 2rem 0; }
th, td { padding: 12px; border: 2px solid var(--base); text-align: left; }
thead th { background: var(--ink); color: #fff; border-color: var(--ink); }
iframe { max-width: 100%; border: 0; }
audio { width: 100%; margin: 1.5rem 0; }
video { max-width: 100%; height: auto; border-radius: 7px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.align-center { margin-left: auto; margin-right: auto; display: block; }

/* ---- Header (black masthead, no nav — mirrors live) ---------- */
.site-header { background: var(--ink); padding: 20px 40px; }
.site-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}
.site-branding { grid-column: 1; }
.main-title a {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 0.5;
}
.main-title a::after, .jef::after {
  content: "™";
  font-size: 0.6em;
  font-weight: 600;
  padding-left: 1px;
  position: relative;
  top: -0.47em;
}
.site-description {
  color: #cccccc;
  text-transform: uppercase;
  font-size: 0.491em;
  letter-spacing: 1.5px;
  margin: 0;
  padding-bottom: 0;
}
.header-actions { grid-column: 3; display: flex; align-items: center; gap: 12px; }
.btn-story {
  color: var(--paper);
  text-decoration: none;
  border: 0.1em solid #ffd000;
  padding: 0.5rem 1rem 0.5rem 1.13rem;
  transition: all 0.3s;
}
.btn-story:hover { background: var(--copywriter-yellow); color: #000; }
/* ---- Hero band (home) ---------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 40px 0;
}
.hero__grid {
  display: grid;
  /* image column hugs its natural width (~1/3), copy takes the rest */
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__copy { margin-bottom: 3rem; }
.hero__copy h1 { color: var(--paper); margin-top: 1em; }
.hero__copy .newsletter { width: 100%; margin: 0.5rem 0; }
.hero__privacy { color: #cccccc; font-size: 13px; margin-bottom: 30px; }
.hero__privacy a { color: inherit; border-bottom-color: var(--contrast-2); }
.hero__img { text-align: center; }
.hero__img img { vertical-align: bottom; }

/* ---- Cards band (home) --------------------------------------- */
.cards-band {
  background: var(--base-2);
  border-top: 2px solid var(--contrast-3);
  border-bottom: 2px solid var(--base);
  padding: 7rem 40px;
}
.cards-band__intro { text-align: center; margin: 0 auto 3rem; }
.cards-band__intro h2 { margin-top: 0; }
.cards-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
}
.card {
  display: block;
  background: var(--base-3);
  color: var(--contrast);
  text-decoration: none;
  border: 1px solid var(--contrast-3);
  border-bottom-width: 3px;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
}
.card:hover, .card:focus { background: var(--ink); color: var(--paper); }
.card img { display: block; width: 100%; }
.card__body { padding: 2rem; }
.card__eyebrow { color: #7c7c7c; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; }
.card__title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-family: "DM Sans";
  letter-spacing: -0.5px;
  text-align: center;
  padding: 0 24px;
}
.arrow-button {
  display: block;
  align-items: center;
  column-gap: 0.5em;
  font-weight: 500;
  width: 100%;
  text-align: center;
  color: white;
  background: black;
  padding: 10px;
  border-radius: 50px;
}
.arrow-button::after { content: "➝"; transition: transform 0.3s; margin-left: 0.5em; }
.card:hover .arrow-button::after { transform: translateX(5px); }
.card:hover .arrow-button, .card:focus .arrow-button { background: white; color: black; }

/* ---- Bio / recent (home) ------------------------------------- */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.bio-grid__left { border-right: 2px solid var(--base); padding: 6rem 5rem 6rem 0; }
.bio-grid__right { padding: 6rem 0 6rem 4rem; }
.bio-grid h2 { margin-top: 0; }
.recent-item { margin-bottom: 2.5rem; }
.recent-item h3 {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}
.recent-item h3 a { text-decoration: none; }
.recent-item h3 a:hover, .recent-item h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.recent-item time { color: var(--contrast-2); font-size: 0.85rem; }

/* ---- Newsletter form ----------------------------------------- */
.newsletter__label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.hero .newsletter__label, .on-dark .newsletter__label { color: #fff; }
.newsletter__row { display: flex; gap: 2px; align-items: stretch; }
.newsletter__input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: #000;
  background: #fff;
  border: 1px solid var(--contrast-3);
  border-radius: 3px 0 0 3px;
  padding: 12px 16px;
}
.newsletter__input:focus { outline: 2px solid var(--copywriter-yellow); outline-offset: -1px; }
.newsletter__button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0 3px 3px 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s;
}
.hero .newsletter__button, .on-dark .newsletter__button { background: var(--copywriter-yellow); border-color: var(--copywriter-yellow); color: #000; }
.newsletter__button:hover { background: var(--copywriter-yellow); border-color: var(--copywriter-yellow); color: #000; }
.hero .newsletter__button:hover, .on-dark .newsletter__button:hover { background: #fff; border-color: #fff; }
/* stacked variant (home hero): no visible label, full-width rows */
.newsletter--stack .newsletter__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.newsletter--stack .newsletter__row { flex-direction: column; gap: 8px; }
.newsletter--stack .newsletter__input,
.newsletter--stack .newsletter__button { width: 100%; border-radius: 3px; }
.newsletter__msg { font-size: 0.85rem; margin: 8px 0 0; min-height: 1.2em; }
.newsletter__msg.is-error { color: var(--accent); }
.newsletter__msg.is-success { color: #1a8917; }
.on-dark .newsletter__msg.is-success, .hero .newsletter__msg.is-success { color: var(--copywriter-yellow); }

/* ---- Page/post hero band ------------------------------------- */
.page-band {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 40px;
}
.page-band__inner { max-width: var(--container); margin: 0 auto; }
.page-band h1 { color: var(--paper); margin: 0.4em 0 0; width: 90%; }
.post-catlink { display: inline-flex; align-items: center; gap: 0.5em; font-size: 1rem; font-weight: 600; }
.post-catlink svg { width: 20px; height: 20px; fill: var(--copywriter-yellow); }
.post-catlink .chip + .chip::before { content: " ·"; margin: 0 0.7em; color: var(--contrast-2); }
.page-band__meta { margin-top: 1.2rem; color: #cccccc; font-size: 0.95rem; }
.written-by, .written-on { font-family: var(--serif); font-style: italic; color: #999; margin-right: 10px; }
.written-on { margin-left: 10px; }

/* ---- Article layout ------------------------------------------ */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.post-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.article {
  padding: 4rem 2rem 4rem 0;
  border-right: 1px solid var(--base);
  font-size: 1.1em;
  line-height: 1.75em;
  min-width: 0;
}
.post-layout--single .article { border-right: 0; padding-right: 0; }
.article > figure, .article figure { margin: 2rem 0; }
.article img { border-radius: 7px; border: 2px solid var(--ink); }
.article figcaption { font-size: 0.85em; color: var(--contrast-2); text-align: center; margin-top: 0.5rem; }
.article .featured-img img { border-radius: 8px; border: 1px solid var(--base); margin-bottom: 35px; }
.article h2 { font-size: 1.9rem; }
.article ul, .article ol { padding-left: 25px; }
.article li { margin-bottom: 0.4em; }
.article .newsletter { background: var(--base-2); border: 1px solid var(--base); border-radius: 8px; padding: 1.5rem; margin: 2.5rem 0; }

/* sidebar (author + mini newsletter) */
.sidebar { padding: 4rem 0; }
.sidebar__widget { margin-bottom: 2.5rem; }
.sidebar__widget img.author-img { border-radius: 8px; width: 100%; }
.sidebar__widget h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.sidebar__widget p { font-size: 0.9rem; color: var(--contrast-2); }
.sidebar__socials { display: flex; gap: 8px; margin-top: 0.8rem; }
.sidebar__socials a { color: var(--contrast); opacity: 0.75; transition: opacity 0.3s; line-height: 0; }
.sidebar__socials a:hover { opacity: 1; color: var(--accent); }
.sidebar__socials svg { width: 20px; height: 20px; }
.sidebar .newsletter__row { flex-direction: column; }
.sidebar .newsletter__input, .sidebar .newsletter__button { border-radius: 3px; width: 100%; }
.sidebar .newsletter__button { margin-top: 6px; }
.sidebar__nl-heading { font-size: 0.95rem; margin: 0 0 4px; text-align: center; font-weight: 700; }
.sidebar__nl-text { font-size: 13px; text-align: center; }

/* tag chips under posts */
.post-tags { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags .chip {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--base-2);
  border: 1px solid var(--base);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--contrast-2);
}

/* ---- Archive grids (articles / achievements) ----------------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--base-3);
  border: 1px solid var(--contrast-3);
  border-bottom-width: 3px;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
}
.post-card:hover { background: var(--ink); color: var(--paper); }
.post-card:hover a { color: inherit; }
.post-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #7c7c7c; margin: 0 0 0.5rem; }
.post-card__title { font-size: 1.2rem; font-weight: 900; line-height: 1.2; margin: 0 0 0.6rem; font-family: var(--sans); letter-spacing: -0.5px; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { font-size: 0.9rem; color: var(--contrast-2); flex: 1; margin-bottom: 0.8rem; }
.post-card:hover .post-card__excerpt, .post-card:hover .post-card__cat { color: inherit; opacity: 0.8; }
.post-card__meta { font-size: 0.8rem; color: var(--contrast-2); margin: 0; }
.post-card:hover .post-card__meta { color: inherit; opacity: 0.7; }

/* ---- Jef's authored content classes -------------------------- */
.tldr-box {
  background: var(--base-2);
  border: 1px solid var(--base);
  border-left: 4px solid var(--copywriter-yellow);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.tldr-box ul { margin: 0.5rem 0 0; }
.question-block {
  background-color: var(--base);
  padding: 2rem 2rem 2rem 3.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.escape-line { font-weight: bold; font-size: 1.2rem; letter-spacing: 0.5px; text-align: center; margin-top: 2rem; }
.quote-a-friend { font-size: 18px; line-height: 1.5; }
.quote-a-friend cite { font-size: 14px; }
.inpost-table { width: 100%; border-collapse: collapse; }
.inpost-table thead th { background: var(--ink); color: #fff; text-align: left; padding: 12px; border: 2px solid var(--ink); }
.inpost-table td { font-size: 16px; line-height: 1.3; padding: 12px; border: 2px solid var(--base); }
.table-of-links li { margin-bottom: 10px; }
.achievement-gallery img { border-radius: 5px; }
.achievement-gallery figcaption { font-size: 16px; margin-bottom: 1.5rem; }
.page-label {
  font-weight: 500;
  color: var(--contrast-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -20px;
}
.nomad-stats-bar {
  background-color: var(--base-2);
  border: 1px solid var(--base);
  border-radius: 8px;
  padding: 15px 30px;
  text-align: center;
  margin: 30px auto;
  max-width: 400px;
}
.nomad-stats-bar .stats-text { font-size: 18px; font-weight: 500; margin: 0; color: var(--contrast-2); letter-spacing: 1px; }
.nomad-stats-bar .count { font-size: 26px; font-weight: 800; color: #06c; margin: 0 5px; }
.triathlon-stats {
  background: var(--base-2);
  padding: 15px 20px;
  margin-bottom: 30px;
  border-left: 4px solid var(--copywriter-yellow);
  border-radius: 3px;
}
.triathlon-stats h3 { margin: 0; font-size: 1.2em; font-weight: 700; font-family: var(--serif); letter-spacing: 1px; }
.triathlon-stats ul { list-style: none; padding: 0; margin: 10px 0 0 0; }
.triathlon-stats li { padding: 8px 0; border-bottom: 1px solid var(--base); font-size: 16px; }
.triathlon-stats li:last-child { border-bottom: none; }

/* ---- Race cards (ported from Jef's jvdg-race-countdown) ------ */
.jvdg-race-card { font-family: inherit; border-radius: 12px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.jvdg-race-card__body { padding: 28px 24px; flex: 1; }
.jvdg-race-card--dark { background: #000000; color: #ffffff; }
.jvdg-race-card--dark .jvdg-race-card__leg { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
.jvdg-race-card--dark .jvdg-race-card__split { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); }
.jvdg-race-card--dark .jvdg-race-card__result-time { color: #ffd700; }
.jvdg-race-card--dark .jvdg-race-card__photo { border-top: 1px solid rgba(255,255,255,0.06); }
.jvdg-race-card--light { background: #ffffff; color: #1a1a1a; border: 1px solid #e0e0e0; }
.jvdg-race-card--light .jvdg-race-card__title { color: #1a1a1a; }
.jvdg-race-card--light .jvdg-race-card__leg { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
.jvdg-race-card--light .jvdg-race-card__split { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.jvdg-race-card--light .jvdg-race-card__result-time { color: #c49000; }
.jvdg-race-card--light .jvdg-race-card__badge--finisher { background: rgba(196,144,0,0.12); color: #c49000; border-color: rgba(196,144,0,0.25); }
.jvdg-race-card--light .jvdg-race-card__badge--upcoming { background: rgba(0,150,136,0.1); color: #00897b; border-color: rgba(0,150,136,0.2); }
.jvdg-race-card--light .jvdg-race-card__badge--dnf { background: rgba(211,47,47,0.08); color: #d32f2f; border-color: rgba(211,47,47,0.2); }
.jvdg-race-card--light .jvdg-race-card__badge--dns { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.1); }
.jvdg-race-card--light .jvdg-race-card__photo { border-top: 1px solid #e0e0e0; }
.jvdg-race-card--light .jvdg-race-card__link-hint { color: #00897b; }
.jvdg-race-card--light.jvdg-race-card--finisher::before { background: linear-gradient(90deg, #c49000, #e6b800, #c49000); }
a.jvdg-race-card-link { display: block; text-decoration: none; color: inherit; border-radius: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.jvdg-race-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
a.jvdg-race-card-link:hover .jvdg-race-card__link-hint { opacity: 1; }
.jvdg-race-card__link-hint { font-size: 0.7rem; opacity: 0.4; margin-top: 12px; transition: opacity 0.2s; letter-spacing: 0.03em; }
.jvdg-race-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #e94560, #f5a623, #4ecdc4); z-index: 1; }
.jvdg-race-card--finisher::before { background: linear-gradient(90deg, #f5a623, #ffd700, #f5a623); height: 4px; }
.jvdg-race-card__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.jvdg-race-card__badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.jvdg-race-card__badge--finisher { background: rgba(245,166,35,0.2); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.jvdg-race-card__badge--upcoming { background: rgba(78,205,196,0.15); color: #4ecdc4; border: 1px solid rgba(78,205,196,0.25); }
.jvdg-race-card__badge--dnf { background: rgba(233,69,96,0.15); color: #e94560; border: 1px solid rgba(233,69,96,0.25); }
.jvdg-race-card__badge--dns { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.1); }
.jvdg-race-card__title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; color: inherit; font-family: inherit; }
.jvdg-race-card__type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.45; margin-bottom: 4px; }
.jvdg-race-card__location { font-size: 0.85rem; opacity: 0.7; margin-bottom: 4px; }
.jvdg-race-card__date { font-size: 0.8rem; opacity: 0.5; margin-bottom: 18px; }
.jvdg-race-card__legs { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: nowrap; }
.jvdg-race-card__leg { border-radius: 8px; padding: 8px 12px; flex: 1 1 0; min-width: 0; backdrop-filter: blur(4px); border: 1px solid transparent; }
.jvdg-race-card__leg-icon { font-size: 1.3rem; display: block; margin-bottom: 2px; }
.jvdg-race-card__leg-label { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.jvdg-race-card__leg-value { display: block; font-size: 0.9rem; font-weight: 600; }
.jvdg-race-card__timer { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.jvdg-race-card__unit { display: flex; flex-direction: column; align-items: center; }
.jvdg-race-card__number { font-size: 1.8rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.jvdg-race-card__unit-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; margin-top: 4px; }
.jvdg-race-card__result-time { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.jvdg-race-card__result-rank { font-size: 0.8rem; opacity: 0.65; margin-bottom: 14px; }
.jvdg-race-card__splits { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.jvdg-race-card__split { border-radius: 6px; padding: 5px 10px; font-size: 0.7rem; border: 1px solid transparent; }
.jvdg-race-card__split-label { display: block; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; font-size: 0.55rem; margin-bottom: 1px; }
.jvdg-race-card__split-time { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.jvdg-race-card__awaiting { font-size: 0.9rem; opacity: 0.5; font-style: italic; }
.jvdg-race-countdown, .jvdg-race-countdown-wrapper { max-width: 100%; }

/* ---- Footer -------------------------------------------------- */
.site-footer { color: var(--paper); background: #000; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 60px 40px 40px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-about { flex: 0 1 380px; max-width: 380px; }
.footer-social { display: flex; gap: 16px; margin-bottom: 20px; }
.footer-social a { display: inline-flex; color: var(--paper); transition: color 0.3s; }
.footer-social a:hover { color: var(--copywriter-yellow); }
.footer-social svg { width: 20px; height: 20px; }
.footer-about__text { font-size: 0.9rem; color: var(--base-2); line-height: 1.6; margin: 0; }
.footer-about__text a { color: var(--paper); text-decoration: none; }
.footer-about__text a:hover, .footer-about__text a:focus-visible {
  color: var(--ink);
}

.footer-nav-columns { display: flex; flex-wrap: wrap; gap: 3rem; flex: 0 1 auto; }
.footer-col { min-width: 140px; }
.footer-col__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copywriter-yellow);
  margin: 0 0 1rem;
}
.footer-col a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--copywriter-yellow); }

.footer-quote {
  border: 4px solid rgba(255,255,255,0.5);
  border-radius: 0;
  padding: 2rem 3rem;
  margin: 0 0 3rem;
  text-align: center;
}
.footer-quote p { font-size: 1.8rem; font-style: italic; font-weight: 600; line-height: 1.5; margin: 0 0 1rem; }
.footer-quote cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--base-2);
}

.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-legal p { margin: 0; color: var(--base-2); font-size: 14px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible {
  color: var(--ink);
}
.footer-legal__links a { margin-right: 1.2em; }

/* ---- Contact (work-with-me, bare page) ------------------------ */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8rem;
  padding: 6rem 0;
  align-items: start;
}
.contact-hero__left h1 { margin-top: 0; }
.contact-hero__email { margin-top: 0.5rem; font-size: 1.1rem; }
.contact-hero__email a { font-weight: 600; font-size: 1.5rem; }

.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form__field { margin-bottom: 2rem; }
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--contrast-3);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.5rem 0;
  color: var(--contrast);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--contrast); }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form ::placeholder { color: var(--contrast-2); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em; }
.contact-form__submit {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form__submit:hover { background: var(--accent); }
@media (max-width: 900px) {
  .contact-hero { grid-template-columns: 1fr; padding: 3rem 0; gap: 2rem; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- 404 ------------------------------------------------------ */
/* ---- Links (bare page, linkhub) -------------------------------- */
.linkhub { display: flex; justify-content: center; padding: 5rem 20px; }
.linkhub__card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: var(--ink);
  border-radius: 24px;
  padding: 3rem 2rem;
}
.linkhub__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
}
.linkhub__brand-name {
  color: var(--paper);
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}
.linkhub__brand-tag {
  color: #cccccc;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  margin: 6px 0 2rem;
}
.linkhub__links { display: flex; flex-direction: column; gap: 14px; }
.linkhub__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1a1a;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: 8px;
  transition: background 0.3s;
}
.linkhub__link:hover { background: var(--copywriter-yellow); color: #000; }
.linkhub__link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.6; }
@media (max-width: 767px) {
  .linkhub { padding: 0; margin: 0 -40px; background: var(--ink); }
  .linkhub__card { padding: 2.5rem 1.25rem; border-radius: 0; max-width: 100%; }
}

.error-band { text-align: center; padding: 8rem 40px; }
.error-band h1 { margin-top: 0; }
.error-band .btn-story { color: var(--contrast); border-color: var(--copywriter-yellow); display: inline-block; margin-top: 2rem; margin-right: 1rem; }
.error-band .btn-story:hover { background: var(--copywriter-yellow); color: #000; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid, .cards-band__grid, .archive-grid { grid-template-columns: 1fr; }
  .cards-band { padding: 6rem 30px; }
  .site-header { padding-left: 30px; padding-right: 30px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .article { border-right: 0; padding-right: 0; }
  .sidebar { border-top: 2px solid var(--base); padding-top: 3rem; }
}
@media (max-width: 767px) {
  /* h1 size no longer overridden here — clamp() scales it fluidly */
  .site-header { padding: 10px 20px; }
  .btn-story { display: none; }
  .hero { padding: 0.5rem 20px 0; }
  .hero__copy h1 { text-align: left; }
  .hero__copy .newsletter, .hero__privacy { width: 100%; }
  .cards-band { padding: 4rem 20px; }
  .card__title { padding: 0; }
  .bio-grid { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .bio-grid__left { border-right: 0; padding: 4rem 0 1rem; }
  .bio-grid__right { padding: 1rem 0 4rem; }
  .archive-grid { grid-template-columns: 1fr; padding: 3rem 20px; }
  .page-band { padding: 3.5rem 20px; }
  .page-band h1 { width: 100%; }
  .post-layout { padding: 0 20px; }
  .article { padding-top: 2rem; font-size: 1.05em; }
  .footer-columns { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .footer-col { width: 100%; border-color: var(--contrast-2); }
  .footer-socials { justify-content: center; }
  .footer-quote { padding: 2rem 2rem; }
  .footer-quote p { font-size: 1rem; }
  .footer-legal { flex-direction: column; text-align: center; }
  .site-footer { background: #000; }
  .newsletter__row { flex-direction: column; }
  .newsletter__input, .newsletter__button { width: 100%; border-radius: 3px; }
  .newsletter__button { margin-top: 8px; }
}
