@font-face {
  font-family: "Climate Crisis";
  src: url("/fonts/ClimateCrisis-Variable.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/MartianMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--wm-1);
  text-decoration: none;
}

kbd {
  font: 500 12px/1 var(--mono);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 2px 5px;
}

:focus-visible {
  outline: 3px solid var(--wm-1);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h3 {
  font: 700 1.35rem/1.2 var(--text);
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

ul,
ol {
  color: var(--ink-2);
}

pre {
  margin: 0;
  overflow-x: auto;
}

table {
  color: var(--ink-2);
}

.display {
  font-family: var(--display);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ground);
}

.skip-link:focus {
  top: 12px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wm-1);
}

.num {
  color: var(--wm-1);
}

.section-title {
  font-size: clamp(36px, 5.6vw, 88px);
  max-width: 16ch;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}

.page-head {
  padding-block: clamp(120px, 16vw, 200px) clamp(40px, 5vw, 72px);
}

.page-head h1 {
  font-size: clamp(24px, 7.6vw, 100px);
  overflow-wrap: break-word;
  max-width: 16ch;
  margin-bottom: 24px;
}

@media (min-width: 760px) {
  .page-head h1 {
    font-size: clamp(40px, 6.4vw, 100px);
  }
}

.page-block {
  padding-block: clamp(56px, 8vw, 110px);
}

.prose {
  max-width: 70ch;
}

.prose .section-title {
  font-size: clamp(30px, 3.4vw, 48px);
  margin: 2.4em 0 0.6em;
}

.prose .section-title:first-child {
  margin-top: 0;
}

.command {
  margin: 0 0 1.4em;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-x: auto;
}

.command code {
  font: 500 15px/1.5 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
