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

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f2f1ed;
  --ink: #0b0b0a;
  --rule: rgba(11, 11, 10, 0.2);
  --gutter: clamp(18px, 2.1vw, 36px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter Tight", Arial, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(25% - 0.5px), var(--rule) 25%, transparent calc(25% + 0.5px)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to right, transparent calc(75% - 0.5px), var(--rule) 75%, transparent calc(75% + 0.5px));
}

.topbar,
.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 16px var(--gutter);
  border-color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9px, 0.68vw, 12px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.topbar {
  align-items: start;
  border-bottom: 1px solid var(--ink);
}

.brand {
  width: fit-content;
  display: flex;
  flex-direction: column;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: -0.08em;
}

.edition {
  grid-column: 3;
  margin: 0;
}

.status {
  grid-column: 4;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.8s steps(2, end) infinite;
}

main {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.hero {
  position: relative;
  min-height: 100%;
  padding: 16px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow,
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9px, 0.68vw, 12px);
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span:last-child {
  grid-column: 4;
  justify-self: end;
  text-align: right;
}

h1 {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: clamp(28px, 4vh, 64px) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  font-size: clamp(82px, 15vw, 276px);
  font-weight: 600;
  line-height: 0.68;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.title-line {
  display: block;
  width: max-content;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-3vw) skewX(-5deg);
  animation: editorial-reveal 1.05s cubic-bezier(0.77, 0, 0.18, 1) var(--delay) forwards;
}

.title-on {
  --delay: 180ms;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding-bottom: 0.15em;
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.title-arrive {
  --delay: 300ms;
  grid-column: 2 / 5;
  grid-row: 1;
  justify-self: start;
}

.title-soon {
  --delay: 430ms;
  grid-column: 1 / 5;
  grid-row: 2;
  margin-left: -0.045em;
  font-size: 0.89em;
  letter-spacing: -0.095em;
}

.period {
  display: inline-block;
  margin-left: 0.01em;
}

.breakout-banner {
  position: absolute;
  z-index: 4;
  top: 55%;
  left: -5vw;
  width: 110vw;
  padding: 13px 0 12px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-2.2deg) scaleX(0);
  transform-origin: left center;
  animation: banner-arrival 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.82s forwards;
}

.breakout-track {
  min-width: max-content;
  padding: 0 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(10px, 0.82vw, 15px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0;
  animation: banner-copy 0.45s ease 1.45s forwards;
}

.breakout-track i {
  font-style: normal;
}

.manifesto {
  grid-column: 1 / 3;
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(17px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: none;
}

.index {
  grid-column: 4;
  justify-self: end;
  align-self: end;
}

.index sup {
  margin-left: 3px;
  font-size: 0.62em;
  vertical-align: top;
}

.footer {
  align-items: end;
  border-top: 1px solid var(--ink);
}

.footer p {
  margin: 0;
}

.clock-wrap {
  grid-column: 3;
  display: flex;
  flex-direction: column;
}

#clock {
  font-size: clamp(18px, 1.6vw, 28px);
  letter-spacing: -0.07em;
}

.copyright {
  grid-column: 4;
  justify-self: end;
  text-align: right;
}

.cursor-mark {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: 31px;
  height: 31px;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.cursor-mark span,
.cursor-mark i {
  position: absolute;
  background: #fff;
}

.cursor-mark span {
  top: 15px;
  left: 0;
  width: 31px;
  height: 1px;
}

.cursor-mark i {
  top: 0;
  left: 15px;
  width: 1px;
  height: 31px;
}

body.has-pointer .cursor-mark {
  opacity: 1;
}

@keyframes editorial-reveal {
  to {
    clip-path: inset(0 0 0 0);
    transform: translateX(0) skewX(0);
  }
}

@keyframes banner-arrival {
  to { transform: rotate(-2.2deg) scaleX(1); }
}

@keyframes banner-copy {
  to { opacity: 1; }
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

@media (max-width: 760px) {
  .page-grid {
    background: linear-gradient(to right, transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px));
  }

  .topbar,
  .footer,
  .eyebrow,
  .hero-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .edition,
  .clock-wrap {
    display: none;
  }

  .status,
  .eyebrow span:last-child,
  .index,
  .copyright {
    grid-column: 2;
  }

  .hero {
    min-height: 100%;
    padding: 11px var(--gutter) 16px;
  }

  h1 {
    width: calc(100% + var(--gutter));
    margin-left: 0;
    padding: clamp(54px, 9vh, 96px) 0 clamp(66px, 11vh, 110px);
    display: block;
    font-size: 30vw;
    line-height: 0.68;
  }

  .title-on {
    margin-left: 0;
    padding-bottom: 0.34em;
    font-size: 0.3em;
  }

  .title-arrive {
    margin-left: 14vw;
    font-size: 0.86em;
  }

  .title-soon {
    margin-top: 0.08em;
    margin-left: -0.035em;
    font-size: 0.73em;
  }

  .breakout-banner {
    top: 56%;
    left: -12vw;
    width: 128vw;
    padding: 10px 0 9px;
    transform: rotate(-2.2deg) scaleX(0);
  }

  .breakout-track {
    padding: 0 8vw;
    gap: 25px;
    font-size: 9px;
  }

  .breakout-track span:nth-of-type(2),
  .breakout-track span:nth-of-type(4),
  .breakout-track i:nth-of-type(n+2) {
    display: none;
  }

  .manifesto {
    grid-column: 1;
    font-size: 19px;
  }

  .footer {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  h1 {
    font-size: min(12vw, 190px);
    padding: 24px 0;
  }
}

@media (pointer: coarse) {
  .cursor-mark {
    display: none;
  }
}

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