@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --band: #ececee;
  --skeleton: #dcdce0;
  --surface: #fcfcfc;
  --ink: #111111;
  --ink-soft: #52525b;
  --placeholder: #71717a;
  --line: #7c7c85;
  --accent: #0073b8; /* TON blue, darkened from #0098ea to pass AA on this background */
  --error: #b91c1c;
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --gutter: 20px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, p, ol { margin: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

/* Stickers sit directly on the page: no frames, no shadows. */
.sticker {
  aspect-ratio: 1;
  width: 100%;
  position: relative;
}
.sticker svg { display: block; width: 100% !important; height: 100% !important; }

/* Nav */
.nav { height: var(--nav-h); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticker--badge { width: 36px; flex: none; }
.nav-domain {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 4vh, 4rem) clamp(2.5rem, 6vh, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 32px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 11ch;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero .button { margin-top: 2rem; }
.hero-art { display: flex; justify-content: center; }
.sticker--hero { max-width: 540px; }

/* Countdown */
.countdown { margin-top: 2.25rem; }
.countdown-label {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.countdown-value {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-height: 1.2em;
}
.countdown-value .num { color: var(--accent); }
.countdown-value .unit { color: var(--ink-soft); font-weight: 500; margin-right: 0.45em; }
.countdown-value .unit:last-child { margin-right: 0; }
.countdown-value.is-text { font-family: var(--sans); font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.button:hover { opacity: 0.92; }
.button:active { transform: scale(0.98); }
.button:focus-visible,
.field:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Section scaffolding */
.year, .wish { padding-block: clamp(4rem, 9vw, 8rem); }
.wish { background: var(--band); }
.section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.section-text {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* 1984 */
.year-mark {
  position: relative;
  width: fit-content;
  padding-top: clamp(0px, 7vw, 110px);
}
.year-num {
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.85;
  padding-right: 0.06em;
}
.sticker--matrix {
  position: absolute;
  width: clamp(200px, 26vw, 380px);
  left: calc(100% - 0.32em);
  bottom: -0.04em;
  font-size: clamp(6rem, 22vw, 20rem);
}
.year-text {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  max-width: 52ch;
}
.timeline {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
.timeline li { display: flex; flex-direction: column; gap: 0.35rem; }
.timeline-year {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.timeline-text { color: var(--ink-soft); max-width: 24ch; }

@media (max-width: 767px) {
  .year-mark { width: auto; padding-top: 0; }
  .sticker--matrix {
    position: static;
    width: 60vw;
    margin: 1.5rem auto 0;
  }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline li { flex-direction: row; gap: 1rem; align-items: baseline; }
  .timeline-year { flex: none; width: 3.5rem; }
}

/* Wish */
.wish-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.sticker--heart { max-width: 440px; margin-inline: auto; }
.wish-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}
.field-label { font-weight: 600; }
.field-help { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-soft); }
.field {
  margin-top: 0.75rem;
  width: 100%;
  min-height: calc(3 * 1.5em + 1.5rem);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.field::placeholder { color: var(--placeholder); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--error); }
.field-error {
  margin-top: 0.5rem;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}
.wish-form .button { margin-top: 1.25rem; }
.field--line { min-height: 0; height: 48px; resize: none; }
.field-label--next { margin-top: 1.5rem; }
.button:disabled { opacity: 0.6; cursor: progress; }
.wish-status { margin-top: 1rem; font-weight: 600; }
.wish-status a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.wish-status a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Wall: plain grid of wishes, no cards. */
.wall { margin-top: clamp(4rem, 8vw, 6rem); }
.wall-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.wall-message { margin-top: 1rem; color: var(--ink-soft); }
.wall-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  align-items: start;
}
.wall-item { min-width: 0; }
.wall-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 65ch;
}
.wall-name { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.wall-skeleton span {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: var(--skeleton);
}
.wall-skeleton span:first-child { width: 90%; }
.wall-skeleton span + span { width: 40%; margin-top: 12px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .wall-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wall-list { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 767px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { order: -1; }
  .sticker--hero { width: 70vw; max-width: 340px; }
  .hero-sub { margin-top: 0.875rem; }
  .hero .button { margin-top: 1.25rem; }
  .countdown { margin-top: 1.5rem; }
  .wish-grid { grid-template-columns: 1fr; }
  .sticker--heart { width: 60vw; }
  .wish-form { margin-top: 1.5rem; }
  .wish-form .button { width: 100%; }
}

/* Footer */
.footer { padding-block: 2rem 2.5rem; font-size: 0.9375rem; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.sticker--badge-sm { width: 28px; flex: none; }
.footer-note { color: var(--ink-soft); }
@media (max-width: 767px) {
  .footer-note { flex-basis: 100%; }
}

/* Motion: load-in for the hero, one-shot reveal for later sections. */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .load-in {
    opacity: 0;
    animation: rise 600ms var(--ease-out) forwards;
    animation-delay: calc(80ms + var(--i, 0) * 90ms);
  }
  .js .reveal > .container {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .js .reveal.is-in > .container { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
