/* vdanepalli.com — shared styles.
   Every page links this file. Colours, type and spacing live in tokens below;
   pages should not hard-code colours. */

/* ---------- Tokens ---------- */
:root {
  --fs: 18px;            /* reader font size, set by prefs.js */
  --measure: 68ch;       /* reading column width */
  --leading: 1.65;       /* line height */

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-readable: "Atkinson Hyperlegible", var(--font-sans);
  --font-body: var(--font-serif);   /* Times New Roman by default */

  --radius: 6px;
  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2.5rem; --space-6: 4rem;
}

/* Night — the default the site was designed in */
:root, :root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #1a2030;
  --border: #232a3a;
  --text: #e7e2d7;
  --muted: #8e97a8;
  --accent: #f0b866;      /* starlight */
  --link: #9cc2ff;
  --code-bg: #0f131c;
  --selection: rgba(240, 184, 102, .25);
  --stars: .55;
  --sky-top: #03050b; --sky-bottom: #121a2c; --sky-ground: #05070c;
  --sky-line: rgba(156, 194, 255, .16); --sky-label: rgba(200, 210, 230, .32); --sky-star-alpha: 1;
  --space-alpha: 1; --nebula-a: rgba(92, 112, 255, .11); --nebula-b: rgba(240, 150, 90, .08); --milkyway: rgba(190, 205, 255, .05); --dawn: rgba(240, 150, 80, .38);
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #f3f1ec;
  --surface-2: #ebe8e1;
  --border: #dedad1;
  --text: #1d1f24;
  --muted: #5c6270;
  --accent: #9a5a00;
  --link: #1d58b8;
  --code-bg: #f1eee8;
  --selection: rgba(154, 90, 0, .18);
  --stars: 0;
  --sky-top: #8fb4e3; --sky-bottom: #e4eef9; --sky-ground: #26303d;
  --sky-line: rgba(255, 255, 255, .35); --sky-label: rgba(30, 50, 80, .4); --sky-star-alpha: .22;
  --space-alpha: 0; --nebula-a: rgba(120, 170, 235, .22); --nebula-b: rgba(255, 190, 140, .2); --milkyway: rgba(255, 255, 255, 0); --dawn: rgba(255, 196, 140, .65);
}
:root[data-theme="sepia"] {
  color-scheme: light;
  --bg: #f4ecd8;
  --surface: #ece2ca;
  --surface-2: #e3d7bb;
  --border: #d6c8a8;
  --text: #3a2f22;
  --muted: #6e5f4b;
  --accent: #8a4510;
  --link: #6b3a12;
  --code-bg: #ebe0c6;
  --selection: rgba(138, 69, 16, .2);
  --stars: 0;
  --sky-top: #2b2140; --sky-bottom: #c98b5e; --sky-ground: #2a1f17;
  --sky-line: rgba(255, 236, 210, .22); --sky-label: rgba(255, 236, 210, .45); --sky-star-alpha: .8;
  --space-alpha: 0; --nebula-a: rgba(170, 110, 70, .14); --nebula-b: rgba(200, 120, 70, .14); --milkyway: rgba(255, 255, 255, 0); --dawn: rgba(220, 130, 70, .55);
}
:root[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000;
  --surface: #0d0d0d;
  --surface-2: #1a1a1a;
  --border: #6b6b6b;
  --text: #fff;
  --muted: #d0d0d0;
  --accent: #ffd60a;
  --link: #7cc4ff;
  --code-bg: #111;
  --selection: rgba(255, 214, 10, .35);
  --stars: .35;
  --sky-top: #000; --sky-bottom: #000; --sky-ground: #000;
  --sky-line: rgba(255, 255, 255, .3); --sky-label: rgba(255, 255, 255, .6); --sky-star-alpha: 1;
  --space-alpha: .7; --nebula-a: rgba(0, 0, 0, 0); --nebula-b: rgba(0, 0, 0, 0); --milkyway: rgba(0, 0, 0, 0); --dawn: rgba(0, 0, 0, 0);
}

:root[data-font="serif"]    { --font-body: var(--font-serif); }
:root[data-font="sans"]     { --font-body: var(--font-sans); }
:root[data-font="mono"]     { --font-body: var(--font-mono); }
:root[data-font="readable"] { --font-body: var(--font-readable); }

