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

:root {
  --carbon: #0E0F10;
  --gunmetal: #1F2327;
  --steel: #5C636A;
  --rule: #C9C3B6;
  --bone: #F2EFE8;
  --paper: #E6E1D6;
  --signal: #FF5B1A;

  --carbon-90: rgba(14, 15, 16, .9);
  --carbon-60: rgba(14, 15, 16, .6);
  --carbon-12: rgba(14, 15, 16, .12);
  --carbon-06: rgba(14, 15, 16, .06);
  --bone-70: rgba(242, 239, 232, .7);
  --bone-50: rgba(242, 239, 232, .5);
  --bone-16: rgba(242, 239, 232, .16);
  --bone-08: rgba(242, 239, 232, .08);
  --signal-deep: #E04A0F;
  --signal-ink: #B83A08;
  --signal-12: rgba(255, 91, 26, .12);
  --signal-24: rgba(255, 91, 26, .24);
  --error: #B3261E;
  --ok: #2F6B3A;

  --fazi-723: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --fazi-ccf: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fazi-cf4: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.6rem, 11vw, 10rem);
  --fs-d1: clamp(2.4rem, 7.2vw, 6.25rem);
  --fs-d2: clamp(2rem, 5.2vw, 4.25rem);
  --fs-d3: clamp(1.6rem, 3.4vw, 2.75rem);
  --fs-d4: clamp(1.3rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-meta: .8125rem;
  --fs-micro: .6875rem;

  --lh-display: .9;
  --lh-tight: 1.15;
  --lh-body: 1.6;
  --track-display: -.01em;
  --track-caps: .14em;
  --track-mono: .04em;
  --measure: 64ch;
  --measure-narrow: 46ch;

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-pad: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --shell: 1240px;
  --shell-wide: 1440px;

  --frame: 10px;
  --strip-h: 40px;
  --header-h: 84px;
  --header-h-condensed: 64px;
  --sticky-top: calc(var(--frame) + var(--strip-h));

  --radius: 0;
  --radius-seal: 50%;
  --rule-w: 1px;
  --rule-heavy: 2px;
  --border: 1px solid var(--carbon);
  --border-soft: 1px solid var(--rule);
  --border-heavy: 2px solid var(--carbon);

  --shadow-press: 0 1px 0 var(--carbon);
  --shadow-lift: 0 4px 0 var(--carbon);
  --shadow-hard: 6px 6px 0 var(--carbon);
  --shadow-panel: 0 18px 40px -18px rgba(14, 15, 16, .45), 0 2px 0 rgba(14, 15, 16, .9);
  --shadow-photo: 0 30px 60px -30px rgba(14, 15, 16, .55);

  --ease-out: cubic-bezier(.2, .9, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(.3, 1.4, .5, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --dur-press: 90ms;
  --dur-fast: 140ms;
  --dur-base: 180ms;
  --dur-panel: 220ms;
  --dur-menu: 260ms;
  --dur-seal: 520ms;
  --stagger: 70ms;

  --z-base: 1;
  --z-sticky: 40;
  --z-header: 60;
  --z-strip: 70;
  --z-frame: 80;
  --z-chat: 90;
  --z-consent: 95;
  --z-skip: 100;

  color-scheme: light;
}

@media (max-width: 1024px) {
  :root { --frame: 6px; --header-h: 76px; }
}
@media (max-width: 600px) {
  :root { --frame: 4px; --header-h: 66px; --header-h-condensed: 58px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding: calc(var(--frame) + var(--strip-h)) var(--frame) var(--frame);
  background: var(--bone);
  background-clip: content-box;
  color: var(--carbon);
  font-family: var(--fazi-ccf);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-feature-settings: "kern", "liga", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
iframe, embed, object { max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
textarea { resize: vertical; }
table { border-collapse: collapse; border-spacing: 0; }
hr { border: 0; border-top: var(--border); margin: 0; }
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--signal);
  transition: color var(--dur-fast) var(--ease-std), text-decoration-color var(--dur-fast) var(--ease-std), text-decoration-thickness var(--dur-fast) var(--ease-std);
}
a:hover { text-decoration-thickness: 2px; color: var(--signal-ink); }
a:active { color: var(--carbon); }

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

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

h1, h2, h3, .d-hero, .d1, .d2, .d3, .d4 {
  font-family: var(--fazi-723);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
  font-kerning: normal;
}
h1 { font-size: var(--fs-d1); }
h2 { font-size: var(--fs-d2); }
h3 { font-size: var(--fs-d3); font-weight: 700; line-height: .95; }
h4 { font-family: var(--fazi-ccf); font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
h5, h6 { font-family: var(--fazi-cf4); font-size: var(--fs-meta); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track-caps); }

.d-hero { font-size: var(--fs-hero); line-height: .86; letter-spacing: -.015em; }
.d1 { font-size: var(--fs-d1); }
.d2 { font-size: var(--fs-d2); }
.d3 { font-size: var(--fs-d3); }
.d4 { font-size: var(--fs-d4); font-weight: 700; line-height: 1; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--carbon);
  text-wrap: pretty;
}
.small { font-size: var(--fs-small); }
.muted { color: var(--steel); }
.mono, code, kbd, samp {
  font-family: var(--fazi-cf4);
  font-size: .92em;
  letter-spacing: var(--track-mono);
  font-variant-numeric: tabular-nums;
}
.meta {
  font-family: var(--fazi-cf4);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--steel);
}
.accent { color: var(--signal); }
.ink { color: var(--carbon); }
strong, b { font-weight: 600; }
p { text-wrap: pretty; }

.hang { text-indent: -.42em; }
.hang-quote { margin-left: -.5ch; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-d3); margin-top: 2em; }
.prose h3 { font-size: var(--fs-d4); margin-top: 1.8em; }
.prose h4 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--signal); }
.prose ol li::marker { font-family: var(--fazi-cf4); font-size: .85em; color: var(--steel); }
.prose a { font-weight: 500; }
.prose blockquote {
  border-left: 3px solid var(--signal);
  padding: .2em 0 .2em 1.1em;
  font-size: var(--fs-lead);
  line-height: 1.45;
}
.prose code { background: var(--paper); padding: .08em .3em; }
.prose hr { margin: 2.4em 0; border-top-color: var(--rule); }
.prose dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .5em 1.5em; }
.prose dt { font-family: var(--fazi-cf4); font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: var(--track-mono); color: var(--steel); padding-top: .2em; }
@media (max-width: 520px) { .prose dl { grid-template-columns: minmax(0, 1fr); } .prose dd { margin-bottom: .6em; } }

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

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--carbon); color: var(--bone); }
.section--gunmetal { background: var(--gunmetal); color: var(--bone); }
.section--dark a, .section--gunmetal a { color: var(--bone); }
.section--dark .muted, .section--gunmetal .muted, .section--dark .meta, .section--gunmetal .meta { color: var(--bone-70); }
.section + .section { border-top: var(--border); }
.section--opener { border-top: var(--border-heavy); }

