/* =================================================================
   Ritika Angrish — author site
   Plain CSS3, no build step. Organized by section; class names are
   scoped by prefix (hero-, book-, video-, about-, etc.) instead of
   component scoping, so keep new classes namespaced the same way.
================================================================= */

/* ---------------------------------------------------------------
   Design tokens
   Dark, ink-toned base with a single warm "star glow" gold accent.
   This is a fixed brand palette (not a light/dark theme toggle).
----------------------------------------------------------------*/
:root {
  --color-bg: #0a0b10;
  --color-bg-alt: #12141c;
  --color-bg-panel: #171a24;
  --color-border: rgba(233, 230, 223, 0.1);
  --color-border-strong: rgba(233, 230, 223, 0.18);
  --color-text: #ece8e0;
  --color-text-muted: #a9a6a3;
  --color-text-faint: #726f6c;
  --color-accent: #d9a441;
  --color-accent-bright: #f0c674;
  --color-accent-soft: rgba(217, 164, 65, 0.14);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --space-section: clamp(4rem, 9vw, 8rem);
  --radius-md: 10px;
  --radius-lg: 18px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient, site-wide starfield: a calmer backdrop (no bright core) that
   sits behind every section on every page, so the galaxy motif isn't
   confined to the hero banner. Fixed to the viewport — stays put while
   the page scrolls, like a night sky behind the content. Sections have
   no background-color of their own, so it shows straight through; only
   the hero (its own richer galaxy) and explicit panels (cards, footer)
   sit on top of it opaquely. */
.page-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* height:auto is essential here: every <img> on the site has HTML
   width/height attributes (for layout-shift prevention), and any rule
   that sets a CSS `width` without also setting `height` would otherwise
   render at the literal `height` attribute's pixel value — two
   independently-resolved dimensions, ignoring the real aspect ratio. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Chrome's SVG UA stylesheet (svg:not(:root)) otherwise outranks the
   [hidden] attribute selector, so an inline <svg hidden> can stay visible. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--space-section) 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.section-heading { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 40ch; }
.section-lede { color: var(--color-text-muted); max-width: 60ch; font-size: 1.05rem; }

hr.divider { border: none; border-top: 1px solid var(--color-border); margin: 0; }

/* ---------------------------------------------------------------
   Buttons / links
----------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--color-accent-bright); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, var(--color-accent-bright), var(--color-accent));
  color: #211505;
  box-shadow: 0 8px 30px -10px rgba(217, 164, 65, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(217, 164, 65, 0.7); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-bright); }

/* ---------------------------------------------------------------
   Reveal-on-scroll (js/main.js adds .is-visible; content stays
   visible with no JS at all — see the plain .reveal rule below)
----------------------------------------------------------------*/
.reveal { opacity: 1; transform: none; }

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------
   Accessibility helpers
----------------------------------------------------------------*/
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent);
  color: #211505;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* =================================================================
   Nav
================================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-accent-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.is-open { max-height: 320px; }
  .nav-links a { padding: 1rem 1.5rem; border-top: 1px solid var(--color-border); display: block; }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =================================================================
   Hero
================================================================= */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Nebula wash, loosely modeled on real spiral-galaxy imagery: a warm
     gold/white core (older bulge stars), cooler violet/blue toward the
     arms (young hot stars), and a touch of rose (H-II star-forming
     regions). Pure CSS so it costs nothing to animate stars on top of. */
  background:
    radial-gradient(26% 32% at 78% 28%, rgba(233, 140, 170, 0.14), transparent 70%),
    radial-gradient(38% 46% at 74% 32%, rgba(147, 112, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 88% 62%, rgba(217, 164, 65, 0.13), transparent 70%),
    radial-gradient(46% 55% at 30% 85%, rgba(96, 84, 200, 0.10), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #171a24 0%, #0a0b10 60%);
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Gentle scrim so hero copy stays legible over a busier galaxy core */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 16, 0.75) 0%, rgba(10, 11, 16, 0.35) 45%, rgba(10, 11, 16, 0) 68%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-name { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 0.4em; }

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-audio { max-width: 420px; }

.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 34px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
}