:root[data-width="narrow"] { --measure: 58ch; }
:root[data-width="wide"]   { --measure: 84ch; }

:root[data-spacing="compact"] { --leading: 1.45; }
:root[data-spacing="relaxed"] { --leading: 1.95; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: var(--fs);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

::selection { background: var(--selection); }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.25rem; margin-top: var(--space-6); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 var(--space-3); }

code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
kbd  { border: 1px solid var(--border); border-bottom-width: 2px; padding: 0 .35em; border-radius: 4px; font-size: .8em; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: var(--space-3); top: var(--space-3); background: var(--surface); padding: var(--space-2) var(--space-3); z-index: 100; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.wrap--wide { max-width: 76rem; padding: 0 clamp(16px, 4vw, 56px); }

/* Section label: small mono heading used across the site */
.label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: var(--muted);
}
.label::before { content: "// "; color: var(--accent); }
.label .idx { color: var(--text); margin-right: .6em; }
.label:has(.idx)::before { content: none; }
.label .idx::after { content: " //"; color: var(--accent); }

/* Display heading: ends on one italic, muted word ("How I learn.") */
.display { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; margin: .4rem 0 var(--space-4); }
.display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--muted); }

/* Reveal on load/scroll (site.js adds .is-in). Only hidden when JS runs. */
.js .rv { opacity: 0; transform: translateY(1.2rem); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }
/* Hero text doesn't wait for JS: a plain CSS entrance on load. */
.js .observatory .rv { opacity: 1; transform: none; transition: none; animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } }

.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 3.5rem;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: var(--space-3); font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Reader preferences ---------- */
.prefs-toggle {
  font: 600 .85rem/1 var(--font-serif);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  cursor: pointer;
}
.prefs-toggle:hover { border-color: var(--muted); }
.prefs-toggle[aria-expanded="true"] { border-color: var(--accent); }

.prefs-panel {
  position: fixed;
  top: 4rem; right: 16px;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  z-index: 50;
  font-family: var(--font-sans);
  font-size: 15px;            /* fixed so the panel stays usable at any reader size */
  line-height: 1.4;
}
.prefs-panel[hidden] { display: none; }
.prefs-panel h2 { font-size: 15px; margin: 0 0 var(--space-3); display: flex; justify-content: space-between; align-items: center; }
.prefs-group { border: 0; margin: 0 0 14px; padding: 0; }
.prefs-group legend { font: 500 12px/1 var(--font-mono); color: var(--muted); margin-bottom: 6px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1 1 0;
  text-align: center;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.seg input:checked + label { border-color: var(--accent); color: var(--accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-row { display: flex; align-items: center; gap: 6px; }
.size-row button, .prefs-reset {
  font: inherit; font-size: 13px;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; cursor: pointer;
}
.size-row button:hover, .prefs-reset:hover { border-color: var(--muted); }
.size-row output { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.prefs-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.prefs-foot small { color: var(--muted); font-size: 12px; }
.prefs-close { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 6px; }

/* ---------- Home ----------
   The page is an observatory: a live sky as the hero, then my own
   constellation, mission patches for projects, ground school, a signal. */
.home section[id] { scroll-margin-top: 5rem; }
.home h2 { margin-top: 0; }
.small { font-size: .85rem; }

/* Hero: the live sky (sky.js). Falls back to the gradient without JS. */
.observatory {
  position: relative; overflow: hidden;
  min-height: max(36rem, 100svh);
  margin-top: -3.5rem;                 /* sit under the transparent header */
  padding-top: 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(var(--sky-top), var(--sky-bottom)) top / 100% 88.5% no-repeat;
  --obs-text: #f1ece2; --obs-muted: #b5bccb;
}
:root[data-theme="day"] .observatory { --obs-text: #12233b; --obs-muted: #34496a; }
:root[data-theme="sepia"] .observatory { --obs-text: #fff6e6; --obs-muted: #f0dcc2; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.sky.is-dragging { cursor: grabbing; }
.obs-inner { position: relative; width: 100%; pointer-events: none; padding-bottom: 9rem; }
.obs-text { max-width: 34rem; pointer-events: auto; color: var(--obs-text); }
.obs-text::before {                    /* a soft pool of dark so text stays readable over stars */
  content: ""; position: absolute; inset: -6rem -10rem -4rem -10rem; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sky-top) 70%, transparent), transparent);
  pointer-events: none;
}
.obs-text { position: relative; }
.obs-text h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); letter-spacing: -.025em; margin-bottom: var(--space-2); }
.obs-text .tagline { color: var(--obs-muted); }
.obs-text p { color: var(--obs-text); }
.prompt { font-family: var(--font-mono); font-size: .85rem; color: var(--obs-muted); margin-bottom: var(--space-3); }
.prompt b { color: var(--accent); font-weight: 500; }
.cursor { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: var(--accent); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tagline { font-size: 1.2rem; margin-bottom: var(--space-4); }

.hills, .observer { position: absolute; bottom: 0; pointer-events: none; fill: var(--sky-ground); stroke: var(--sky-ground); stroke-width: 0; }
/* sky.js puts the horizon 12% above the bottom. The ground fills below it,
   hills sit on top, and the observer stands on their flat top. */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(var(--sky-ground) 20%, transparent); }   /* fades into deep space */
:root[data-theme="day"] .ground, :root[data-theme="sepia"] .ground { background: var(--sky-ground); }   /* keep the caption readable */
.hills { left: 0; bottom: calc(12% - 1px); width: 100%; height: 4.5rem; }
.observer { right: 11%; bottom: calc(12% + 4.5rem * .64 - 2px); width: 4.2rem; height: auto; }
.observer path[fill="none"] { stroke: var(--sky-ground); }
.obs-meta {
  position: absolute; left: 0; right: 0; bottom: .9rem; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--font-mono); font-size: .72rem; color: #c9cfdb;
}
.obs-meta p { margin: 0; }
.live { display: flex; align-items: baseline; gap: .55rem; }
.hint { opacity: .7; white-space: nowrap; }
@media (max-width: 640px) { .hint { display: none; } .observer { right: 6%; } }
.dot { flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); animation: pulse 3s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 184, 102, .5); } 70%, 100% { box-shadow: 0 0 0 .5rem transparent; } }