.rule { border: 0; border-top: var(--border); margin: 0; }
.rule--heavy { border-top: var(--border-heavy); }
.rule--soft { border-top-color: var(--rule); }
.rule--signal { border-top: 2px solid var(--signal); width: 3rem; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-s { --stack: .5rem; }
.stack-l { --stack: 2rem; }
.stack-xl { --stack: 3rem; }

.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 1rem); align-items: center; }
.cluster > * { min-width: 0; }

.grid { display: grid; gap: var(--grid-gap, clamp(1.5rem, 3vw, 2.5rem)); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > * { min-width: 0; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .split, .split--even, .split--rev { grid-template-columns: minmax(0, 1fr); }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.flow-x { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

.media { position: relative; overflow: hidden; background: var(--gunmetal); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  vertical-align: -.2em;
  display: inline-block;
}
.icon--s { width: 1em; height: 1em; }
.icon--l { width: 1.75rem; height: 1.75rem; }

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

.tnum { font-variant-numeric: tabular-nums; }
.upper { text-transform: uppercase; }
.nowrap-s { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: var(--s-3); }
.mt-m { margin-top: var(--s-5); }
.mt-l { margin-top: var(--s-7); }

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-press: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-panel: 0ms;
    --dur-menu: 0ms;
    --dur-seal: 0ms;
    --stagger: 0ms;
  }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  html, body { background: #fff; padding: 0; }
  .frame, .strip, .consent, .chat-launcher, .chat-panel, .nav-toggle { display: none !important; }
  a { text-decoration: underline; }
}
