/* Light Minute — the clock face.
 *
 * THE LAYOUT IS BIBLE MINUTE'S, on purpose. Same masthead top left, same alarm
 * and info cluster top right, same credits bottom left, same promo bottom
 * right, same footer, same 720px crossover from the four corners to a stacked
 * column. Two clocks in one repo that place their furniture differently are two
 * products; placing it identically is what makes /clock/ a shelf.
 *
 * WHAT IS DIFFERENT. Bible Minute paints a photograph and follows the real sky
 * through eight colour phases, so its type had to survive a background that
 * changes brightness across the day. This page is always deep space, so the
 * whole phase machinery is gone and the --sky-* set below is a single fixed
 * palette. The names are kept because every structural rule underneath is
 * ported verbatim, and renaming them would have been a hundred edits that
 * changed nothing.
 */

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Cool rather than cream. Bible Minute's ink is warm because it sits on
   * photographs of a sunrise; this one sits on starlight. */
  --ink: #eef1f7;
  --ink-dim: #a3abbd;
  --ink-faint: #667085;
  --bg: #05070d;
  --bg-lift: #10141f;
  --gold: #c9a961;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --measure: 40rem;

  --ground: #05070d;

  /* One palette, no phases. Every rule below reads these rather than --ink, so
   * a second look (a daylight mode, a printed card) is a change here alone. */
  --sky-ink: var(--ink);
  --sky-dim: rgba(238, 241, 247, .84);
  --sky-faint: rgba(238, 241, 247, .58);
  --sky-ghost: rgba(238, 241, 247, .16);
  --sky-gold: #e3c68d;
  --halo: 0 1px 16px rgba(2, 4, 10, .6), 0 0 3px rgba(2, 4, 10, .4);
  --picker-invert: 1;

  /* The ghost seconds' size. The MIRROR uses it too — it reserves exactly the
   * seconds' width on the other side, so the two must move together or the
   * bright h:mm stops being centred. */
  --secs: .58em;

  --pad-x: 1.25rem;
}

/* SIZING IS PHONE-FIRST, AND THAT IS WHAT THE vw TERMS ARE FOR. Every size is a
 * clamp whose MIDDLE term has to be the one that wins on a phone, or the page
 * renders at its desktop minimum on a 390px screen. Coefficients are chosen
 * against a 390px viewport; the max terms hold desktop. */

* { box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── the corners ─────────────────────────────────────────────────────────
 *
 * The clock alone in the middle, everything else pushed to a corner. Fixed
 * positioning rather than a grid, because main has to be able to fill and
 * centre without the corners taking part in its layout.
 *
 * ⚠️ Below 720px the corners would collide, so everything falls back to the
 * stacked column. */
@media (min-width: 720px) {
  body.corners { display: block; }

  body.corners main {
    min-height: 100vh;
    justify-content: center;
    padding: 6rem 1.25rem;
  }

  /* The tray exists only to make a row on a phone. Here the corners are fixed
   * to the window, so it has to stop being a box at all. */
  body.corners .tray { display: contents; }

  body.corners .head,
  body.corners .credits,
  body.corners .promo {
    position: fixed;
    z-index: 3;
    margin: 0;
  }

  body.corners .head {
    top: 1.5rem;
    left: 1.9rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .62rem;
    text-align: left;
    padding: 0;
    line-height: 1.35;
  }
  body.corners .head a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .62rem;
    text-decoration: none;
    color: inherit;
  }
  body.corners .head a:hover b { text-decoration: underline; text-underline-offset: .18em; }
  body.corners .head b { font-weight: 400; color: var(--sky-dim); letter-spacing: .04em; }
  body.corners .head span { line-height: 1.2em; }

  /* The pair become one fixed cluster in the corner, so the alarm can grow
   * leftwards as it opens without ever pushing the info button off the edge. */
  body.corners .tools {
    display: flex;
    align-items: center;
    gap: .6rem;
    position: fixed;
    top: 1.35rem;
    right: 1.9rem;
    z-index: 3;
  }
  /* margin:0 matters more than it looks: .alarm keeps a bottom margin for the
   * phone's stacked flow, and inside this flex row that margin is part of its
   * box, which puts the pill half a margin above the info button. */
  body.corners .alarm { position: relative; top: auto; right: auto; margin: 0; }
  body.corners .info { position: relative; top: auto; right: auto; }
  body.corners .alarm:hover .fold,
  body.corners .alarm:focus-within .fold {
    grid-template-columns: 1fr;
    opacity: 1;
  }

  body.corners .credits {
    bottom: 1.5rem;
    left: 1.9rem;
    max-width: 34rem;
    text-align: left;
  }
  body.corners .credit,
  body.corners .foot { padding: 0; text-align: left; }

  body.corners .promo {
    bottom: 1.4rem;
    right: 1.4rem;
    display: flex;
    align-items: center;
    gap: .62rem;
    text-decoration: none;
    color: var(--sky-dim);
    max-width: 21rem;
  }
  body.corners .promo[hidden] { display: none; }
  body.corners .promo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 auto;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .35);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
  }
  body.corners .promo span {
    display: block;
    font-size: clamp(.8rem, 3vw, .88rem);
    line-height: 1.35;
    text-align: right;
    transition: color .28s ease;
  }
  body.corners .promo b { display: block; font-weight: 400; color: var(--sky-ink); }
  body.corners .promo:hover b { text-decoration: underline; text-underline-offset: .18em; }
  body.corners .promo:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  }
  body.corners .promo:hover span { color: var(--sky-ink); }
}

