@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #FA2902;
  --ink: #14110F;
  --snow: #FDFDFE;
  --grey: #7C8290;
  --line: #E7E8EC;
  --blue: #0099FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* The outside: red, stamp, one line. */
body.outside {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--red);
  color: var(--snow);
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  text-align: center;
}
.stamp {
  margin: 0;
  padding: .1em .32em .12em;
  border: .085em solid currentColor;
  border-radius: .16em;
  font-size: clamp(64px, 17vw, 132px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  transform: rotate(5deg);
  animation: drop .55s cubic-bezier(.22, 1, .36, 1) both;
}
/* The stamp settles into place. */
@keyframes drop {
  from { opacity: 0; transform: rotate(5deg) translateY(-10px) scale(1.18); }
  to { opacity: 1; transform: rotate(5deg) translateY(0) scale(1); }
}
.hero { overflow: clip; }
.line {
  margin: clamp(18px, 3vh, 26px) 0 0;
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.line em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.22em;
  font-weight: 400;
  letter-spacing: -.01em;
}
/* Written out: a soft edge moves across the line, left to right. */
#typed {
  display: inline-block;
  padding: .12em .14em .2em;
  margin: -.12em -.14em -.2em;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: write 1.25s cubic-bezier(.45, .05, .35, 1) .28s both;
}
@keyframes write {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

.clock {
  display: none;
  gap: clamp(18px, 5vw, 40px);
  margin-top: clamp(36px, 7vh, 56px);
}
.clock div { min-width: 2.6ch; }
.clock b {
  display: block;
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.clock span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
}
.note {
  display: none;
  margin: clamp(36px, 7vh, 56px) 0 0;
  font-size: 17px;
  font-weight: 600;
}
.cta {
  display: none;
  margin-top: clamp(28px, 5vh, 40px);
  border-radius: 10px;
  line-height: 0;
  transition: transform .08s ease;
}
.cta img { display: block; width: 180px; height: auto; }
.cta:active { transform: translateY(2px); }
.cta:focus-visible, .foot a:focus-visible { outline: 3px solid var(--snow); outline-offset: 3px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

[data-state='counting'] .clock { display: flex; }
[data-state='soon'] .note { display: block; }
[data-state='live'] .clock { display: flex; }
[data-state='live'] .cta { display: inline-block; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
  font-weight: 500;
}
.foot a { text-underline-offset: 3px; }
.foot span { opacity: .85; }

/* The inside: legal pages, snowy white. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}
.top .mark {
  padding: .1em .32em .12em;
  border: .085em solid var(--red);
  border-radius: .16em;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform: rotate(5deg);
}
.tabs { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.tabs a { color: var(--grey); text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); }
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 72px;
  font-size: 16px;
  line-height: 1.6;
}
.doc h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.doc .meta { margin: 10px 0 32px; color: var(--grey); font-size: 14px; }
.doc h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.25; scroll-margin-top: 16px; }
.doc h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 700; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li p { margin-bottom: 8px; }
.doc a { color: var(--ink); text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-foot {
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 13px;
  padding: 20px 24px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
  #typed { animation: none; -webkit-mask-image: none; mask-image: none; }
  .cta { transition: none; }
}
