@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #F5F8F7;
  --sheet: #FFFFFF;
  --ink: #14201F;
  --ink-2: #1D2C2A;
  --ink-3: #273836;
  --graphite: #36433F;
  --graphite-soft: #6B7977;
  --rule: #C8D4D2;
  --rule-strong: #A6B7B4;
  --rule-soft: rgba(166, 183, 180, 0.38);
  --rule-on-ink: rgba(233, 241, 239, 0.16);
  --frost: #E6EEEC;
  --frost-deep: #D9E4E1;
  --accent: #08665E;
  --accent-deep: #07615A;
  --accent-bright: #5FC3B4;
  --accent-thin: #BFE5DD;
  --on-ink: #EEF4F2;
  --on-ink-muted: #A9BCB8;
  --error: #A1352C;
  --error-thin: #F7E4E1;
  --ok: #0B7A70;

  --zoti-ae8: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --zoti-3d5: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --zoti-d12: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --line: 28px;
  --half: 14px;
  --s-1: 7px;
  --s-2: 14px;
  --s-3: 21px;
  --s-4: 28px;
  --s-5: 42px;
  --s-6: 56px;
  --s-7: 84px;
  --s-8: 112px;
  --section: clamp(56px, 9vw, 112px);
  --gutter: clamp(16px, 4vw, 40px);
  --shell: 1200px;
  --shell-wide: 1440px;
  --measure: 66ch;
  --measure-narrow: 52ch;

  --fs-hero: clamp(2.4rem, 8vw, 6.2rem);
  --fs-h1: clamp(2.2rem, 6.2vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 4.6vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 2.3vw, 1.9rem);
  --fs-h4: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-numeral: clamp(2.6rem, 4.4vw, 3.8rem);
  --fs-lead: clamp(1.2rem, 1.9vw, 1.45rem);
  --fs-body: 1.125rem;
  --fs-small: 0.97rem;
  --fs-meta: 0.78rem;
  --fs-label: 1.02rem;

  --lh-tight: 0.94;
  --lh-head: 1.04;
  --lh-body: 1.5556;

  --radius: 0;
  --radius-input: 2px;
  --hair: 1px solid var(--rule);
  --hair-strong: 1px solid var(--rule-strong);
  --shadow-sheet: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(20, 32, 31, 0.35);
  --shadow-lift: 0 1px 0 var(--rule), 0 24px 48px -26px rgba(20, 32, 31, 0.42);
  --shadow-print: 3px 3px 0 var(--ink);
  --focus-ring: 0 0 0 2px var(--sheet), 0 0 0 4px var(--accent);

  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 320ms;
  --dur-4: 600ms;
  --dur-5: 900ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.2, 1);
  --ease-edge: cubic-bezier(0.16, 1, 0.3, 1);
  --marquee-dur: 46s;
  --marquee-dur-slow: 70s;
  --edge-shift: 48px;

  --z-base: 1;
  --z-header: 50;
  --z-mega: 60;
  --z-drawer: 70;
  --z-consent: 80;
  --z-chat: 90;
  --z-skip: 100;

  --header-h: 76px;
  --consent-h: 0px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.13 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ledger-lines: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule-soft) calc(var(--line) - 1px), var(--rule-soft) var(--line));

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--zoti-3d5);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  hanging-punctuation: first last;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 180px 180px;
  opacity: 0.04;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, table, fieldset, 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; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