.hero-scroll-cue span {
  display: block;
  width: 3px; height: 6px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--color-accent);
}

.js-enabled .hero-scroll-cue span { animation: scroll-cue 1.8s ease-in-out infinite; }

@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue span { animation: none; }
}

@media (max-width: 720px) {
  /* Text stacks full-width here (no side-by-side room for the galaxy),
     so widen the scrim to keep the whole line legible over the glow. */
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.8) 0%, rgba(10, 11, 16, 0.68) 55%, rgba(10, 11, 16, 0.55) 100%);
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 2rem; }
  .hero-scroll-cue { display: none; }
}

/* =================================================================
   Audio player
================================================================= */
.audio-player {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
}

.audio-row { display: flex; align-items: center; gap: 1rem; }

.audio-play {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-accent-soft);
  color: var(--color-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.audio-play:hover { transform: scale(1.05); background: var(--color-accent); color: #211505; }

.audio-meta { flex: 1; min-width: 0; }
.audio-title { margin: 0 0 0.5rem; font-size: 0.92rem; font-weight: 500; color: var(--color-text); }

.audio-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--color-border-strong);
  overflow: hidden;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright));
  transition: width 0.1s linear;
}

.audio-time { margin-top: 0.4rem; font-size: 0.78rem; color: var(--color-text-faint); font-variant-numeric: tabular-nums; }

.transcript-toggle {
  margin-top: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.transcript-toggle:hover { color: var(--color-accent-bright); }

.transcript {
  margin: 0.8rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* =================================================================
   Books section + book card
================================================================= */
.books-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }

.book-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 2.5rem;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.book-cover-link { display: block; }

.book-cover {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  width: 100%;
  height: auto;
}

.book-age { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 0.6rem; }
.book-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.3em; }
.book-title a { text-decoration: none; color: inherit; }
.book-title a:hover { color: var(--color-accent-bright); }

.book-subtitle {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.book-quote { color: var(--color-text-muted); font-size: 1rem; max-width: 48ch; }
.book-audio { margin: 1.2rem 0; max-width: 440px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.2rem 0 1rem; }

.ships-to { font-size: 0.85rem; color: var(--color-text-muted); }
.ships-to summary { cursor: pointer; color: var(--color-text-muted); }
.ships-to summary:hover { color: var(--color-accent-bright); }
.ships-to p { margin: 0.6rem 0 0.4rem; }
.ships-to-link { color: var(--color-accent); font-size: 0.85rem; }

.ships-to-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0; }
.chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .book-card { grid-template-columns: 1fr; }
  .book-cover-link { max-width: 220px; }
}

/* =================================================================
   Videos section
================================================================= */
.channel-list { margin-top: 3rem; }

.channel-block { padding: 2rem 0; }
.channel-block + .channel-block { border-top: 1px solid var(--color-border); }

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.channel-name { font-size: 1.4rem; margin-bottom: 0.2em; }
.channel-tagline { color: var(--color-accent); font-family: var(--font-display); font-style: italic; margin-bottom: 0.5rem; }
.channel-description { color: var(--color-text-muted); max-width: 56ch; font-size: 0.95rem; margin-bottom: 0; }
.channel-ctas { flex: none; }

.channel-watch-all {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2px;
}
.channel-watch-all:hover { color: var(--color-accent-bright); border-color: var(--color-accent); }

.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.video-item { display: flex; flex-direction: column; }

.video-thumb-btn {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.4s ease;
}
.video-thumb-btn:hover .video-thumb { opacity: 1; transform: scale(1.03); }

.video-play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #211505; }
.video-play-badge svg { background: var(--color-accent); border-radius: 50%; padding: 14px; box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.6); }

