@font-face {
  font-family: 'Bebas Neue';
  src: url('./assets/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: light;
  --cream: #f5e9da;
  --brown: #55291f;
  --sand: #dfc5a8;
  --caramel: #bf9770;
  --roast: #8d603c;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: var(--cream); color: var(--brown); }
.preloader { opacity: 1; transition: opacity 350ms ease; }
.preloader__steak { width: min(58vw, 260px); height: auto; }
.preloader__count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-top: -8px;
  font: 400 56px/1 'Bebas Neue', Impact, sans-serif;
  font-variant-numeric: tabular-nums;
}
#loading-count { min-width: 1.5em; text-align: right; }
.preloader__percent { font: 14px/1 Arial, sans-serif; }
.is-uncovering .preloader { opacity: 0; }
.announcement {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr 1.12fr;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.band { position: relative; display: flex; align-items: center; isolation: isolate; }
.band__surface { position: absolute; inset: 0; z-index: -1; background: var(--fill); }
.band--one { --fill: var(--sand); --from: -102%; --delay: 0ms; padding-left: 6vw; }
.band--two { --fill: var(--caramel); --from: 102%; --delay: 700ms; padding-right: 6vw; justify-content: flex-end; }
.band--three { --fill: var(--roast); --from: -102%; --delay: 1400ms; color: var(--cream); justify-content: center; }
.masthead, .footer { position: absolute; left: 3vw; right: 3vw; display: flex; align-items: center; justify-content: space-between; }
.masthead { top: 20px; }
.wordmark { font: italic bold clamp(19px, 1.7vw, 28px)/1 Georgia, serif; letter-spacing: -.07em; }
.eyebrow { font: 500 10px/1.3 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.type-window { overflow: hidden; padding: .06em .02em 0; }
.display {
  display: block;
  font: 400 min(31vh, 30vw)/.84 'Bebas Neue', Impact, sans-serif;
  font-size: min(31svh, 30vw);
  letter-spacing: -.025em;
  white-space: nowrap;
}
.band--one .type-window { margin-top: 28px; }
.band--one .display { font-size: min(27svh, 27vw); }
.steak {
  position: absolute;
  left: 50%;
  top: calc(50% + 8px);
  width: min(28vw, 35svh, 340px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.band--three .display { font-size: min(21vw, 32svh); letter-spacing: -.025em; }
.band--three .type-window { margin-top: -12px; }
.period { color: var(--sand); }
.side-note { position: absolute; font: italic 19px/1.2 Georgia, serif; }
.band--one .side-note { right: 6vw; bottom: 32px; text-align: right; }
.band--two .side-note { left: 6vw; top: 35px; }
.footer { bottom: 35px; }
.spark { display: inline-block; margin-left: 14px; font-size: 23px; vertical-align: middle; }
.checker {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 14px, transparent 14px 28px);
}

/* The static composition is the fallback when JavaScript is unavailable. */
.is-entering .band__surface { animation: band-in 1050ms var(--ease) var(--delay) both; }
.is-entering .display { animation: type-in 1150ms var(--ease) calc(var(--delay) + 220ms) both; }
.is-entering .masthead,
.is-entering .side-note,
.is-entering .steak,
.is-entering .footer,
.is-entering .checker { animation: detail-in 700ms ease calc(var(--delay) + 700ms) both; }
@keyframes band-in { from { transform: translateX(var(--from)); } to { transform: translateX(0); } }
@keyframes type-in { from { transform: translateX(var(--from)); } to { transform: translateX(0); } }
@keyframes detail-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
  .announcement { grid-template-rows: 1fr 1fr 1fr; }
  .masthead, .footer { left: 22px; right: 22px; }
  .masthead { top: 22px; }
  .masthead .eyebrow { max-width: 100px; font-size: 8px; text-align: right; }
  .display { font-size: min(29svh, 54vw); }
  .band--one .display { font-size: min(26svh, 32vw); }
  .steak { left: 58%; top: calc(50% + 3px); width: 42vw; }
  .band--one { padding-left: 22px; }
  .band--two { padding-right: 22px; }
  .band--one .type-window { margin-top: 38px; }
  .band--one .side-note { right: 22px; bottom: 14px; font-size: 12px; }
  .band--two .side-note { left: 22px; top: 25px; }
  .side-note { font-size: 15px; }
  .band--three .display { font-size: 21vw; }
  .band--three .type-window { margin-top: -10px; }
  .footer { bottom: 31px; gap: 12px; }
  .footer .eyebrow { font-size: 7px; letter-spacing: .09em; }
  .spark { font-size: 17px; margin-left: 5px; }
  .checker { height: 10px; background-size: 20px 100%; background-image: linear-gradient(90deg, var(--cream) 50%, transparent 50%); }
}
@media (max-height: 500px) and (min-width: 601px) {
  .masthead { top: 12px; }
  .side-note { font-size: 14px; }
  .band--one .side-note { bottom: 15px; }
  .band--two .side-note { top: 18px; }
  .footer { bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .announcement *, .announcement *::before, .announcement *::after { animation: none !important; }
}
