@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,500&family=Alegreya+Sans:ital,wght@0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --paper: #F2ECDF;
  --paper-2: #EAE2D0;
  --paper-3: #E1D7C1;
  --ink: #16201A;
  --ink-soft: #3A443C;
  --forest: #1E3A2A;
  --forest-2: #17301F;
  --forest-3: #2A4D38;
  --moss: #5C6A3B;
  --moss-soft: #8A9468;
  --bark: #4B3527;
  --rule: #CDC3AD;
  --rule-dark: rgba(242, 236, 223, 0.18);
  --amber: #C27E26;
  --amber-deep: #9E6418;
  --amber-ink: #7A4B0E;
  --amber-glow: rgba(194, 126, 38, 0.18);
  --danger: #9B2F1E;
  --danger-bg: #F6E2D8;
  --ok: #2F5B3A;
  --on-dark: #F2ECDF;
  --on-dark-soft: rgba(242, 236, 223, 0.72);

  --cali-dbf: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --cali-26b: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --cali-959: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.80rem + 0.20vw, 0.94rem);
  --cali-a72: clamp(1.06rem, 1.00rem + 0.30vw, 1.22rem);
  --cali-f8b: clamp(1.24rem, 1.10rem + 0.60vw, 1.52rem);
  --cali-46c: clamp(1.48rem, 1.24rem + 1.10vw, 2.12rem);
  --cali-0c5: clamp(1.82rem, 1.40rem + 2.00vw, 3.05rem);
  --cali-13f: clamp(2.10rem, 1.45rem + 3.30vw, 4.45rem);
  --cali-9fc: clamp(2.35rem, 1.35rem + 5.40vw, 6.60rem);
  --fs-hero: clamp(2.25rem, 10.5vw, 9.5rem);
  --fs-numeral: clamp(3.2rem, 1.6rem + 9vw, 11rem);

  --lh-tight: 0.96;
  --lh-snug: 1.12;
  --lh-body: 1.58;
  --track-display: -0.022em;
  --track-tight: -0.035em;
  --track-mono: 0.06em;
  --track-caps: 0.14em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1.125rem;
  --space-m: 1.6875rem;
  --space-l: 2.53rem;
  --space-xl: 3.8rem;
  --space-2xl: 5.7rem;
  --space-3xl: 8.55rem;
  --section: clamp(72px, 11vw, 168px);
  --section-tight: clamp(48px, 7vw, 104px);
  --gutter: clamp(20px, 4vw, 56px);
  --shell: 1320px;
  --shell-narrow: 760px;
  --shell-wide: 1560px;
  --measure: 64ch;
  --header-h: 4.75rem;

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

  --shadow-1: 0 1px 0 rgba(22, 32, 26, 0.08), 0 6px 18px -10px rgba(22, 32, 26, 0.28);
  --shadow-2: 0 2px 0 rgba(22, 32, 26, 0.10), 0 22px 44px -22px rgba(22, 32, 26, 0.45);
  --shadow-3: 0 30px 80px -30px rgba(10, 20, 14, 0.6);
  --shadow-press: inset 0 2px 0 rgba(0, 0, 0, 0.18);

  --dur-instant: 90ms;
  --dur-fast: 140ms;
  --dur: 180ms;
  --dur-mid: 320ms;
  --dur-slow: 560ms;
  --dur-scene: 900ms;
  --dur-rotate: 2600ms;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-heavy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-settle: cubic-bezier(0.34, 1.32, 0.64, 1);

  --depth-scale: 1;
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--amber);

  --z-base: 1;
  --z-header: 50;
  --z-nav: 60;
  --z-chat: 70;
  --z-consent: 80;
  --z-skip: 100;

  color-scheme: light;
}

@media (max-width: 767px) {
  :root { --depth-scale: 0.5; --header-h: 4.25rem; }
}

*, *::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) + 1rem);
  overflow-x: clip;
  hanging-punctuation: first last;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--cali-26b);
  font-size: var(--cali-a72);
  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;
}

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

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
img[width][height] { 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; }
textarea { resize: vertical; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--amber);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--amber-ink); text-decoration-thickness: 2px; }
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(--amber);
  outline-offset: 3px;
}

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

h1, h2, h3, h4, .display {
  font-family: var(--cali-dbf);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-display);
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1, .h1 { font-size: var(--cali-9fc); font-weight: 900; line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
h2, .h2 { font-size: var(--cali-13f); font-weight: 900; line-height: 1.0; letter-spacing: var(--track-tight); }
h3, .h3 { font-size: var(--cali-46c); font-weight: 700; }
h4, .h4 { font-size: var(--cali-f8b); font-weight: 700; letter-spacing: -0.01em; }
.h-hero { font-size: var(--fs-hero); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; }
.h-italic, em.display-em { font-style: italic; font-weight: 500; }

p { text-wrap: pretty; }
strong, b { font-weight: 700; }
small { font-size: var(--step--1); }

.lede {
  font-size: var(--cali-f8b);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 46ch;
}

.meta, .eyebrow, .mono {
  font-family: var(--cali-959);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--moss);
  line-height: 1.5;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.75em; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; flex: none; }
.mono-num { font-family: var(--cali-959); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.numeral {
  font-family: var(--cali-dbf);
  font-size: var(--fs-numeral);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.accent { color: var(--amber); }
.on-dark { color: var(--on-dark); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--cali-0c5); margin-top: 1.8em; }
.prose h3 { font-size: var(--cali-46c); margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.55em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--amber); }
.prose ol li::marker { font-family: var(--cali-959); font-size: 0.82em; color: var(--moss); }
.prose a { text-decoration-line: underline; }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.2em 0 0.2em 1.1em;
  font-family: var(--cali-dbf);
  font-style: italic;
  font-weight: 500;
  font-size: var(--cali-f8b);
  line-height: 1.35;
}
.prose code {
  font-family: var(--cali-959);
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
.prose pre { overflow-x: auto; max-width: 100%; background: var(--paper-2); padding: 1rem; }
.prose hr { border: 0; border-top: var(--hair); margin: 2.2em 0; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: calc(var(--shell-narrow) + 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: var(--section-tight); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .meta, .section--dark .eyebrow { color: var(--moss-soft); }
.section--paper2 { background: var(--paper-2); }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-m)); }
.stack > * { min-width: 0; }
.stack--s { --stack-gap: var(--space-s); }
.stack--l { --stack-gap: var(--space-l); }
.stack--xl { --stack-gap: var(--space-xl); }

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

.grid { display: grid; gap: var(--grid-gap, var(--space-l)); }
.grid > * { min-width: 0; }
.grid-2 { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); }
.grid-2 > * { min-width: 0; }
.grid-3 { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); }
.grid-3 > * { min-width: 0; }
.split { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); align-items: start; }
.split > * { min-width: 0; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); }
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rule { border: 0; border-top: var(--hair); margin: 0; width: 100%; }
.rule--ink { border-top: var(--hair-ink); }
.rule--heavy { border-top: var(--heavy); }
.rule--dark { border-top: 1px solid var(--rule-dark); }

.media { position: relative; overflow: hidden; background: var(--paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }

.visually-hidden, .sr-only {
  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: 0.75rem; left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.85rem 1.2rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--cali-959);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--amber); outline-offset: 2px; color: var(--paper); }

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

[data-depth] { will-change: transform; }
.no-motion [data-depth] { transform: none !important; }

@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 { --depth-scale: 0; }
}

@media print {
  .site-header, .nav-overlay, .consent, .chat-launcher, .chat-panel, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
