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

:root {
  --ink: #0A0E14;
  --navy: #0F1A2B;
  --steel: #1C2A3D;
  --grid: #2B3A50;
  --fog: #8A97A8;
  --paper: #E8EDF2;
  --signal: #C8FF2E;
  --signal-dim: #6E8A1A;
  --alert: #FF7A66;
  --paper-rule: #B4BFCC;
  --paper-mute: #4A5668;

  --ground: var(--ink);
  --text: var(--paper);
  --text-mute: var(--fog);
  --line: var(--grid);
  --focus: var(--signal);

  --fagu-adc: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --fagu-e72: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fagu-fd2: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.4rem, 9vw, 8.5rem);
  --fs-d1: clamp(2.25rem, 6.4vw, 5.75rem);
  --fs-d2: clamp(1.875rem, 4.6vw, 3.875rem);
  --fs-d3: clamp(1.5rem, 3vw, 2.5rem);
  --fs-d4: clamp(1.25rem, 2vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.8125rem;
  --fs-micro: 0.6875rem;

  --lh-tight: 0.92;
  --lh-head: 1.02;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --track-mono: 0.08em;
  --track-display: -0.005em;
  --track-hero: -0.012em;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1.125rem;
  --s-5: 1.625rem;
  --s-6: 2.375rem;
  --s-7: 3.5rem;
  --s-8: 5.25rem;
  --s-9: 7.75rem;

  --shell: 1320px;
  --measure: 64ch;
  --measure-wide: 78ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --block-pad: clamp(4rem, 10vw, 9rem);
  --block-pad-tight: clamp(2.75rem, 6vw, 5rem);
  --rule: 6px;
  --hair: 1px;
  --radius: 0;
  --header-h: 4.5rem;
  --header-h-condensed: 3.625rem;
  --tap: 44px;

  --dur-instant: 90ms;
  --dur-fast: 140ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
  --dur-scene: 640ms;
  --dur-long: 1100ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.85, 0.36);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-snap: cubic-bezier(0.3, 1.35, 0.5, 1);
  --ease-linear: linear;

  --z-base: 1;
  --z-raised: 10;
  --z-header: 100;
  --z-nav: 110;
  --z-chat: 200;
  --z-consent: 300;
  --z-skip: 400;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--fagu-e72);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
  background: var(--steel);
}

iframe, embed, object {
  max-width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

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

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

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: currentColor;
  stroke: currentColor;
  vertical-align: middle;
}

h1, h2, h3, h4 {
  font-family: var(--fagu-adc);
  font-weight: 800;
  line-height: var(--lh-head);
  letter-spacing: var(--track-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-d1);
  font-weight: 900;
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-d2);
}

h3 {
  font-size: var(--fs-d3);
  font-weight: 800;
}

h4 {
  font-size: var(--fs-d4);
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--fs-small);
}

code, kbd, samp {
  font-family: var(--fagu-fd2);
  font-size: 0.875em;
}

.t-hero {
  font-family: var(--fagu-adc);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: var(--track-hero);
  text-wrap: balance;
}

.t-d1 { font-size: var(--fs-d1); }
.t-d2 { font-size: var(--fs-d2); }
.t-d3 { font-size: var(--fs-d3); }
.t-d4 { font-size: var(--fs-d4); }

.t-display {
  font-family: var(--fagu-adc);
  font-weight: 800;
  line-height: var(--lh-head);
}

.t-upper {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 52ch;
  color: var(--text);
}

.mono,
.code {
  font-family: var(--fagu-fd2);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  line-height: 1.45;
}

.code {
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.code::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: currentColor;
  flex: none;
}

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

.mute {
  color: var(--text-mute);
}

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

.num {
  font-family: var(--fagu-fd2);
  font-variant-numeric: tabular-nums;
}

.prose {
  max-width: var(--measure);
  hanging-punctuation: first last;
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  font-size: var(--fs-d3);
  margin-top: var(--s-7);
}

.prose h3 {
  font-size: var(--fs-d4);
  font-weight: 800;
  margin-top: var(--s-6);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: var(--s-3);
}

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

.prose li + li {
  margin-top: var(--s-2);
}

.prose ul li::marker {
  color: var(--signal);
  content: "\25A0  ";
  font-size: 0.7em;
}

.prose ol li::marker {
  font-family: var(--fagu-fd2);
  font-size: 0.85em;
  color: var(--text-mute);
}

.prose a {
  color: var(--text);
  text-decoration-color: var(--signal-dim);
  text-decoration-thickness: 2px;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

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

.prose blockquote {
  border-left: var(--rule) solid var(--signal);
  padding-left: var(--s-5);
  font-family: var(--fagu-adc);
  font-weight: 600;
  font-size: var(--fs-d4);
  line-height: 1.25;
}

.prose strong {
  color: var(--text);
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.block {
  position: relative;
  padding-block: var(--block-pad);
  background: var(--ground);
  color: var(--text);
  border-top: var(--rule) solid var(--grid);
  isolation: isolate;
}

.block:first-child {
  border-top: 0;
}

.block--tight {
  padding-block: var(--block-pad-tight);
}

.block--ink {
  --ground: var(--ink);
}

.block--navy {
  --ground: var(--navy);
}

.block--steel {
  --ground: var(--steel);
}

.block--paper {
  --ground: var(--paper);
  --text: var(--ink);
  --text-mute: var(--paper-mute);
  --line: var(--paper-rule);
  --focus: var(--ink);
  color-scheme: light;
}

.block--signal-rule {
  border-top-color: var(--signal);
}

.block--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size:
    calc((min(100vw, var(--shell) + var(--gutter) * 2) - var(--gutter) * 2) / 12) 100%,
    100% 4.5rem;
  background-position: max(var(--gutter), calc((100vw - var(--shell)) / 2)) 0, 0 0;
}

.block__code {
  position: absolute;
  top: var(--s-4);
  font-family: var(--fagu-fd2);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.2;
  pointer-events: none;
}

.block__code--l {
  left: var(--gutter);
}

.block__code--r {
  right: var(--gutter);
  text-align: right;
}

.block__code--bl {
  top: auto;
  bottom: var(--s-4);
  left: var(--gutter);
}

.block__code--br {
  top: auto;
  bottom: var(--s-4);
  right: var(--gutter);
  text-align: right;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack, var(--s-4));
}

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

.stack--s { --stack: var(--s-2); }
.stack--m { --stack: var(--s-5); }
.stack--l { --stack: var(--s-7); }

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

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

.split {
  display: grid;
  gap: var(--s-6) var(--s-7);
  grid-template-columns: minmax(0, 1fr);
}

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

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-12 > * {
  min-width: 0;
  grid-column: 1 / -1;
}

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

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

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

.rule--hair {
  height: 1px;
}

.rule--signal {
  background: var(--signal);
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--steel);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x9 { aspect-ratio: 16 / 9; }

.sr-only,
.visually-hidden {
  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;
}

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.75rem 1.1rem;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--fagu-fd2);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--paper);
  outline-offset: 2px;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-scene: 0ms;
    --dur-long: 0ms;
  }
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .consent,
  .chat-launcher,
  .chat-panel {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