fieldset { border: 0; padding: 0; min-width: 0; }
iframe { max-width: 100%; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

h1, h2, h3, h4 {
  font-family: var(--zoti-ae8);
  font-weight: 800;
  line-height: var(--lh-head);
  letter-spacing: 0.002em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  font-feature-settings: "kern", "lnum";
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.004em; }
h2 { font-size: var(--fs-h2); line-height: 0.98; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.006em; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0.02em; }
h5, h6 { font-family: var(--zoti-3d5); font-size: var(--fs-label); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-weight: 600; }

p, li, dd { text-wrap: pretty; overflow-wrap: break-word; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color var(--dur-2) var(--ease-out), text-decoration-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; text-decoration-color: currentColor; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }
small { font-size: var(--fs-small); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; }
code, kbd, samp, .mono {
  font-family: var(--zoti-d12);
  font-size: 0.84em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
  letter-spacing: 0;
}
hr { border: 0; border-top: var(--hair); margin: var(--s-5) 0; }
::selection { background: var(--accent-thin); color: var(--ink); }

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

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

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 10px;
  z-index: var(--z-skip);
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--zoti-ae8);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); color: var(--on-ink); outline: 2px solid var(--accent-bright); outline-offset: 2px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.shell--narrow { max-width: calc(820px + var(--gutter) * 2); }
.shell--wide { max-width: calc(var(--shell-wide) + var(--gutter) * 2); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--rule { border-top: var(--hair); }
.section--frost { background-color: var(--frost); }
.section--sheet { background-color: var(--sheet); }
.section--ink { background-color: var(--ink); color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-ink); }
.section--ink a { color: var(--accent-bright); text-decoration-color: color-mix(in srgb, var(--accent-bright) 50%, transparent); }
.section--ink a:hover { color: var(--on-ink); }

.ledger { background-image: var(--ledger-lines); background-position: 0 0; }
.ledger--offset { background-position: 0 calc(var(--line) / 2); }
.section--ink.ledger { --rule-soft: rgba(233, 241, 239, 0.07); }

.margin-rule { position: relative; }
@media (min-width: 1100px) {
  .margin-rule::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--gutter) * 0.45);
    width: 1px;
    background: var(--accent);
    opacity: 0.55;
    pointer-events: none;
  }
  .margin-rule::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--gutter) * 0.45 + 4px);
    width: 1px;
    background: var(--accent);
    opacity: 0.22;
    pointer-events: none;
  }
}

.stack > * + * { margin-top: var(--stack-gap, var(--s-3)); }
.stack--tight { --stack-gap: var(--s-2); }
.stack--loose { --stack-gap: var(--s-5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, var(--s-2)); align-items: center; }
.cluster > * { min-width: 0; }

.grid { display: grid; gap: var(--grid-gap, var(--s-5)); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.split { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--center { align-items: center; }
}

.label {
  display: inline-block;
  font-family: var(--zoti-3d5);
  font-size: var(--fs-label);
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.09em;
  line-height: 1.3;
  color: var(--graphite);
  text-decoration: underline;
  text-decoration-color: var(--accent-thin);
  text-decoration-thickness: 0.42em;
  text-underline-offset: -0.18em;
  text-decoration-skip-ink: none;
}
.section--ink .label { color: var(--on-ink-muted); text-decoration-color: rgba(95, 195, 180, 0.35); }
.label--accent { color: var(--accent-deep); }

.kicker {
  font-family: var(--zoti-d12);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  font-variant-numeric: tabular-nums lining-nums;
}

.display { font-family: var(--zoti-ae8); font-weight: 800; font-size: var(--fs-hero); line-height: 0.92; letter-spacing: -0.006em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); max-width: var(--measure-narrow); }
.muted { color: var(--graphite); }
.num, .numeral {
  font-family: var(--zoti-ae8);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
  line-height: 0.9;
}
.small-caps { font-variant-caps: all-small-caps; letter-spacing: 0.06em; }
.measure { max-width: var(--measure); }
.center { text-align: center; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-1); }
.prose li::marker { color: var(--accent); font-family: var(--zoti-d12); font-size: 0.85em; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: var(--s-1) 0 var(--s-1) var(--s-4);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.prose a { word-break: break-word; }
.prose table { width: 100%; }
.prose .label + h2, .prose .label + h3 { margin-top: var(--s-1); }

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

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 1ms; --dur-2: 1ms; --dur-3: 1ms; --dur-4: 1ms; --dur-5: 1ms; --edge-shift: 0px; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, .utility, .consent, .chat, .chat-launcher, .chat-panel, .masthead__actions, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