.video-embed-slot { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; }
.video-embed-slot iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-title { margin: 0.8rem 0 0.2rem; font-size: 0.92rem; color: var(--color-text); line-height: 1.4; }
.video-date { margin: 0; font-size: 0.78rem; color: var(--color-text-faint); }

.video-empty { color: var(--color-text-muted); font-size: 0.95rem; }
.video-empty a { color: var(--color-accent); }

/* =================================================================
   About section (homepage snapshot)
================================================================= */
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about-bio { color: var(--color-text-muted); font-size: 1rem; max-width: 62ch; margin-bottom: 1.75rem; }

.credential-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.credential-list li { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.9rem; color: var(--color-text-muted); }

.credential-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); transform: translateY(-2px); }
.credential-detail { color: var(--color-text-faint); }

.about-link { color: var(--color-accent); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.about-link:hover { color: var(--color-accent-bright); }

.about-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 25px 60px -25px rgba(0, 0, 0, 0.6);
}

@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .about-photo img { max-width: 220px; }
}

/* =================================================================
   Footer
================================================================= */
.site-footer { border-top: 1px solid var(--color-border); padding: 4rem 0 2rem; background: var(--color-bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand { flex: 1.6 1 240px; }
.footer-col:not(.footer-brand) { flex: 1 1 140px; }

.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.9rem; max-width: 32ch; }

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.footer-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a { text-decoration: none; color: var(--color-text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-list a:hover { color: var(--color-accent-bright); }

.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); color: var(--color-text-faint); font-size: 0.8rem; }

/* =================================================================
   Book detail page
================================================================= */
.book-detail-inner { padding-top: 2.5rem; }
.back-link { display: block; color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 2.5rem; }
.back-link:hover { color: var(--color-accent-bright); }

.book-detail-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 3rem; margin-bottom: 4rem; }
.book-detail-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.65); }

.book-detail-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.2em; }
.book-detail-subtitle { font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: 1.2rem; margin-bottom: 1.5rem; }
.book-detail-synopsis { color: var(--color-text-muted); max-width: 60ch; margin-bottom: 2rem; }
.book-detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

.book-detail-audio { max-width: 480px; margin-bottom: 4rem; }
.stories-heading { font-size: 1.4rem; margin-bottom: 1.5rem; }
.stories { margin-bottom: 4rem; }
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.story-card { background: var(--color-bg-panel); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; }
.story-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.story-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

.cover-spread img { width: 100%; border-radius: var(--radius-md); }

@media (max-width: 760px) {
  .book-detail-grid { grid-template-columns: 1fr; }
  .book-detail-cover { max-width: 260px; }
}

/* =================================================================
   About page (full)
================================================================= */
.about-page-inner { padding-top: 2.5rem; padding-bottom: 2rem; }
.about-page-title { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; margin-bottom: 2.5rem; }

.about-page-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; margin-bottom: 5rem; }
.about-page-copy p { color: var(--color-text-muted); max-width: 62ch; margin-bottom: 1.3em; }
.about-page-photo img { border-radius: var(--radius-lg); width: 100%; box-shadow: 0 25px 60px -25px rgba(0, 0, 0, 0.6); }

.timeline-heading { font-size: 1.3rem; margin-bottom: 2rem; }
.about-page-timeline { max-width: 620px; }

@media (max-width: 800px) {
  .about-page-grid { grid-template-columns: 1fr; }
  .about-page-photo { order: -1; max-width: 260px; }
}

/* Timeline component */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--color-border-strong);
}

.timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 1.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0; top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.timeline-year { font-family: var(--font-display); color: var(--color-accent); font-size: 0.95rem; min-width: 3.5ch; }
.timeline-label { color: var(--color-text-muted); font-size: 0.95rem; }

/* =================================================================
   404 page
================================================================= */
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found-copy { color: var(--color-text-muted); margin-bottom: 2rem; }
