/*
 * tzed.app — the site's only stylesheet.
 *
 * Hand-written, no build dependency. Pages link it as /assets/site.css;
 * deploy.sh's fingerprint step renames it (and everything it refers to) with
 * a content hash in the copy it ships.
 *
 * Fonts are self-hosted from assets/fonts/ (nothing loads from anyone else):
 *   headings — Scorekard (SimpleBits), Bold 700 + Semibold 600
 *   body     — Atkinson Hyperlegible Next, Regular/Italic 400, SemiBold 600, Bold 700
 *
 * Palette comes from the app itself: TZedKit's SolarGradient anchors (night
 * indigo, dawn coral, midday gold over blue, dusk purple), the widgets' indigo
 * time digits and teal offsets, and the app icon's navy and orange.
 * The page is night-navy throughout; only the hero and the screenshot
 * "plinths" wear a sky. assets/site.js repaints the hero sky from the
 * visitor's local time with the same blend the app uses.
 */

/* ---------- fonts ---------- */
@font-face { font-family: "Scorekard"; src: url("/assets/fonts/Scorekard-Bold.b1edf95f17.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Scorekard"; src: url("/assets/fonts/Scorekard-Semibold.dbf98f6420.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/AtkinsonHyperlegibleNext-Regular.60c177b18e.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/AtkinsonHyperlegibleNext-RegularItalic.1ad06f7d63.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/AtkinsonHyperlegibleNext-SemiBold.564fca06cd.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/AtkinsonHyperlegibleNext-Bold.c13348157d.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --font-head: "Scorekard", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #0E1030;             /* page: the icon's navy, a shade under SolarGradient's night */
  --bg-2: #15173F;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.14);
  --text: #F4F2FF;
  --text-muted: #CBC8EA;     /* 10.9:1 on --bg */
  --sun: #FFA64D;            /* the icon's lit side */
  --sun-deep: #F07A1F;
  --teal: #7CE3D2;           /* the widgets' offset teal, lifted for a dark page */
  --indigo: #2A2A8A;         /* the widgets' time digits */
  --link: #9CC4FF;

  /* SolarGradient's four anchors, top → bottom */
  --night-top: #121230; --night-bottom: #261E48;
  --dawn-top: #FF9664;  --dawn-bottom: #5A468C;
  --day-top: #FACD78;   --day-bottom: #96C3F0;
  --dusk-top: #C86496;  --dusk-bottom: #322355;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.08; text-wrap: balance; }
h1, h2 { font-weight: 700; }
h3 { font-weight: 600; }
p, ul, ol { margin: 0; }
a { color: inherit; }
a.link, .prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.link:hover, .prose a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) { .wrap { padding: 0 1rem; } }

/* ---------- buttons ---------- */
/* Deliberately calm: a soft two-tone fill and a thin top highlight. The first
   draft had full gel gloss; Scott asked for less (2026-11-09). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.1rem; padding: 0.65rem 1.5rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  color: #3A1700;            /* 8.6:1 on the lighter orange, 6.4:1 on the deeper */
  background: linear-gradient(to bottom, #FFB260, #FF9A3C);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px -8px rgba(160, 70, 0, 0.7);
}
.btn-glass {
  color: var(--hero-ink, var(--text));
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); filter: brightness(0.96); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- hero: a live sky ---------- */
.hero {
  /* defaults = midday, for no-JS; site.js overwrites these four */
  --sky-top: var(--day-top);
  --sky-bottom: var(--day-bottom);
  --hero-ink: #23236E;       /* indigo on a light sky; white on a dark one */
  --hero-ink-soft: #3B3A78;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-rule: rgba(35, 35, 110, 0.16);
  --stars: 0;
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  color: var(--hero-ink);
  padding-bottom: 9rem;
}
.hero[data-sky="dark"] {
  --hero-ink: #FFFFFF;
  --hero-ink-soft: #E4E0FA;
  --glass: rgba(24, 22, 70, 0.42);
  --glass-line: rgba(255, 255, 255, 0.28);
  --glass-rule: rgba(255, 255, 255, 0.16);
}
.stars {
  position: absolute; inset: 0; opacity: var(--stars); pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 9%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 52%, #fff 50%, transparent 51%);
}
/* the sun or moon; site.js moves it along an arc with the hour */
.orb {
  position: absolute; left: var(--orb-x, 78%); top: var(--orb-y, 7rem);
  width: 7.5rem; height: 7.5rem; margin: -3.75rem 0 0 -3.75rem; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 34% 30%, #FFFDF0 0%, #FFE9A6 22%, #FFC04D 58%, #FF9A2E 100%);
  box-shadow: 0 0 60px 18px rgba(255, 214, 120, 0.55), inset -8px -10px 18px rgba(240, 122, 31, 0.45);
}
.hero[data-orb="moon"] .orb {
  background: radial-gradient(circle at 34% 30%, #FFFFFF 0%, #E6E4FA 30%, #B9B5E6 70%, #8E88CC 100%);
  box-shadow: 0 0 50px 12px rgba(190, 185, 255, 0.35), inset -10px -12px 20px rgba(60, 50, 130, 0.55);
}

.site-nav { position: relative; z-index: 2; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; }
.brand img { width: 2.75rem; height: 2.75rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .nav-links a.opt { display: none; } .nav-links { gap: 1.1rem; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center;
  padding-top: 3rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.95rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #FF8A1E; box-shadow: 0 0 0 3px rgba(255, 138, 30, 0.3); }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); margin-top: 1.25rem; letter-spacing: -0.01em; }
.hero .lede { margin-top: 1.4rem; font-size: 1.3rem; line-height: 1.5; max-width: 34rem; color: var(--hero-ink); }  /* full ink, not soft: around sunrise and sunset the sky behind it is mid-toned */
.hero .btn-row { margin-top: 2rem; }
.hero .fineprint { margin-top: 1.1rem; font-size: 1.05rem; color: var(--hero-ink-soft); }

/* the live demo: a glass popover */
.demo {
  border-radius: 1.75rem; padding: 0.4rem 1.4rem 1.3rem;
  background: var(--glass);
  box-shadow:
    inset 0 0 0 1px var(--glass-line),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 30px 60px -24px rgba(10, 10, 60, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.zone { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--glass-rule); }
.zone svg { width: 2rem; height: 2rem; }
.zone .name { font-weight: 700; font-size: 1.25rem; line-height: 1.2; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.zone .utc { color: var(--hero-ink-soft); font-size: 1rem; }
.zone .time { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zone .rel { color: var(--hero-ink-soft); font-size: 1rem; text-align: right; }
.badge { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.05rem 0.5rem; border-radius: 999px; background: rgba(10, 132, 255, 0.2); color: #0A5FD0; }
.hero[data-sky="dark"] .badge { background: rgba(120, 180, 255, 0.25); color: #BFDcFF; }
.scrub { padding-top: 1rem; }
.scrub-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.scrub-head label { font-weight: 700; font-size: 1.05rem; }
.scrub-head output { display: block; font-weight: 400; color: var(--hero-ink-soft); font-size: 1rem; }
.reset {
  font: 700 1rem var(--font-body); color: #fff; border: 0; cursor: pointer;
  padding: 0.4rem 0.95rem; border-radius: 0.6rem;
  background: linear-gradient(to bottom, #3EA0FF, #0A6FE8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 8px rgba(10, 80, 200, 0.4);
}
.reset[hidden] { display: none; }

/* the slider: fat glass track, glossy white thumb */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; margin: 0.3rem 0 0; background: transparent; cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 0.9rem; border-radius: 999px;
  background: linear-gradient(to right, #1E8BFF var(--fill, 50%), rgba(20, 20, 80, 0.22) var(--fill, 50%));
  box-shadow: inset 0 2px 4px rgba(0, 0, 40, 0.35), 0 1px 0 rgba(255, 255, 255, 0.45);
}
input[type="range"]::-moz-range-track {
  height: 0.9rem; border-radius: 999px;
  background: linear-gradient(to right, #1E8BFF var(--fill, 50%), rgba(20, 20, 80, 0.22) var(--fill, 50%));
  box-shadow: inset 0 2px 4px rgba(0, 0, 40, 0.35), 0 1px 0 rgba(255, 255, 255, 0.45);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 3.2rem; height: 2.1rem; margin-top: -0.6rem; border-radius: 999px; border: 0;
  background: linear-gradient(to bottom, #FFFFFF 0%, #F2F4FA 50%, #DCE1EE 51%, #F7F9FF 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 40, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(120, 130, 170, 0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 3.2rem; height: 2.1rem; border-radius: 999px; border: 0;
  background: linear-gradient(to bottom, #FFFFFF 0%, #F2F4FA 50%, #DCE1EE 51%, #F7F9FF 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 40, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* the planet's edge: the icon's globe, lit from the left, closing the hero */
.horizon { position: absolute; left: -20%; right: -20%; bottom: -1px; height: 6.5rem; pointer-events: none; }
.horizon::before, .horizon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.horizon::before {
  height: 100%;
  background: linear-gradient(to right, #FFC27A 0%, #FF9A3C 22%, #F0703A 36%, #5A63C8 58%, #2B3A8C 100%);
  filter: drop-shadow(0 -6px 22px rgba(255, 160, 80, 0.55));
}
.horizon::after { height: calc(100% - 5px); background: var(--bg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 1.5rem; }
  .orb { width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; }
  .hero { padding-bottom: 7rem; }
  .horizon { height: 4rem; }
}

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 46rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.section-head p { margin-top: 1rem; font-size: 1.25rem; color: var(--text-muted); }
.kicker { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--sun); margin-bottom: 0.6rem; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; }
.feature + .feature { margin-top: 6rem; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }  /* the shot keeps the wide column on either side */
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.feature p { margin-top: 1rem; color: var(--text-muted); }
.ticks { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9A6, #FFA64D 55%, #F07A1F);
  box-shadow: 0 0 10px rgba(255, 166, 77, 0.6);
}
.ticks strong { color: var(--text); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 2rem; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 4.5rem; }
  .section { padding: 4rem 0; }
}

/* a plinth: a slab of sky the screenshot floats on */
.plinth {
  position: relative; border-radius: 2rem; padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background: linear-gradient(to bottom, var(--p-top), var(--p-bottom));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.45),
    0 40px 70px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
/* gloss: a soft sheen across the top */
.plinth::before {
  content: ""; position: absolute; inset: 0 0 55% 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  border-radius: 2rem 2rem 60% 60% / 2rem 2rem 22% 22%;
}
.plinth img { position: relative; margin: 0 auto; filter: drop-shadow(0 22px 28px rgba(10, 10, 50, 0.45)); }
.sky-dawn  { --p-top: var(--dawn-top);  --p-bottom: var(--dawn-bottom); }
.sky-day   { --p-top: var(--day-top);   --p-bottom: var(--day-bottom); }
.sky-dusk  { --p-top: var(--dusk-top);  --p-bottom: var(--dusk-bottom); }
.sky-night { --p-top: #1B1B4A;          --p-bottom: #3A2E6E; }
.plinth.stack { display: grid; gap: 1.25rem; justify-items: center; }
.plinth .strip { border-radius: 0.75rem; }

/* ---------- reminder: full-bleed ---------- */
.reminder { position: relative; }
.reminder-shot { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 50px 90px -40px #000; max-width: 62rem; margin: 0 auto; }

/* ---------- widgets ---------- */
.band { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.widgets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: 2rem; align-items: start; max-width: 60rem; margin: 0 auto; }
.widgets .col { display: grid; gap: 2rem; }
.widget { margin: 0; }
.widget img { width: 100%; border-radius: 6.4% / var(--wr, 6.4%); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2); }
.widget.medium img { --wr: 13.9%; }
.widget.xl img { --wr: 3.13%; }
.widget figcaption { margin-top: 0.9rem; font-size: 1.05rem; color: var(--text-muted); }
.widget figcaption strong { color: var(--text); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; display: block; }
@media (max-width: 700px) { .widgets { grid-template-columns: 1fr; } .widget.xl { max-width: 20rem; margin: 0 auto; } }

/* ---------- iPhone ---------- */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); max-width: 58rem; margin: 0 auto; align-items: end; }
.phone { margin: 0; text-align: center; }
.phone .frame {
  border-radius: 15.5% / 7.2%; padding: 2.6%;
  background: linear-gradient(145deg, #4A4A58, #15151D 35%, #2C2C38 70%, #0B0B10);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), 0 40px 60px -28px rgba(0, 0, 0, 0.9);
}
.phone img { width: 100%; border-radius: 13.5% / 6.2%; }
.phone:nth-child(2) { transform: translateY(-2rem); }
.phone figcaption { margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.phone figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; color: var(--text-muted); }
@media (max-width: 700px) {
  .phones { grid-template-columns: 1fr; max-width: 17rem; gap: 2.5rem; }
  .phone:nth-child(2) { transform: none; }
}

/* ---------- good manners: glass cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  border-radius: 1.5rem; padding: 1.6rem 1.6rem 1.7rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px var(--surface-border), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.card h3 { font-size: 1.45rem; color: var(--text); }
.card p { margin-top: 0.6rem; color: var(--text-muted); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- get it ---------- */
.get {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 2.5rem; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: linear-gradient(to bottom, var(--dusk-top), var(--dusk-bottom));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 40px 80px -40px #000;
}
.get img.icon { width: 8rem; height: 8rem; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.get h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: 1rem; }
.get p { margin: 1rem auto 0; max-width: 36rem; font-size: 1.2rem; color: #F3E9F5; }
.get .btn-row { justify-content: center; margin-top: 2rem; }
.get .btn-glass { color: #fff; }
.get .req { font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer { padding: 3rem 0 3.5rem; color: var(--text-muted); font-size: 1.05rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--text-muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text); }

/* ---------- guide page ---------- */
.subhero { background: linear-gradient(to bottom, var(--dusk-top), var(--dusk-bottom)); position: relative; overflow: hidden; padding-bottom: 5.5rem; }
.subhero h1 { font-size: clamp(2.6rem, 6vw, 4rem); padding-top: 1.5rem; }
.subhero p { margin-top: 0.8rem; font-size: 1.25rem; color: #F3E9F5; max-width: 40rem; }
.subhero .horizon { height: 3.5rem; }
.prose { max-width: 50rem; margin: 0 auto; padding: 1rem 1.5rem 5rem; }
.prose h2 { font-size: 2.1rem; margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--surface-border); scroll-margin-top: 1rem; }
.prose h3 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; scroll-margin-top: 1rem; }
.prose h4 { font-family: var(--font-head); font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.6rem; }
.prose li { margin: 0.3rem 0; }
.prose li > ul, .prose li > ol { margin: 0.3rem 0 0; }
.prose strong { color: #fff; }
.prose code { font: 0.95em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255, 255, 255, 0.1); padding: 0.1em 0.4em; border-radius: 0.35rem; }
/* the guide's screenshots are light-mode popovers with transparent corners:
   give each a pale sky to sit on so they don't glare against the navy */
.prose img { margin: 1.4rem 0 1.6rem; padding: 1rem; border-radius: 1.25rem; background: linear-gradient(to bottom, #E9E4F4, #C9D8F0); box-shadow: 0 20px 40px -24px #000; }
.prose blockquote { margin-left: 0; padding: 0.9rem 1.2rem; border-left: 4px solid var(--sun); background: var(--surface); border-radius: 0 0.75rem 0.75rem 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--surface-border); vertical-align: top; }
.prose th { font-family: var(--font-head); font-weight: 600; color: #fff; }
