@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=IBM+Plex+Mono:wght@400;500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --paper: #F6F2EB;
  --paper-2: #ECE5D8;
  --paper-3: #E2D9C9;
  --ink: #16130F;
  --ink-2: #3B352E;
  --ink-3: #5F574D;
  --rule: #D6CDBF;
  --rule-strong: #B9AD9B;
  --accent: #8E2F22;
  --accent-deep: #6E2419;
  --accent-wash: #F1E4DF;
  --on-ink: #F6F2EB;
  --on-ink-2: #CFC6B8;
  --on-ink-3: #9C9285;
  --rule-on-ink: rgba(246, 242, 235, 0.18);
  --error: #8E2F22;
  --ok: #3E5A3A;

  --feko-7e8: "Bodoni Moda", "Bodoni 72", "Didot", "Times New Roman", serif;
  --feko-f69: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --feko-233: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.35rem, 8.2vw, 7.5rem);
  --fs-d1: clamp(2.1rem, 6vw, 5.25rem);
  --fs-h2: clamp(1.85rem, 4.4vw, 3.75rem);
  --fs-h3: clamp(1.4rem, 2.5vw, 2.125rem);
  --fs-h4: clamp(1.15rem, 1.6vw, 1.375rem);
  --fs-lead: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-small: 0.9375rem;
  --fs-meta: 0.75rem;
  --fs-micro: 0.6875rem;

  --lh-tight: 0.98;
  --lh-head: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --track-display: -0.015em;
  --track-head: -0.01em;
  --track-mono: 0.08em;
  --track-caps: 0.14em;

  --base: 8px;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6rem;
  --s-8: 9rem;
  --section-pad: clamp(72px, 10vw, 168px);
  --section-pad-sm: clamp(48px, 6vw, 96px);

  --shell: 1440px;
  --measure: 38rem;
  --measure-wide: 46rem;
  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2.4vw, 40px);
  --rail-w: 0px;
  --header-h: 72px;

  --radius: 0;
  --radius-input: 2px;
  --hair: 1px solid var(--rule);
  --hair-ink: 1px solid var(--ink);

  --shadow-panel: 0 24px 60px -24px rgba(22, 19, 15, 0.38), 0 2px 6px rgba(22, 19, 15, 0.08);

  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 140ms;
  --dur-ui: 180ms;
  --dur-sheet: 420ms;
  --dur-reveal: 900ms;
  --stagger: 120ms;
  --rise: 24px;

  --z-header: 40;
  --z-rail: 50;
  --z-consent: 70;
  --z-chat: 80;
  --z-skip: 100;
}

@media (min-width: 1024px) {
  :root {
    --rail-w: 12rem;
    --header-h: 88px;
  }
}

@media (min-width: 1600px) {
  :root { --rail-w: 13.5rem; }
}

*,
*::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);
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--feko-f69);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  body { padding-right: var(--rail-w); }
}

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; }
a { color: inherit; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }
hr { border: 0; border-top: var(--hair); margin: var(--s-5) 0; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 24px); }

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

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

h1, h2, h3, h4, .display {
  font-family: var(--feko-7e8);
  color: var(--ink);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1, .h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  font-variation-settings: "opsz" 96;
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: var(--track-head);
  font-variation-settings: "opsz" 72;
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.14;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
}

h4, .h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  font-weight: 500;
  font-variation-settings: "opsz" 18;
}

h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 400;
}

p { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
small { font-size: var(--fs-small); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink);
  max-width: var(--measure);
}

.meta,
.eyebrow,
.mono {
  font-family: var(--feko-233);
  font-size: var(--fs-meta);
  line-height: 1.5;
  letter-spacing: var(--track-mono);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75em;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--ink-3);
}

.eyebrow__num { color: var(--accent); }
.eyebrow { position: relative; z-index: 1; }
.eyebrow + .section-title { margin-top: var(--s-3); }

.eyebrow--rule::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-0.3em);
}

.hang { hanging-punctuation: first last; }
.hang-quote { text-indent: -0.42em; }

.num { font-variant-numeric: tabular-nums lining-nums; }
.italic { font-style: italic; }
.ink { color: var(--ink); }
.accent { color: var(--accent); }
.muted { color: var(--ink-3); }

.prose {
  max-width: var(--measure);
  color: var(--ink-2);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.9em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.prose a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-3); font-family: var(--feko-233); font-size: 0.85em; }
.prose blockquote {
  border-left: 1px solid var(--ink);
  padding-left: var(--s-3);
  font-family: var(--feko-7e8);
  font-style: italic;
  font-size: var(--fs-h4);
  line-height: 1.4;
  color: var(--ink);
}
.prose code {
  font-family: var(--feko-233);
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
.prose dl { display: grid; gap: var(--s-2); }
.prose dt { font-family: var(--feko-7e8); font-weight: 500; color: var(--ink); }
.prose dd { margin-top: 0.2em; }

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

.shell--flush-right { padding-right: 0; }

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: var(--section-pad-sm); }
.section--rule { border-top: var(--hair); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink-2); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-ink); }

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

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

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

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

@media (min-width: 900px) {
  .split--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .split--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--gap-wide { column-gap: clamp(40px, 6vw, 112px); }
  .split--top { align-items: start; }
  .split--end { align-items: end; }
  .span-8 { grid-column: span 8; }
  .span-4 { grid-column: span 4; }
  .span-7 { grid-column: span 7; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .start-5 { grid-column-start: 5; }
  .start-9 { grid-column-start: 9; }
}

.stack > * + * { margin-top: var(--stack-gap, var(--s-3)); }
.stack--sm { --stack-gap: var(--s-2); }
.stack--lg { --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; }

.full-bleed {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.rule { border: 0; border-top: var(--hair); margin: 0; }
.rule--ink { border-top-color: var(--ink); }

.baseline-grid {
  background-image: linear-gradient(to bottom, rgba(22, 19, 15, 0.045) 1px, transparent 1px);
  background-size: 100% 24px;
}

.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;
}

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

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

.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

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

.ratio-portrait { aspect-ratio: 2 / 3; }
.ratio-land { aspect-ratio: 3 / 2; }
.ratio-wide { aspect-ratio: 16 / 9; }

[data-depth] { will-change: transform; }

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

pre {
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--feko-233);
  font-size: var(--fs-small);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-depth] {
    transform: none !important;
    will-change: auto;
  }
  :root {
    --dur-reveal: 0ms;
    --stagger: 0ms;
    --rise: 0px;
  }
}

@media print {
  body { padding-right: 0; background: #fff; color: #000; }
  .rail, .nav-toggle, .consent, .chat, .skip-link { display: none !important; }
}
