:root {
  --paper: #f2f0e8;
  --ink: #101010;
  --blue: #3155f5;
  --acid: #d8ff45;
  --orange: #ff6846;
  --line: #191919;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--paper);
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(16, 16, 16, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 8px;
  color: var(--ink);
  font-family: var(--display);
}

a {
  color: inherit;
}

.topbar,
main,
footer {
  width: min(1500px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  height: 104px;
  border-bottom: 2px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
}

.brand svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: bevel;
  stroke-width: 2;
}

.edition,
.live,
.card-label,
.coordinates,
.form-message,
footer {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.edition {
  margin: 0;
  text-align: center;
}

.live {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.live span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.8s steps(2, end) infinite;
}

.hero {
  min-height: 410px;
  padding: 46px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  align-items: center;
  gap: 60px;
}

.kicker {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(68px, 8.8vw, 145px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.75;
  text-transform: uppercase;
}

.highlight {
  position: relative;
  display: inline-block;
  margin-left: 0.04em;
  padding: 0.09em 0.12em 0.16em;
  background: var(--acid);
  color: var(--ink);
  line-height: 0.78;
  transform: rotate(-1.5deg);
}

.highlight > span {
  position: relative;
  z-index: 1;
}

.highlight svg {
  position: absolute;
  z-index: 2;
  width: 96%;
  height: 80%;
  left: 2%;
  top: 8%;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-width: 7;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: scribble 1.1s 500ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.manifesto {
  position: relative;
  padding: 25px 0 0 52px;
  border-top: 2px solid var(--line);
}

.manifesto-number {
  position: absolute;
  left: 0;
  top: 27px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
}

.manifesto p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.board {
  border: 2px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 1fr;
}

.card {
  position: relative;
  min-height: 320px;
  padding: 22px;
  overflow: hidden;
}

.card + .card {
  border-left: 2px solid var(--line);
}

.card-label {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}

.card-blue {
  background: var(--blue);
  color: white;
}

.radar {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.25) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(255,255,255,.25) 50%, transparent 50.5%);
  transform: translate(-50%, -50%);
}

.radar::before,
.radar::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  content: "";
  inset: 25%;
}

.radar::after {
  inset: 42%;
}

.radar-line {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  border-left: 2px solid var(--acid);
  background: linear-gradient(130deg, rgba(216, 255, 69, 0.3), transparent 65%);
  transform-origin: bottom left;
  animation: sweep 4s linear infinite;
}

.radar i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(216, 255, 69, 0.16);
  left: 66%;
  top: 29%;
}

.card-bottom {
  position: absolute;
  inset: auto 22px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-bottom strong {
  font-size: 25px;
  letter-spacing: -0.05em;
}

.card-bottom span {
  font-family: var(--mono);
  font-size: 11px;
}

.card-form {
  background: var(--paper);
}

.card-form h2 {
  margin: 30px 0 35px;
  font-size: clamp(34px, 3.7vw, 57px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

form {
  display: grid;
  grid-template-columns: 1fr 58px;
  border-bottom: 2px solid var(--ink);
}

input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

input::placeholder {
  color: #77766f;
}

button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

button:hover {
  background: var(--orange);
  color: var(--ink);
}

button svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.form-message {
  margin: 11px 0 0;
  color: #77766f;
}

.form-message.success {
  color: var(--blue);
  font-weight: 500;
}

.card-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--orange);
}

.asterisk {
  position: absolute;
  right: 17px;
  top: -35px;
  font-size: 145px;
  font-weight: 400;
  line-height: 1;
  animation: turn 10s linear infinite;
}

.card-note p {
  margin: auto 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ticker {
  margin-top: 22px;
  overflow: hidden;
  border-block: 2px solid var(--line);
  background: var(--acid);
}

.ticker-track {
  width: max-content;
  padding: 12px 0 10px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: ticker 20s linear infinite;
}

.ticker-track i {
  color: var(--blue);
  font-style: normal;
}

footer {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

footer a {
  text-decoration: none;
}

footer > :last-child {
  justify-self: end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes blink {
  50% { background: var(--acid); }
}

@keyframes scribble {
  to { stroke-dashoffset: 0; }
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (min-width: 901px) {
  body {
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .topbar {
    height: clamp(68px, 10dvh, 104px);
  }

  main {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1.15fr) minmax(235px, 0.85fr);
  }

  .hero {
    min-height: 0;
    padding-block: clamp(18px, 4dvh, 46px);
  }

  h1 {
    font-size: clamp(64px, min(8.8vw, 12dvh), 145px);
  }

  .board,
  .card {
    min-height: 0;
  }

  .ticker {
    margin-top: clamp(8px, 2dvh, 22px);
  }

  footer {
    min-height: clamp(48px, 8dvh, 86px);
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 42px;
  }

  .kicker {
    margin-bottom: 12px;
  }

  .manifesto {
    padding-top: 18px;
  }

  .manifesto-number {
    top: 20px;
  }

  .manifesto p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  .card {
    padding: 16px;
  }

  .radar {
    width: 150px;
    height: 150px;
  }

  .card-bottom {
    inset: auto 16px 14px;
  }

  .card-form h2 {
    margin: 18px 0;
    font-size: clamp(32px, 3.4vw, 48px);
  }

  form {
    grid-template-columns: 1fr 48px;
  }

  input {
    height: 48px;
  }

  .asterisk {
    right: 12px;
    top: -28px;
    font-size: 110px;
  }

  .card-note p {
    font-size: clamp(19px, 1.8vw, 25px);
  }

  .ticker-track {
    padding: 8px 0 7px;
  }
}

@media (max-width: 900px) {
  .topbar,
  main,
  footer {
    width: calc(100% - 36px);
  }

  .hero {
    min-height: 470px;
    grid-template-columns: 1fr;
    align-items: initial;
    gap: 55px;
  }

  .manifesto {
    width: 100%;
  }

  .board {
    grid-template-columns: 1fr 1fr;
  }

  .card-note {
    min-height: 260px;
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 2px solid var(--line);
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 82px;
    grid-template-columns: 1fr auto;
  }

  .edition {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 52px;
    gap: 54px;
  }

  h1 {
    font-size: clamp(55px, 17vw, 76px);
    line-height: 0.82;
  }

  .highlight {
    margin-top: 0.08em;
    margin-left: 0;
  }

  .manifesto {
    width: 100%;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 300px;
  }

  .card + .card {
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .card-note {
    grid-column: auto;
  }

  .card-form h2 {
    font-size: 45px;
  }

  footer {
    min-height: 105px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  footer > :last-child {
    display: none;
  }

  footer a {
    justify-self: end;
    font-size: 8px;
  }
}

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