/* ── the sky ─────────────────────────────────────────────────────────────
 *
 * One canvas and one fragment shader (app/scene.js). It replaces the forty
 * JPEGs next door and it is not a like-for-like swap: there are about thirty
 * well photographed bodies in the solar system and 1440 minutes on this dial, so
 * a picture that is COMPUTED is the only kind that reaches every minute.
 *
 * THE SCRIM IS STILL THE WHOLE TRICK. A rendered planet is no safer under type
 * than a photograph is. Heaviest at the top and bottom where the corners sit,
 * lighter through the middle so the body still reads.
 *
 * The canvas has no fallback picture behind it. Where WebGL is missing it stays
 * blank and --ground shows through, which is a dark page with a clock on it,
 * and that is a complete thing rather than a broken one. */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--ground);
}
.sky canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(4, 6, 13, .78) 0%, rgba(4, 6, 13, .34) 24%,
      rgba(4, 6, 13, .28) 54%, rgba(4, 6, 13, .82) 100%),
    radial-gradient(115% 78% at 50% 45%, transparent 36%, rgba(4, 6, 13, .42) 100%);
}

/* ── grain ───────────────────────────────────────────────────────────────
 *
 * A flat dark page reads as cheap; the same page with a little grain reads as
 * printed. One tiling SVG of fractal noise, inline as a data URI so it costs no
 * request. It matters more here than next door: a shader gradient is perfectly
 * smooth and will band on an 8-bit display, and this is what breaks the bands
 * up. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── credits and footer ─────────────────────────────────────────────────── */
.credit {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  font-size: clamp(.8rem, 3.4vw, .85rem);
  line-height: 1.5;
  color: var(--sky-faint);
}
/* The lead reads as the label and the links read as links, which is the whole
 * job of this corner now that it is a way off the page rather than a caption. */
.credit .lead { color: var(--sky-faint); }
/* Its own line. Run on after the links it read as a third link. */
.credit .scrub { display: block; }
.credit a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .05em;
}
.credit a:hover { color: var(--sky-ink); }
.credit a, .foot a { transition: color .25s ease; }
.credit a:hover, .foot a:hover { color: var(--sky-ink); }
.credit a { color: var(--sky-faint); }

/* ── the tray (phone) ────────────────────────────────────────────────────
 *
 * The two bottom corners, side by side: credits left, promo right. Above 720px
 * this becomes display:contents and the children go back to the window. */
.tray {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .9rem;
  padding: .4rem 1.1rem .9rem;
}
.tray .credits { text-align: left; min-width: 0; }
.tray .credit,
.tray .foot { text-align: left; padding: 0; }
.tray .promo { margin: 0; padding: 0; }

/* ── the cross-promotion slot ──────────────────────────────────────────── */
.promo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  /* Text first, then the logo. Reversed rather than reordered in the markup so
   * the link still reads name-then-blurb to a screen reader. */
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  margin: 0 auto .55rem;
  padding: 0 1.25rem;
  text-decoration: none;
  color: var(--sky-dim);
  font-size: clamp(.82rem, 3.4vw, .9rem);
  line-height: 1.3;
}
.promo img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.promo span { display: block; text-align: right; }
.promo b { display: block; font-weight: 400; color: var(--sky-ink); }

