@font-face { font-family: "Italiana"; src: url("/fonts/Italiana.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Spectral"; font-weight: 300; src: url("/fonts/Spectral-Light.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: italic; src: url("/fonts/Spectral-LightItalic.woff2") format("woff2"); font-display: swap; }

:root {
  --booth: #06080c;   /* the dark room */
  --lamp: #f4e9d2;    /* tungsten light: the crescent and the letters */
  --paper: #d9d2c4;   /* lit secondary text */
  --silver: #a3a7af;  /* quiet text, ~8.6:1 on booth */
  --ash: #868b94;     /* footer, ~5.8:1 on booth */
  --moon: #0f1218;    /* the eclipsing disc, a shade above the room */
  --shadow: #23262d;  /* the letters before the light returns */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--booth);
  color: var(--silver);
  font: 300 1rem/1.6 "Spectral", Georgia, serif;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 10vh 16px 6vh;
  isolation: isolate;
}
/* faint pool of light in the room, centred on the word */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 44%,
    rgba(244, 233, 210, .085), rgba(244, 233, 210, .025) 60%, transparent 100%);
}

.mark {
  margin: 0;
  font: 400 clamp(4.25rem, 19vw, 13.5rem)/1 "Italiana", "Didot", serif;
  white-space: nowrap;
  color: var(--lamp);
}

/* The "o" is an eclipse: Italiana's o ink is 0.5em wide, 0.532em tall, centred 0.25em above the baseline.
   Margins restore the font's own kerning (n-o -0.04em, o-i -0.02em) lost by swapping the glyph. */
.eclipse {
  width: .56em;
  height: .56em;
  vertical-align: -.03em;
  margin: 0 -.02em 0 -.04em;
  overflow: visible;
}
.eclipse .moon { fill: var(--moon); stroke: rgba(244, 233, 210, .16); stroke-width: .5; }
.eclipse .light { fill: var(--lamp); }
.eclipse .glow { filter: drop-shadow(0 0 1.4px rgba(255, 244, 222, .55)); }
.eclipse .orbit { transform-origin: 28px 28px; transform-box: view-box; }

.say {
  margin: .9rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-style: italic;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--silver);
}
.hear {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;  /* touch target; the visible ring is smaller */
  margin: -12px -10px -12px -6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--silver);
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}
.hear::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(163, 167, 175, .4);
  border-radius: 50%;
  transition: border-color .2s, background-color .2s;
}
.hear:hover, .hear[aria-pressed="true"] { color: var(--lamp); }
.hear:hover::before, .hear[aria-pressed="true"]::before { border-color: var(--lamp); background: rgba(244, 233, 210, .08); }
.hear[hidden] { display: none; }

.tagline {
  margin: clamp(2.5rem, 8vh, 4.5rem) 0 0;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: var(--paper);
}
.soon {
  margin: .5rem 0 0;
  font-size: .9375rem;
  letter-spacing: .06em;
  color: var(--silver);
}

.foot {
  padding: 0 16px max(28px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: .875rem;
}
.foot a { color: var(--ash); text-decoration: none; letter-spacing: .03em; padding: .5rem .25rem; }
.foot a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.hear:focus-visible { border-radius: 50%; outline-offset: -4px; }

/* The one motion: the eclipse ends. The moon turns about the o, so the crescent of light
   sweeps round its rim and comes to rest top-right, while the letters come up out of the dark. Once. */
.mark .letters { animation: lift 1.2s cubic-bezier(.3, .6, .2, 1) both; }
.eclipse .orbit { animation: sweep 1.2s cubic-bezier(.3, .6, .2, 1) both; }
.eclipse .light { animation: rise 1.2s ease-out both; }
@keyframes sweep { from { transform: rotate(-240deg); } to { transform: rotate(0deg); } }
@keyframes rise  { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 1; } }
@keyframes lift  { from { color: var(--shadow); } to { color: var(--lamp); } }

@media (prefers-reduced-motion: reduce) {
  .mark .letters, .eclipse .orbit, .eclipse .light { animation: none; }
  .stage { animation: fade .6s ease-out both; }
  .hear::before { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 404 */
.lost .mark { font-size: clamp(3rem, 12vw, 7rem); }
.lost .soon a { color: var(--lamp); text-underline-offset: .25em; text-decoration-thickness: 1px; }
