:root {
  --deep: #05080f;
  --water: #0b1424;
  --water-far: #14223a;
  --lamp: #ffb45e;
  --lamp-core: #ffe7c2;
  --glint: #d6e6ff;
  --ink: #f3ece0;
  --ink-soft: rgba(243, 236, 224, 0.68);
  --line: rgba(243, 236, 224, 0.14);
  --cta: #f3ece0;
  --cta-ink: #0b1424;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --serif: "Fraunces Variable", "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* what is left without canvas: the night water and the still reflection of the lamp, in CSS */
  background:
    radial-gradient(ellipse 7% 46% at 50% 62%, rgba(255, 180, 94, 0.42), transparent 70%),
    radial-gradient(ellipse 22% 60% at 50% 60%, rgba(255, 180, 94, 0.1), transparent 70%),
    linear-gradient(180deg, var(--water-far), var(--water) 45%, var(--deep));
}

.water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  display: block;
  opacity: 0;
}

/* a low mist over the far water, so the top of the page breathes */
.mist {
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 58, 88, 0.55), rgba(40, 58, 88, 0.12) 60%, transparent);
}

/* a soft dark wash behind the words, so the text reads over the brightest part of the reflection */
.veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse min(400px, 56%) min(240px, 36%) at 50% 50%, rgba(5, 8, 15, 0.62), rgba(5, 8, 15, 0.26) 58%, transparent 80%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero {
  width: min(640px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.4vh, 22px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: rgba(20, 34, 58, 0.48);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
}

.pill__mark {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--lamp);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.pill__text { overflow: hidden; text-overflow: ellipsis; }

.pill__tag {
  color: var(--ink);
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: 0.01em;
}

.title {
  font-size: clamp(30px, min(9.2vw, 10.4vh), 82px);
  line-height: 0.98;
  font-weight: 560;
  font-stretch: 108%;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(5, 8, 15, 0.7);
}

.title em {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--lamp-core);
  background: linear-gradient(180deg, var(--lamp-core) 20%, var(--lamp) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.06em 0.08em;
}

.lede {
  max-width: 36ch;
  font-size: clamp(13px, min(3.6vw, 2.2vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 1px 14px rgba(5, 8, 15, 0.95);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(2px, 0.8vh, 8px);
}

.cta {
  position: relative;
  display: inline-flex;
  height: clamp(38px, 6vh, 46px);
  min-width: clamp(160px, 22vh, 196px);
  justify-content: center;
  padding: 0 clamp(16px, 2.2vh, 20px);
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: clamp(13px, 1.9vh, 15px);
  font-weight: 620;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(11, 20, 36, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 14px 34px -12px rgba(255, 180, 94, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.cta__face {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.cta__row {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.cta__row--on { opacity: 0; }

.cta__icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.cta__time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  opacity: 0.55;
  font-size: 0.86em;
}

.meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.meter i {
  display: block;
  width: 2.5px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 100%;
  transform: scaleY(0.3);
}

.cta__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 180, 94, 0.28) 47%, rgba(255, 246, 230, 0.7) 50%, rgba(255, 180, 94, 0.28) 53%, transparent 70%);
  transform: translateX(-110%);
}

.cta:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

.note {
  font-size: clamp(11px, 1.6vh, 13px);
  color: var(--ink-soft);
  text-shadow: 0 1px 10px rgba(5, 8, 15, 0.95);
}

/* the rain readout in the lower corner, like the meter of a field recorder */
.readout {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3.4vh, 28px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 20, 36, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(10px, 1.5vh, 12px);
  font-weight: 500;
  font-stretch: 105%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.readout__sep {
  width: 1px;
  height: 10px;
  background: var(--line);
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  fill: #fff;
  stroke: #0b1424;
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

@media (max-height: 460px) {
  .readout { display: none; }
}
