:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --ink: #1f1d1a;
  --muted: #6e675e;
  --line: #d8cec0;
  --orange: #c95f32;
  --green: #167a50;
  --red: #a43a2a;
  --panel: #fffaf1;
  --panel-quiet: #f2eadf;
  --mono: "Geist Mono", "Geist Mono Fallback", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Geist", "Geist Fallback", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 76.35%;
  descent-override: 22.41%;
  line-gap-override: 0%;
  size-adjust: 131.62%;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Arial");
  ascent-override: 73.94%;
  descent-override: 21.7%;
  line-gap-override: 0%;
  size-adjust: 135.93%;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

.page {
  margin: 0 auto;
  max-width: 800px;
  padding: 38px 22px;
}

.hero {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 28px 34px;
  text-align: center;
}

h1 {
  font-size: clamp(2.7rem, 9vw, 5.9rem);
  font-weight: 760;
  line-height: 0.95;
  margin: 0;
  min-height: calc(2em * 0.95);
}

.answer {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(6rem, 22vw, 12.5rem);
  font-weight: 900;
  line-height: 0.88;
  margin: 20px 0 10px;
  min-height: calc(1em * 0.88);
}

html[data-state="yes"] .answer {
  color: var(--green);
}

html[data-state="no"] .answer {
  color: var(--red);
}

.answer-subtitle {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.35;
  margin: 0 0 24px;
  max-width: 36rem;
  min-height: calc(2em * 1.35);
}

.timer {
  width: min(100%, 560px);
}

.timer-label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.timer-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timer-grid div {
  background: var(--panel-quiet);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 74px;
  padding: 10px 6px;
}

.timer-grid output {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
}

.timer-grid span,
.timer-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.timer-grid span {
  display: block;
  margin-top: 7px;
}

.timer-note {
  margin: 12px 0 4px;
}

.timeline-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0 30px;
  padding: 0;
}

.timeline-item {
  align-items: baseline;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: 96px 1fr;
  padding: 12px 14px;
}

.timeline-item time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item p {
  margin: 0;
}

.timeline-item.is-past {
  color: var(--muted);
}

.timeline-item.is-future {
  opacity: 0.58;
}

.timeline-item-tbd {
  border-style: dashed;
}

.timeline-now {
  align-items: center;
  color: var(--orange);
  display: grid;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 850;
  grid-template-columns: 96px 1fr;
  min-height: 24px;
  text-transform: uppercase;
}

.timeline-now::before,
.timeline-now::after {
  background: var(--orange);
  content: "";
  display: block;
  height: 1px;
}

.timeline-now::before {
  grid-column: 1;
}

.timeline-now::after {
  grid-column: 2;
}

.timeline-now span {
  background: var(--bg);
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  padding: 0 10px;
}

.faq {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 12px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.faq h2 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.faq p {
  color: var(--muted);
  line-height: 1.55;
  margin: 9px 0 0;
}

@media (max-width: 560px) {
  .page {
    padding: 20px 14px 30px;
  }

  .hero {
    padding: 30px 14px 26px;
  }

  .timer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-now {
    grid-template-columns: 1fr;
  }
}
