:root {
  --ink: #111632;
  --paper: #f4f3ed;
  --electric: #1824d5;
  --acid: #c8ff35;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-400.ttf") format("truetype");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-500.ttf") format("truetype");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-400.ttf") format("truetype");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-500.ttf") format("truetype");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-600.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--electric);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: var(--electric);
}

.hero-image,
.hero-image::before,
.hero-image::after {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  overflow: hidden;
  background: var(--acid);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  filter: grayscale(1) contrast(1.26) brightness(0.88);
  mix-blend-mode: multiply;
}

.hero-image::before {
  z-index: 1;
  content: "";
  background: #1732e5;
  mix-blend-mode: color;
}

.hero-image::after {
  z-index: 2;
  content: "";
  background: linear-gradient(90deg, rgb(8 13 72 / 0.93) 0%, rgb(8 13 72 / 0.7) 42%, rgb(8 13 72 / 0.16) 78%);
}

.site-header,
.hero-content,
.site-footer {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.2rem, 3.4vw, 3.25rem);
}

.brand {
  display: block;
  width: clamp(9.5rem, 16vw, 14rem);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.edition,
.eyebrow,
.site-footer {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.edition {
  margin: 0.25rem 0 0;
  white-space: nowrap;
}

.hero-content {
  align-self: start;
  padding-top: clamp(4rem, 10vh, 6rem);
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--acid);
}

h1,
.intro {
  max-width: 50rem;
}

h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 8.4vw, 9.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.85;
  text-wrap: balance;
}

.human-emphasis {
  color: var(--acid);
  font-size: 1.16em;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.intro {
  margin: clamp(1.8rem, 4vw, 3.4rem) 0 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  min-height: 2.75rem;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid currentcolor;
  background: transparent;
  color: var(--acid);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact:hover,
.contact:focus-visible {
  color: var(--paper);
}

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.25rem, 3.4vw, 3.25rem);
  color: rgb(244 243 237 / 0.8);
}

.site-footer p {
  margin: 0;
}

.legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}

.legal-nav a,
.consent-manage {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

body.consent-open .site-footer {
  margin-bottom: clamp(9rem, 16vw, 12rem);
}

.consent-banner {
  position: fixed;
  z-index: 5;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  width: min(25rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--paper);
  background: rgb(17 22 50 / 0.96);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.2);
}

.consent-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.consent-banner p + p {
  margin-top: 0.35rem;
}

.consent-banner a {
  color: var(--acid);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.consent-actions button {
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--paper);
  background: rgb(244 243 237 / 0.1);
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.consent-actions button:hover,
.consent-actions button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .hero-image img {
    object-position: 63% center;
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgb(8 13 72 / 0.76) 0%, rgb(8 13 72 / 0.72) 42%, rgb(8 13 72 / 0.58) 100%);
  }

  .site-header {
    align-items: center;
  }

  .hero-content {
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    max-width: 16ch;
    font-size: clamp(3.4rem, 16vw, 5.8rem);
    line-height: 0.89;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .eyebrow {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  body.consent-open .site-footer {
    margin-bottom: 12rem;
  }

  .consent-banner {
    right: 1rem;
    bottom: 1rem;
  }
}

.legal-page {
  min-height: 100svh;
  background: var(--electric);
}

.legal-content {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.legal-content .brand {
  width: clamp(9.5rem, 22vw, 13rem);
}

.legal-content h1 {
  max-width: 12ch;
  margin-top: clamp(4rem, 10vw, 7rem);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.legal-content h2 {
  margin: 3rem 0 0.75rem;
  color: var(--acid);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content p,
.legal-content li {
  max-width: 44rem;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--acid);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
