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

:root {
  --paper: #F5EEE2;
  --paper-deep: #EFE5D5;
  --oat: #E7DBC7;
  --clay: #C49A7C;
  --terracotta: #87452A;
  --ink: #2B2420;
  --ink-soft: #3A312B;
  --umber: #62524A;
  --rule: #CDBBA3;
  --rule-dark: #4A3F38;
  --accent: #B5441C;
  --accent-deep: #963714;
  --accent-wash: #F0DCCB;
  --on-accent: #F5EEE2;
  --on-ink: #F5EEE2;
  --on-ink-muted: #CDBBA3;
  --error: #A3321A;
  --success: #4F6B3A;

  --vapi-5fd: "Bodoni Moda", "Didot", "Bodoni 72", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --vapi-f2f: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --vapi-aee: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-micro: 0.75rem;
  --fs-meta: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --fs-h6: 1.0625rem;
  --fs-h5: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  --fs-h4: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h3: clamp(1.625rem, 1.35rem + 1.2vw, 2.375rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.6vw, 3.75rem);
  --fs-h1: clamp(2.4rem, 1.2rem + 6vw, 5.5rem);
  --fs-lockup: clamp(2.4rem, 0.9rem + 7.4vw, 7.5rem);
  --fs-numeral: clamp(4.5rem, 2rem + 11vw, 11rem);
  --fs-phone: clamp(2rem, 0.9rem + 7vw, 5.5rem);

  --lh-tight: 0.96;
  --lh-display: 1.06;
  --lh-heading: 1.16;
  --lh-body: 1.6;
  --lh-meta: 1.45;

  --track-display: -0.018em;
  --track-lockup: -0.03em;
  --track-mono: 0.02em;
  --track-caps: 0.14em;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;
  --s-half: 0.25rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vw, 9rem);
  --section-pad-tight: clamp(2.5rem, 6vw, 5rem);
  --shell-max: 1320px;
  --measure: 66ch;
  --measure-wide: 78ch;
  --measure-narrow: 44ch;

  --header-h: 88px;
  --header-h-condensed: 64px;

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

  --shadow-paper: 0 1px 0 rgba(43, 36, 32, 0.04), 0 18px 40px -24px rgba(43, 36, 32, 0.28);
  --shadow-card: 0 1px 2px rgba(43, 36, 32, 0.06), 0 30px 60px -36px rgba(43, 36, 32, 0.38);
  --shadow-lift: 0 2px 0 rgba(43, 36, 32, 0.08), 0 12px 24px -14px rgba(43, 36, 32, 0.4);
  --shadow-float: 0 4px 10px rgba(43, 36, 32, 0.12), 0 24px 48px -20px rgba(43, 36, 32, 0.45);

  --dur-instant: 90ms;
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 420ms;
  --dur-scene: 900ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-quiet: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);

  --z-base: 1;
  --z-sticky: 20;
  --z-header: 50;
  --z-sheet: 60;
  --z-consent: 70;
  --z-chat: 80;
  --z-skip: 100;

  --consent-offset: 0px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--vapi-f2f);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

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

img, video {
  height: auto;
}

iframe, embed, object {
  max-width: 100%;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: var(--hairline);
  margin: var(--s-4) 0;
}

[hidden] {
  display: none !important;
}

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

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

main:focus {
  outline: none;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--vapi-5fd);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: var(--track-display);
  color: var(--ink);
  text-wrap: balance;
}

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

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

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

h4, .h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  font-variation-settings: "opsz" 24;
}

h5, h6, .h5, .h6 {
  font-family: var(--vapi-f2f);
  font-weight: 600;
  font-size: var(--fs-h5);
  line-height: 1.3;
  letter-spacing: 0;
}

h6, .h6 {
  font-size: var(--fs-h6);
}

em, i {
  font-style: italic;
}

h1 em, h2 em, h3 em, .h1 em, .h2 em, .h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--fs-small);
}

code, kbd, samp, .mono {
  font-family: var(--vapi-aee);
  font-size: 0.92em;
  letter-spacing: var(--track-mono);
  font-feature-settings: "zero" 0, "tnum";
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  text-wrap: pretty;
}

.meta {
  font-family: var(--vapi-aee);
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  letter-spacing: var(--track-mono);
  color: var(--umber);
  font-feature-settings: "tnum";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--vapi-aee);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.muted {
  color: var(--umber);
}

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

.hang {
  text-indent: -0.42em;
}

.prose {
  max-width: var(--measure);
  color: var(--ink);
  text-wrap: pretty;
  hanging-punctuation: first last;
}

.prose > * + * {
  margin-top: var(--s-3);
}

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s-5);
}

.prose h3 {
  font-size: var(--fs-h4);
  margin-top: var(--s-4);
}

.prose h4 {
  font-family: var(--vapi-f2f);
  font-weight: 600;
  font-size: var(--fs-h5);
  letter-spacing: 0;
  margin-top: var(--s-4);
}

.prose h2 + *, .prose h3 + *, .prose h4 + * {
  margin-top: var(--s-2);
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--s-1);
}

.prose ul li::marker {
  color: var(--accent);
}

.prose ol li::marker {
  font-family: var(--vapi-aee);
  font-size: 0.85em;
  color: var(--terracotta);
}

.prose a {
  color: var(--terracotta);
  text-decoration-color: var(--clay);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

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

.prose blockquote {
  border-left: 1px solid var(--accent);
  padding-left: var(--s-3);
  font-family: var(--vapi-5fd);
  font-style: italic;
  font-size: var(--fs-h5);
  line-height: 1.45;
}

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

.prose table {
  display: block;
  overflow-x: auto;
  font-size: var(--fs-small);
}

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

.shell--wide {
  max-width: 1600px;
}

.shell--narrow {
  max-width: 880px;
}

.bleed {
  width: 100%;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: var(--section-pad-tight);
}

.section--oat {
  background: var(--oat);
}

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 {
  color: var(--on-ink);
}

.section--ink .meta, .section--ink .muted {
  color: var(--on-ink-muted);
}

.section--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.section--accent h1, .section--accent h2, .section--accent h3, .section--accent h4 {
  color: var(--on-accent);
}

.section--ruled {
  border-top: var(--hairline);
}

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

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

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

.stack > * + * {
  margin-top: var(--stack-gap, var(--s-3));
}

.stack--tight {
  --stack-gap: var(--s-2);
}

.stack--loose {
  --stack-gap: var(--s-4);
}

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

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

.grid {
  display: grid;
  gap: var(--grid-gap, var(--s-4));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 16rem)), 1fr));
}

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

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.rule {
  display: block;
  height: 1px;
  border: 0;
  background: var(--rule);
  margin: 0;
}

.rule--accent {
  background: var(--accent);
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--oat);
}

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

.frame--mat {
  padding: clamp(0.5rem, 1.2vw, 0.875rem);
  background: var(--clay);
}

.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.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  vertical-align: middle;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

.icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-scene: 0ms;
  }
  html {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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