@font-face {
  font-family: "Archivo Black";
  src: url("./assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #e7e1d5;
  --ink: #080706;
  --red: #e62d17;
  --muted-ink: #6b665e;
  --paper-edge: #c9c1b4;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-rendering: optimizeLegibility;
}

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

.poster {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto minmax(12rem, 1fr) auto auto;
  min-height: 100svh;
  padding: clamp(20px, 3vw, 48px);
  overflow: hidden;
}

.poster::before {
  position: absolute;
  z-index: -1;
  top: -18vh;
  left: 51%;
  width: clamp(12px, 1.3vw, 24px);
  height: 136vh;
  background: var(--red);
  content: "";
  opacity: 0.035;
  transform: rotate(18deg);
  transform-origin: center;
}

.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.domain {
  font-weight: 500;
}

.rule {
  height: 2px;
  margin-top: 14px;
  background: var(--ink);
  transform-origin: left;
  animation: rule-in 700ms ease-out both;
}

.language {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language > span {
  color: var(--red);
}

.language button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 4px 1px;
  background: transparent;
  cursor: pointer;
}

.language button[aria-pressed="true"] {
  border-color: var(--red);
}

.language button:focus-visible {
  border-radius: 1px;
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.wordmark {
  align-self: center;
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(72px, 18vw, 300px);
  font-weight: 400;
  letter-spacing: -0.095em;
  line-height: 0.73;
  white-space: nowrap;
  transform: rotate(-2deg) translateX(-0.02em);
  animation: mark-in 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wordmark b {
  color: var(--red);
  font-weight: inherit;
}

.message {
  width: min(650px, 84vw);
  margin: 0 0 clamp(30px, 5vw, 70px);
}

.message > div:not([hidden]) {
  animation: copy-in 180ms ease-out both;
}

.status {
  margin: 0 0 11px;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.statement {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(22px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

footer {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  color: var(--muted-ink);
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-2deg);
  }
}

@keyframes rule-in {
  from {
    transform: scaleX(0);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@media (max-width: 640px) {
  .poster {
    grid-template-rows: auto auto minmax(10rem, 1fr) auto auto;
    padding: 18px;
  }

  .masthead {
    align-items: flex-start;
  }

  .wordmark {
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(44px, 24vw, 112px);
    white-space: normal;
  }

  .message {
    width: 100%;
    margin-bottom: 34px;
  }

  .statement {
    font-size: clamp(21px, 7vw, 34px);
  }

  footer {
    flex-wrap: wrap;
    font-size: 9px;
  }
}

@media (max-width: 220px) {
  .poster {
    padding: 12px;
  }

  .masthead,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wordmark {
    font-size: 43px;
  }

  .statement {
    font-size: 20px;
  }
}

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