:root {
  color-scheme: dark;
  --ink: #f8f1dc;
  --muted: #c8c8b7;
  --green: #0a2119;
  --green-light: #174c39;
  --red: #e74737;
  --gold: #d5a84d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 25%, rgba(231, 71, 55, .18), transparent 28rem),
    radial-gradient(circle at 15% 80%, rgba(213, 168, 77, .12), transparent 24rem),
    var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

a { color: inherit; }

.site-header,
footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header { padding-block: 28px; }

.brand {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .18em;
  text-decoration: none;
}

.campaign-tag,
.eyebrow,
.countdown__label,
.status,
footer {
  text-transform: uppercase;
  letter-spacing: .14em;
}

.campaign-tag {
  padding: 8px 12px;
  border: 1px solid rgba(248, 241, 220, .35);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: clamp(40px, 7vw, 90px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 8.3vw, 7.7rem);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 950;
}

h1 span { color: var(--red); }

.lead {
  max-width: 620px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.countdown {
  max-width: 610px;
  padding: 20px;
  border: 1px solid rgba(248, 241, 220, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(12px);
}

.countdown__label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .64rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown__grid div {
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(248, 241, 220, .12);
}

.countdown__grid div:last-child { border-right: 0; }

.countdown strong {
  display: block;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-variant-numeric: tabular-nums;
}

.countdown__grid span {
  color: var(--muted);
  font-size: clamp(.6rem, 1.3vw, .74rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .66rem;
}

.status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd19d;
  box-shadow: 0 0 0 5px rgba(125, 209, 157, .12);
}

.hero__art {
  position: relative;
  min-height: min(570px, 58vw);
  display: grid;
  place-items: center;
}

.year {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -55%);
  color: rgba(248, 241, 220, .055);
  font-size: clamp(16rem, 32vw, 30rem);
  line-height: .7;
  letter-spacing: -.14em;
  font-weight: 950;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb--one {
  width: 105px;
  height: 105px;
  top: 8%;
  right: 4%;
  background: var(--red);
  box-shadow: inset -20px -18px 38px rgba(64, 3, 0, .28), 0 20px 80px rgba(231, 71, 55, .22);
}

.orb--two {
  width: 34px;
  height: 34px;
  left: 6%;
  bottom: 22%;
  background: var(--gold);
}

.cup {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 260px;
  transform: rotate(-4deg);
}

.cup__body {
  position: absolute;
  left: 10px;
  bottom: 30px;
  width: 195px;
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 58px 58px;
  background: linear-gradient(145deg, #fff8e5, #d9ccb0);
  box-shadow: inset -20px -12px 45px rgba(69, 37, 20, .15), 0 30px 80px rgba(0, 0, 0, .34);
}

.cup__body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
  top: -9px;
  border-radius: 50%;
  background: #47291b;
  border: 7px solid #efe5cb;
}

.cup__body span {
  color: var(--green);
  font: 950 4.7rem/1 Georgia, serif;
}

.cup__handle {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 78px;
  height: 88px;
  border: 18px solid #ddd1b6;
  border-left: 0;
  border-radius: 0 55px 55px 0;
}

.cup__saucer {
  position: absolute;
  left: -12px;
  bottom: 10px;
  width: 260px;
  height: 38px;
  border-radius: 50%;
  background: #c8b99d;
  box-shadow: 0 22px 45px rgba(0, 0, 0, .24);
}

.cup__steam {
  position: absolute;
  top: -28px;
  width: 32px;
  height: 95px;
  border-left: 4px solid rgba(248, 241, 220, .4);
  border-radius: 50%;
  animation: steam 3.2s ease-in-out infinite;
}

.cup__steam--one { left: 74px; }
.cup__steam--two { left: 132px; animation-delay: -1.5s; }

.snowflake {
  position: fixed;
  z-index: 0;
  top: -20px;
  color: rgba(255, 255, 255, .7);
  pointer-events: none;
  animation: fall linear infinite;
}

footer {
  padding-block: 26px;
  color: rgba(248, 241, 220, .55);
  font-size: .62rem;
}

footer a { text-underline-offset: 4px; }

@keyframes steam {
  0%, 100% { transform: translateY(10px) scaleX(.8); opacity: 0; }
  35% { opacity: .75; }
  70% { transform: translateY(-12px) translateX(10px) scaleX(1.2); opacity: .25; }
}

@keyframes fall {
  to { transform: translate3d(var(--drift), 105vh, 0) rotate(360deg); }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero__art {
    min-height: 390px;
    order: -1;
  }

  .year { font-size: min(78vw, 25rem); }
  .orb--one { right: 12%; }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  footer { width: min(100% - 28px, 1180px); }

  .site-header { padding-block: 20px; }
  .hero { padding: 28px 0 52px; gap: 20px; }
  .hero__art { min-height: 320px; transform: scale(.86); }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .lead { margin-block: 24px; }
  .countdown { padding: 15px; border-radius: 18px; }
  .countdown__grid { gap: 6px; }
  .countdown__grid div { padding-right: 5px; }
  footer { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .snow { display: none; }
}
