@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #0B0C0E;
  --gunmetal: #1B1E22;
  --gunmetal-2: #24282D;
  --line: #33383E;
  --paper: #F1EFEA;
  --mute: #9AA0A6;
  --signal: #FF4F1F;

  --ink-80: rgba(11, 12, 14, 0.8);
  --paper-72: rgba(241, 239, 234, 0.72);
  --paper-46: rgba(241, 239, 234, 0.46);
  --paper-16: rgba(241, 239, 234, 0.16);
  --paper-08: rgba(241, 239, 234, 0.08);
  --signal-24: rgba(255, 79, 31, 0.24);
  --signal-12: rgba(255, 79, 31, 0.12);

  --bg: var(--ink);
  --fg: var(--paper);
  --meta: var(--mute);
  --edge: var(--line);

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-mega: clamp(2.5rem, 9.2vw, 7.25rem);
  --t-h1: clamp(2.125rem, 6.4vw, 4.5rem);
  --t-h2: clamp(1.625rem, 3.9vw, 2.875rem);
  --t-h3: clamp(1.25rem, 2.3vw, 1.75rem);
  --t-h4: clamp(1.0625rem, 1.5vw, 1.25rem);
  --t-lead: clamp(1.0625rem, 1.45vw, 1.3125rem);
  --t-body: clamp(0.9688rem, 0.55vw + 0.84rem, 1.0625rem);
  --t-small: 0.875rem;
  --t-meta: 0.75rem;
  --t-figure: clamp(2rem, 5.4vw, 3.75rem);

  --lead-tight: 0.94;
  --lead-snug: 1.08;
  --lead-body: 1.62;
  --lead-meta: 1.45;

  --track-mega: -0.035em;
  --track-head: -0.02em;
  --track-label: 0.16em;
  --track-meta: 0.08em;

  --s-1: 0.375rem;
  --s-2: 0.625rem;
  --s-3: 0.9375rem;
  --s-4: 1.375rem;
  --s-5: 1.9375rem;
  --s-6: 2.625rem;
  --s-7: 3.5625rem;
  --s-8: 4.875rem;
  --s-9: 6.5rem;

  --gutter: 24px;
  --shell: min(1180px, 100% - 48px);
  --shell-narrow: min(820px, 100% - 48px);
  --block-pad: clamp(64px, 10vw, 128px);
  --rule: 2px;
  --hair: 1px;
  --radius: 0;
  --tick: 4px;

  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 380ms;
  --dur-4: 680ms;
  --dur-5: 1100ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-in-out: cubic-bezier(0.62, 0.02, 0.2, 1);
  --ease-snap: cubic-bezier(0.2, 1.02, 0.32, 1);
  --ease-hold: cubic-bezier(0.4, 0, 0, 1);

  --grid-texture:
    repeating-linear-gradient(90deg, var(--paper-08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, var(--paper-08) 0 1px, transparent 1px 64px);
  --scanlines: repeating-linear-gradient(135deg, rgba(241, 239, 234, 0.05) 0 1px, transparent 1px 7px);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--ink);
}

body {
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: var(--lead-body);
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

img { height: auto; border-style: none; background: var(--gunmetal); }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: 0; }

p,
h1,
h2,
h3,
h4,
h5,
h6 { overflow-wrap: break-word; }

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lead-snug);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); line-height: var(--lead-tight); letter-spacing: var(--track-mega); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); font-weight: 500; }

h5,
h6 {
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  line-height: var(--lead-meta);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

ul,
ol { padding-left: 1.15em; }

li { margin-block: 0.35em; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}

a:hover { color: var(--signal); }

strong,
b { font-weight: 600; }

em { font-style: italic; }

hr {
  border: 0;
  height: var(--rule);
  background: var(--line);
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

table { border-collapse: collapse; width: 100%; }

fieldset { border: 0; padding: 0; min-width: 0; }

legend { padding: 0; }

summary { cursor: pointer; }

abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell--narrow { width: var(--shell-narrow); }

.shell--wide { width: min(1480px, 100% - 48px); }

@media (max-width: 767px) {
  .shell,
  .shell--narrow,
  .shell--wide { width: calc(100% - (var(--gutter) * 2)); }
}

.stack > * + * { margin-top: var(--flow, var(--s-4)); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  align-items: center;
}

.cluster > * { min-width: 0; }

.split {
  display: grid;
  gap: clamp(var(--s-5), 4.5vw, var(--s-8));
  align-items: start;
}

.split > * { min-width: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
}

.grid-auto {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.grid-auto > * { min-width: 0; }

.measure { max-width: 64ch; }
.measure--tight { max-width: 48ch; }
.measure--wide { max-width: 76ch; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

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

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  line-height: var(--lead-meta);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--mute);
}

.label--signal { color: var(--signal); }

.label--ink { color: rgba(11, 12, 14, 0.62); }

.kicker {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--signal);
}

.kicker::before {
  content: "";
  width: 18px;
  height: var(--rule);
  background: var(--signal);
  transform: translateY(-0.28em);
  flex: none;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--paper-72);
  max-width: 58ch;
}

.muted { color: var(--mute); }
.small { font-size: var(--t-small); line-height: 1.55; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.icon--lg { width: 1.6em; height: 1.6em; }
.icon--sm { width: 0.95em; height: 0.95em; }

.prose {
  max-width: 68ch;
  font-size: var(--t-body);
  line-height: var(--lead-body);
  hanging-punctuation: first last;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.1em;
  font-size: var(--t-h3);
  letter-spacing: var(--track-head);
}

.prose h3 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 700;
}

.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }

.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--signal-24);
}

.prose a:hover { text-decoration-color: var(--signal); }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose li::marker { color: var(--signal); font-family: var(--font-mono); font-size: 0.85em; }

.prose li + li { margin-top: 0.45em; }

.prose strong { color: var(--paper); font-weight: 600; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.38em;
  background: var(--paper-08);
  border: var(--hair) solid var(--line);
  white-space: normal;
  overflow-wrap: break-word;
}

.prose blockquote {
  padding-left: var(--s-4);
  border-left: var(--rule) solid var(--signal);
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 500;
  line-height: 1.34;
  color: var(--paper);
}

.prose--ink { color: rgba(11, 12, 14, 0.82); }
.prose--ink strong { color: var(--ink); }
.prose--ink code { background: rgba(11, 12, 14, 0.06); border-color: rgba(11, 12, 14, 0.16); }

.rule {
  height: var(--rule);
  background: var(--line);
  border: 0;
  position: relative;
}

.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: var(--tick);
  background: var(--signal);
  transform: translateY(-1px);
}

.hairline { height: var(--hair); background: var(--line); border: 0; }

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line) transparent;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus {
  color: var(--ink);
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: -6px;
}

.on-paper { background: var(--paper); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-gun { background: var(--gunmetal); color: var(--paper); }

.on-paper .label { color: rgba(11, 12, 14, 0.58); }
.on-paper .lead { color: rgba(11, 12, 14, 0.72); }
.on-paper .muted { color: rgba(11, 12, 14, 0.6); }

.js .no-js-only { display: none; }

html { --header-h: 68px; }

@media (min-width: 900px) {
  html { --header-h: 84px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