/* 01 · my own constellation */
.mine { display: grid; gap: var(--space-4); padding-top: var(--space-6); }
.mine-text p.muted { max-width: 30rem; }
.constellation { position: relative; list-style: none; margin: 0; padding: 0; }
.constellation li { display: grid; grid-template-columns: 5rem 1fr; align-items: center; padding: .7rem 0; transition: opacity .3s ease; }
.constellation p { margin: 0; text-shadow: 0 0 .4rem var(--bg), 0 0 .2rem var(--bg), 0 0 .1rem var(--bg); }
.constellation strong { display: block; font-weight: 600; }
.constellation p > span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.bayer { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); margin-right: .4em; }
.star {
  justify-self: start;
  margin-left: calc(var(--x, 0) * 1rem);
  width: calc(1rem * var(--mag, 1)); height: calc(1rem * var(--mag, 1));
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px var(--accent));
  transition: transform .4s ease;
  position: relative; z-index: 1;
}
.constellation li:hover .star { transform: scale(1.4) rotate(45deg); }
.constellation:hover li:not(:hover) { opacity: .5; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.constellation-lines polyline {
  fill: none; stroke: var(--muted); stroke-width: 1; opacity: .45;
  stroke-dasharray: var(--len); animation: draw 2.4s ease-out both;
}
@keyframes draw { from { stroke-dashoffset: var(--len); } }

/* 02 · projects as mission patches */
.launched { padding-top: var(--space-6); }
.patches { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
.patch { display: grid; justify-items: center; gap: .6rem; text-decoration: none; color: var(--muted); }
.patch svg { width: min(100%, 13rem); height: auto; transform: rotate(var(--rot, 0deg)); transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .5s; filter: drop-shadow(0 .6rem 1.2rem rgba(0, 0, 0, .35)); }
.patch:hover svg, .patch:focus-visible svg { transform: rotate(0deg) scale(1.06) translateY(-4px); }
.p-edge { fill: var(--accent); }
.p-field { fill: var(--surface-2); }
.p-stitch { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .7; }
.p-ring { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.p-text { font: 600 12.5px/1 var(--font-mono); letter-spacing: 1.6px; fill: var(--text); }
.p-text--long { font-size: 11px; letter-spacing: .9px; }
.p-text--sub { font-weight: 500; font-size: 10.5px; fill: var(--muted); }
.p-star { fill: var(--accent); }
.p-emblem { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.p-emblem .p-fill, .p-emblem .p-fill * { fill: var(--accent); stroke: none; }
.patch-id { font-family: var(--font-mono); font-size: .75rem; }
.patch:hover .patch-id { color: var(--accent); }

/* 03 + 04 · ground school and signal */
.split { display: grid; gap: var(--space-6); padding-top: var(--space-6); }
.catalog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.catalog li { border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem 1rem; padding: .85rem 0; }
.cat-name { font-weight: 600; }
.cat-kind { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-align: right; }
.cat-go { color: var(--muted); transition: transform .3s cubic-bezier(.16, 1, .3, 1), color .3s; }
.signal-links { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.signal-links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.signal-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.signal-links a:hover .cat-go { color: var(--accent); transform: translate(2px, -2px); }
.signal-links .cat-kind { min-width: 4.5rem; text-align: left; }
.signal-links .cat-go { margin-left: auto; }
@media (max-width: 480px) {
  .catalog li { grid-template-columns: 1fr; }
  .catalog .cat-kind { text-align: left; }
}
@media (max-width: 560px) {
  .site-nav a { display: none; }
}

@media (min-width: 960px) {
  .mine { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(3rem, 6vw, 7rem); }
  .constellation { height: 27rem; }
  .constellation::before {
    content: ""; position: absolute; inset: -2rem -1rem; pointer-events: none;
    background:
      radial-gradient(circle at 40% 50%, transparent 0 9.8rem, var(--border) 9.85rem 9.95rem, transparent 10rem 15.8rem, var(--border) 15.85rem 15.95rem, transparent 16rem),
      linear-gradient(var(--border), var(--border)) 40% 0 / 1px 100% no-repeat,
      linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat;
    opacity: .7;
    mask-image: radial-gradient(closest-side at 40% 50%, #000 55%, transparent);
    -webkit-mask-image: radial-gradient(closest-side at 40% 50%, #000 55%, transparent);
  }
  .constellation li { position: absolute; left: var(--cx); top: var(--cy); width: 46%; display: flex; align-items: flex-start; gap: .8rem; padding: 0; }
  .constellation .star { margin: .3rem 0 0; flex: none; }
  .constellation p > span { font-size: .85rem; }
  .patches { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); }
}


/* Deep space behind everything below the hero (deepsky.js) */
.deep-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Contact: a little radio telescope sending pulses */
.signal { position: relative; }
.dish { position: absolute; top: -1.2rem; right: 0; width: 5.5rem; height: auto; overflow: visible; }
.dish-bowl { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.dish-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.dish-feed { fill: var(--accent); }
.waves path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: wave 2.4s ease-out infinite; }
.waves path:nth-child(2) { animation-delay: .3s; }
.waves path:nth-child(3) { animation-delay: .6s; }
@keyframes wave { 0% { opacity: 0; } 25% { opacity: .9; } 70%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .waves path { opacity: .6; } }

/* Footer: the night ends. Hills again, with dawn behind them. */
.site-footer.dawn { margin-top: var(--space-6); border-top: 0; padding: 0; position: relative; }
.dawn-sky { position: relative; height: 13rem; overflow: hidden;
  background: radial-gradient(ellipse 55% 95% at 72% 100%, var(--dawn), transparent 72%); }
.sun { position: absolute; left: 72%; bottom: -2.4rem; width: 7rem; height: 7rem; margin-left: -3.5rem; border-radius: 50%;
  background: radial-gradient(circle, #ffd28a 0 38%, rgba(255, 180, 100, .45) 52%, transparent 70%); opacity: .9; }
:root[data-theme="contrast"] .sun { display: none; }
.dawn-hills { display: block; width: 100%; height: 5rem; margin-top: -4.95rem; position: relative; fill: var(--sky-ground); }
.dawn-ground { background: var(--sky-ground); padding: var(--space-3) 0 var(--space-5); color: #9aa3b4; }
.dawn-ground a { color: #c3cad6; }
/* 404 */
.lost { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--space-6); }
.lost h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-6); border-top: 1px solid var(--border); padding: var(--space-4) 0 var(--space-5); font-size: .85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