/* ── the masthead ───────────────────────────────────────────────────────── */
.head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem .1rem;
  text-align: left;
  font-size: clamp(.85rem, 3.9vw, 1rem);
  letter-spacing: .05em;
  color: var(--sky-faint);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.name {
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--sky-dim);
}
.name i {
  font-style: normal;
  color: var(--sky-gold);
}
.name .colon { color: inherit; }
.head a { color: var(--sky-faint); text-decoration: none; }
.head a:hover { color: var(--ink); }

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3rem);
  padding: 1.75rem var(--pad-x) 1.5rem;
  text-align: center;
}

/* ── the stamp changing ──────────────────────────────────────────────────
 *
 * The name and the digits leave upward and arrive from below, and the swap
 * happens between the two halves: 220ms out, then the text changes, then 400ms
 * in. The old name is off the screen before the new one is written.
 *
 * ⚠️ Only .digits moves, not .time. The mirror, the date and the ghost seconds
 * live in the same element and must stay put — the seconds tick every second
 * and animating them would be a strobe. transform does nothing on an inline
 * box, so both get inline-block. */
@keyframes stamp-out {
  to { opacity: 0; transform: translateY(-.16em); }
}
@keyframes stamp-in {
  from { opacity: 0; transform: translateY(.22em); }
}
.body, .digits { display: inline-block; }
.stamp[data-swap='out'] .body,
.stamp[data-swap='out'] .digits { animation: stamp-out .22s ease-in both; }
.stamp[data-swap='in'] .body,
.stamp[data-swap='in'] .digits { animation: stamp-in .4s cubic-bezier(.2, .7, .3, 1) both; }

/* ── the stamp: what is out there, over how far ─────────────────────────── */
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
}

/* Centre the whole run and the bright part sits left of centre, because the
 * ghost seconds hang off the right. The fix is a mirror: an invisible ":00" of
 * exactly the ghost's width on the other side. Tabular figures (set on .time)
 * are what make "exactly" true.
 *
 * ⚠️ The mirror is a SPAN in the markup, not a ::before on .time. As generated
 * content it would apply to every .time on the site, and only the live clock
 * has seconds — so the alarm ring would get the left half of a mirror with
 * nothing on the right and sit visibly off centre. */
.time .mirror {
  font-size: var(--secs);
  visibility: hidden;
}
.datewrap { position: relative; display: inline-block; }
.date {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: .35em;
  font-size: .2em;
  letter-spacing: .1em;
  color: var(--sky-ghost);
  white-space: nowrap;
}
.date .day { letter-spacing: .06em; }

/* The name of what is out there. Where Bible Minute puts the book. On a minute
 * nothing is marked at, clock.js writes the distance here instead ("196
 * light-minutes out"), which is why it is sized for a phrase and not a word. */
.body {
  font-style: normal;
  font-size: clamp(1.05rem, 5.9vw, 1.65rem);
  letter-spacing: .16em;
  color: var(--sky-gold);
  /* Optical alignment: letter-spacing adds a trailing space to the last glyph,
   * which pushes a centred line left of the time under it. */
  text-indent: .16em;
}
/* HOLD THE LINE OPEN. display:none here meant the name took no space until
 * slots.json arrived and then shoved everything below it down. */
.body:empty::after { content: '\00a0'; }

.time {
  /* Width sets it, height caps it. On vw alone, a short wide window got a clock
   * as tall as the room left for everything under it. */
  font-size: min(clamp(3rem, 20vw, 8rem), 19vh);
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  margin: 0 0.05em !important;
  color: var(--sky-ink);
}
/* Ghosted by COLOUR, not opacity — raising an already-faint colour is what
 * brings them up; opacity here would multiply and make them fainter. */
.time:hover .seconds,
.time:hover .date { color: var(--sky-faint); }
.time .seconds {
  font-size: var(--secs);
  color: var(--sky-ghost);
}
.datewrap, .seconds { margin: 0 0.05em; }
.seconds, .date { transition: color .35s ease; }

/* ── the fact ───────────────────────────────────────────────────────────── */
.fact {
  position: relative;   /* anchors .share-note */
  max-width: var(--measure);
  /* Two transitions with different durations. The fade is driven by --fade
   * rather than by setting transition-duration from JS: that property applies
   * to every transitioned property in order, so writing "5s" to it would drag
   * the height along with the opacity. */
  transition: opacity var(--fade, .6s) ease,
              transform .25s ease,
              height .85s cubic-bezier(.33, .1, .25, 1);
}
.fact[data-loading='true'] { opacity: 0; }
/* Hold the space open while slots.json is in flight. Two lines: this text runs
 * shorter than a verse and the measure is the same. */
