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

:root {
  --ink: #0c0710;
  --plum: #1c1224;
  --plum-mid: #2c1f3a;
  --violet: #6a4f8f;
  --paper: #ece6f0;
  --accent: #c8ff4d;
  --concrete: #948da0;

  --ink-90: rgba(12, 7, 16, 0.9);
  --ink-70: rgba(12, 7, 16, 0.7);
  --paper-80: rgba(236, 230, 240, 0.8);
  --paper-64: rgba(236, 230, 240, 0.64);
  --paper-44: rgba(236, 230, 240, 0.72);
  --paper-16: rgba(236, 230, 240, 0.16);
  --paper-08: rgba(236, 230, 240, 0.08);
  --violet-40: rgba(106, 79, 143, 0.4);
  --violet-24: rgba(106, 79, 143, 0.24);
  --accent-32: rgba(200, 255, 77, 0.32);
  --accent-12: rgba(200, 255, 77, 0.12);

  --bg: var(--ink);
  --surface: var(--plum);
  --surface-raised: var(--plum-mid);
  --text: var(--paper);
  --text-dim: rgba(236, 230, 240, 0.8);
  --line: var(--violet-40);
  --line-soft: var(--paper-16);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --step--2: clamp(0.688rem, 0.67rem + 0.09vw, 0.75rem);
  --step--1: clamp(0.8rem, 0.78rem + 0.12vw, 0.875rem);
  --step-0: clamp(0.975rem, 0.95rem + 0.15vw, 1.063rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.32vw, 1.313rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.62vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.65rem + 2.3vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);
  --step-6: clamp(3rem, 1.2rem + 8.6vw, 7.5rem);
  --step-poster: clamp(2.9rem, 0.4rem + 12.2vw, 10.5rem);

  --lh-tight: 0.86;
  --lh-display: 0.94;
  --lh-snug: 1.22;
  --lh-body: 1.62;
  --lh-loose: 1.75;

  --track-display: -0.015em;
  --track-label: 0.16em;
  --track-mono: 0.04em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1.125rem;
  --space-m: 1.625rem;
  --space-l: 2.375rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.25rem;
  --space-3xl: 7.75rem;

  --gutter: clamp(20px, 5vw, 64px);
  --shell: 1280px;
  --measure: 66ch;
  --measure-narrow: 46ch;

  --radius: 0;
  --radius-chip: 2px;
  --hair: 1px;
  --rule: 2px;

  --shadow-panel: 0 24px 60px -28px rgba(0, 0, 0, 0.85), 0 2px 0 0 rgba(236, 230, 240, 0.04);
  --shadow-lift: 0 34px 80px -32px rgba(0, 0, 0, 0.92);
  --shadow-doc: 0 40px 90px -40px rgba(0, 0, 0, 0.9);

  --hazard: repeating-linear-gradient(
    115deg,
    var(--accent) 0 8px,
    transparent 8px 17px
  );
  --tick-rule: repeating-linear-gradient(
    90deg,
    var(--violet) 0 1px,
    transparent 1px 9px
  );

  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 380ms;
  --dur-4: 620ms;
  --dur-5: 1100ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.31, 1);
  --ease-in-out: cubic-bezier(0.62, 0.02, 0.24, 1);
  --ease-snap: cubic-bezier(0.2, 1.4, 0.36, 1);
  --ease-steel: cubic-bezier(0.76, 0, 0.24, 1);

  --z-base: 1;
  --z-sticky: 20;
  --z-nav: 60;
  --z-chat: 70;
  --z-banner: 80;
  --z-drawer: 90;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.js .no-js-only {
  display: none !important;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: 0.002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(120% 60% at 12% -10%, rgba(44, 31, 58, 0.75) 0%, transparent 62%),
    radial-gradient(90% 50% at 100% 4%, rgba(106, 79, 143, 0.18) 0%, transparent 70%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-s);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: 0; }
h5, h6 {
  font-size: var(--step--1);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
}

p, ul, ol, dl, figure, blockquote, table, pre {
  margin: 0 0 var(--space-m);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0;
}

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

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

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

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

strong, b {
  font-weight: 600;
  color: var(--paper);
}

em {
  font-style: italic;
}

small {
  font-size: var(--step--1);
}

hr {
  height: var(--hair);
  border: 0;
  margin: var(--space-l) 0;
  background: var(--line);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

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

li + li {
  margin-top: var(--space-2xs);
}

blockquote {
  margin-left: 0;
  margin-right: 0;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

svg.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.icon-sm { width: 1em; height: 1em; }
svg.icon-lg { width: 1.75em; height: 1.75em; stroke-width: 1.4; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-mono);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-64);
  line-height: 1.4;
}

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

.accent { color: var(--accent); }
.dim { color: var(--text-dim); }
.concrete { color: var(--concrete); }

.lead {
  font-size: var(--step-1);
  line-height: 1.52;
  color: var(--paper-80);
  max-width: 34em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-s);
}

.kicker::before {
  content: "";
  width: 26px;
  height: var(--rule);
  background: var(--accent);
  flex: none;
}

.hazard-rule {
  height: 8px;
  width: min(100%, 220px);
  background-image: var(--hazard);
  background-color: rgba(12, 7, 16, 0.6);
}

.tick-rule {
  height: 9px;
  width: 100%;
  background-image: var(--tick-rule);
  opacity: 0.8;
}

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

.shell-wide {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack > * + * { margin-top: var(--space-m); }
.stack-s > * + * { margin-top: var(--space-2xs); }
.stack-l > * + * { margin-top: var(--space-l); }
.stack-xl > * + * { margin-top: var(--space-xl); }

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

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

.grid {
  display: grid;
  gap: var(--space-m);
}

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

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

.measure { max-width: var(--measure); }
.measure-narrow { max-width: var(--measure-narrow); }

.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: var(--lh-loose);
  color: var(--paper-80);
  hanging-punctuation: first last;
}

.prose > * + * { margin-top: var(--space-m); }

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
  font-size: var(--step-3);
  color: var(--paper);
}

.prose h3 {
  margin-top: var(--space-l);
  margin-bottom: var(--space-2xs);
  font-size: var(--step-1);
  color: var(--paper);
  letter-spacing: 0.01em;
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

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

.prose a {
  text-decoration-color: var(--accent-32);
}

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

.prose li::marker {
  color: var(--violet);
  font-family: var(--font-mono);
}

.prose > ul > li,
.prose > ol > li {
  padding-left: 0.2em;
}

.prose blockquote {
  border-left: var(--rule) solid var(--accent);
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-s);
  color: var(--paper);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose figcaption,
.figcaption {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--track-mono);
  color: var(--paper-44);
  margin-top: var(--space-2xs);
  line-height: 1.5;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--ink);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.frame {
  position: relative;
  isolation: isolate;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 3;
}

.frame::before {
  top: 0;
  left: 0;
  border-top: var(--rule) solid var(--accent);
  border-left: var(--rule) solid var(--accent);
}

.frame::after {
  bottom: 0;
  right: 0;
  border-bottom: var(--rule) solid var(--accent);
  border-right: var(--rule) solid var(--accent);
}

.flow-tight > * + * { margin-top: var(--space-xs); }

.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.nowrap-mono { white-space: nowrap; }

.scroll-x {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

:target {
  scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  :root {
    --dur-1: 0.001ms;
    --dur-2: 0.001ms;
    --dur-3: 0.001ms;
    --dur-4: 0.001ms;
    --dur-5: 0.001ms;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-nav,
  .cookie-bar,
  .chat-launcher,
  .chat-panel,
  .skip-link {
    display: none !important;
  }
}