.fact[data-loading='true'] .text { min-height: calc(3 * 1.6em); }
@media (min-width: 720px) {
  .fact[data-loading='true'] .text { min-height: calc(2 * 1.6em); }
}
.fact[data-leaving='true'] { opacity: 0; }

.text {
  font-size: min(clamp(1.15rem, 5.9vw, 1.55rem), 4.4vh);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
  color: var(--sky-ink);
}
/* A minute with a body ON it is the rarer, better one, and it reads as a
 * statement about a place rather than a measurement. */
.fact[data-kind='body'] .text { color: var(--sky-ink); }
.fact[data-kind='reach'] .text { color: var(--sky-dim); }

/* ── share ──────────────────────────────────────────────────────────────── */
.fact[data-share] { cursor: pointer; }
.fact[data-share]:hover { transform: scale(1.015); }
.fact[data-share]:hover .share { color: var(--gold); opacity: .85; }
.share {
  display: inline-flex;
  align-items: center;
  padding: .35em .3em;
  margin: -.35em -.1em -.35em .12em;
  border: 0;
  background: none;
  color: white;
  opacity: 0.3;
  cursor: pointer;
  vertical-align: baseline;
  transition: color .2s ease;
}
.share svg { width: 1.5em; height: 1.5em; }
.share:hover, .share:focus-visible { opacity: 1; }
/* Absolute, so confirming a copy cannot move the text it belongs to. */
.share-note {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: .7rem;
  font-size: clamp(.85rem, 3.6vw, .95rem);
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.share-note[data-show='true'] { opacity: 1; }

/* ── alarm ──────────────────────────────────────────────────────────────── */
.alarm {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  padding: .3rem .8rem;
  border: 1px solid var(--sky-faint);
  border-radius: 999px;
  background: none;
  font-size: clamp(.9rem, 4.4vw, 1.1rem);
  color: var(--sky-dim);
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}
.alarm .alarm-label {
  letter-spacing: .04em;
  font-family: var(--serif);
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* THE FOLD, AT EVERY WIDTH. What differs by width is only what OPENS it: a
 * phone has no hover, so it opens on a tap (data-open, set by clock.js).
 * The grid 0fr -> 1fr animates to the CONTENT's width; a max-width transition
 * has to be given a number, and the number is wrong the moment the status text
 * appears. */
.alarm .fold {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns .42s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
  opacity: 0;
}
.alarm .fold-in {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-left: .6rem;
  overflow: hidden;
  min-width: 0;
}
.alarm[data-open='true'] .fold,
.alarm[data-armed='true'] .fold {
  grid-template-columns: 1fr;
  opacity: 1;
}
.kinds {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--sky-faint);
  border-radius: 999px;
}
/* Scoped under .alarm on purpose. `.alarm button` is the gold Set button and
 * has the same specificity as a bare `.kinds button`, so source order would
 * decide it and these would come out gold. */
.alarm .kinds button {
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .03em;
  color: var(--sky-faint);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: .16rem .5rem;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.alarm .kinds button[aria-pressed='true'] {
  color: var(--bg);
  background: var(--sky-ink);
}
.alarm .kinds button:hover { color: var(--sky-ink); }
.alarm .kinds button[aria-pressed='true']:hover { color: var(--bg); }
.alarm[data-armed='true'] .alarm-label,
.alarm[data-armed='true'] .kinds,
.alarm[data-armed='true'] .field,
.alarm[data-armed='true'] [data-act='set'] { display: none; }
.alarm[data-armed='true'] .status { color: var(--sky-ink); }
.alarm .field { display: inline-flex; align-items: center; gap: .25rem; }
.alarm .field[hidden] { display: none; }
.alarm .unit { color: var(--sky-faint); font-size: .85rem; }
.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.alarm input[type='time'],
.alarm input[type='number'] {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--sky-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sky-faint);
  padding: .1rem .15rem;
}
.alarm input[type='number'] { width: 3.1rem; -moz-appearance: textfield; appearance: textfield; }
.alarm input:focus-visible,
.alarm .kinds button:focus-visible,
.alarm button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.alarm input:focus-visible { border-bottom-color: var(--sky-ink); }
.alarm input[type='number']::-webkit-outer-spin-button,
.alarm input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* The native picker glyph is drawn dark and every background here is dark. */
.alarm input[type='time']::-webkit-calendar-picker-indicator {
  filter: invert(var(--picker-invert, 1));
  opacity: .75;
  cursor: pointer;
}
.alarm button {
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--bg);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: .32rem .95rem;
  cursor: pointer;
}
.alarm button.ghost {
  background: transparent;
  color: var(--sky-dim);
  border: 1px solid var(--sky-faint);
}
.alarm .status { font-variant-numeric: tabular-nums; }

[data-embed='app'] .tools,
[data-embed='app'] .promo { display: none; }

/* ── the info button and its dialog ─────────────────────────────────────
 *
 * .tools is display:contents on a phone, so the alarm stays in the flow where
 * it was and only the button is pinned to the corner. */
.tools { display: contents; }
.info {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--sky-faint);
  background: none;
  color: var(--sky-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  /* A button centres its text on the LINE BOX, and a lower-case italic "i" has
   * a tall ascender and no descender, so the ink lands below the middle of the
   * circle. Flex centres the box; ::before's nudge centres the ink. */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.info::before {
  content: 'i';
  display: block;
  transform: translateY(-.02em);
}
.info:hover,
.info:focus-visible {
  color: var(--sky-ink);
  border-color: var(--sky-dim);
  background-color: rgba(255, 255, 255, .08);
}

/* A real <dialog>, so Esc, the focus trap and inertness come from the browser. */
.about {
  max-width: 34rem;
  margin: auto;
  padding: 2rem 2rem 1.5rem;
  border: 1px solid rgba(238, 241, 247, .16);
  border-radius: 16px;
  background: var(--bg-lift);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
}
.about::backdrop { background: rgba(2, 4, 10, .74); }
.about h2 {
  margin: 0 0 .8rem;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--gold);
}
.about p { margin: 0 0 .9rem; color: var(--ink-dim); }
.about em { font-style: italic; color: var(--ink); }
.about a { color: var(--ink); }
/* .cta is the ring's gold button; inside the dialog it is a link in a sentence,
 * so every part of the button has to be undone, letter-spacing included. */
.about .cta {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}
.about .by { margin-bottom: 1.3rem; font-size: .92rem; }
.about .close {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--ink-dim);
  background: none;
  border: 1px solid rgba(238, 241, 247, .2);
  border-radius: 999px;
  padding: .5rem 1.4rem;
  cursor: pointer;
}
.about .close:hover { color: var(--ink); border-color: rgba(238, 241, 247, .4); }

/* ── the ring ───────────────────────────────────────────────────────────── */
.ring {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-lift);
  animation: pulse 2.6s ease-in-out infinite;
}
.ring[data-open='true'] { display: flex; }
@keyframes pulse {
  0%, 100% { background-color: #10141f; }
  50%      { background-color: #19203055; }
}
.ring .ring-time { font-size: clamp(3rem, 12vw, 6rem); line-height: 1; margin: 0; }
.ring .ring-body { font-size: clamp(.95rem, 3vw, 1.3rem); }
.ring .ring-fact { max-width: var(--measure); }

/* The call to action. It is the whole reason this page exists, so it is the one
 * place with a real button. */
.cta {
  display: inline-block;
  font-size: clamp(1rem, 4.4vw, 1.15rem);
  letter-spacing: .05em;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  padding: .7rem 1.6rem;
  text-decoration: none;
}
.cta:hover { background: #d8ba75; }
/* A real secondary button beside the gold one. This is the control someone
 * reaches for while an alarm is going off, which is the worst possible moment
 * to be hunting for a faint line of text. */
.dismiss {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  padding: .62rem 1.7rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.dismiss:hover,
.dismiss:focus-visible {
  color: var(--ink);
  border-color: var(--ink-dim);
  background-color: rgba(255, 255, 255, .07);
}

/* ── footer / static pages ──────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: .6rem 1.25rem .9rem;
  text-align: center;
  font-size: clamp(.8rem, 3.4vw, .85rem);
  line-height: 1.5;
  color: var(--sky-faint);
}
.foot a { color: var(--sky-faint); white-space: nowrap; }
.foot p { margin: 0; }

.neighbours {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: clamp(.85rem, 4vw, 1rem);
  letter-spacing: .08em;
}
.neighbours a { color: var(--sky-dim); text-decoration: none; }
.neighbours .under,
.neighbours a[rel] {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .055em;
}
.neighbours a:hover { color: var(--sky-ink); }
