@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=JetBrains+Mono:wght@400;500&family=Public+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #17140F;
  --char: #221E17;
  --char-2: #2A251C;
  --rule: #3A342A;
  --rule-soft: rgba(236, 226, 204, 0.09);
  --sand: #ECE2CC;
  --dust: #B5A98F;
  --dust-2: #8F856E;
  --ochre: #C9A25E;
  --ochre-dim: rgba(201, 162, 94, 0.32);
  --olive: #7A7650;
  --olive-deep: #2B2A1C;
  --terracotta: #B3664A;
  --terracotta-deep: #8E4E37;
  --burnt: #E07B3C;
  --burnt-hot: #EE8C4E;
  --burnt-press: #C9692F;
  --on-burnt: #1A120B;
  --error: #F08A64;
  --ok: #B8B47E;

  --surface-0: var(--ink);
  --surface-1: var(--char);
  --surface-2: var(--char-2);
  --text: var(--sand);
  --text-muted: var(--dust);
  --text-faint: var(--dust-2);
  --accent: var(--burnt);
  --line: var(--rule);

  --jizi-69c: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --jizi-aae: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --jizi-7b7: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-mono-xs: 0.6875rem;
  --fs-mono: 0.78rem;
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.1rem, 7.2vw, 5.6rem);
  --fs-display-xl: clamp(2.4rem, 1.2rem + 7vw, 7.5rem);
  --fs-numeral: clamp(3.5rem, 2rem + 8vw, 9.5rem);

  --lh-tight: 1.02;
  --lh-head: 1.1;
  --lh-body: 1.6;
  --track-display: -0.02em;
  --track-tight: -0.012em;
  --track-mono: 0.08em;
  --track-caps: 0.14em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 0.875rem;
  --space-m: 1.375rem;
  --space-l: 2.125rem;
  --space-xl: 3.25rem;
  --space-2xl: 5rem;
  --section: clamp(4rem, 9vw, 8.5rem);
  --section-tight: clamp(2.75rem, 6vw, 5.25rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --shell: 1360px;
  --measure: 66ch;
  --measure-wide: 78ch;
  --header-h: 4.5rem;
  --header-h-condensed: 3.5rem;

  --radius: 2px;
  --radius-0: 0;
  --hairline: 1px solid var(--rule);
  --hairline-soft: 1px solid var(--rule-soft);
  --hairline-ochre: 1px solid var(--ochre-dim);

  --shadow-1: 0 1px 0 rgba(236, 226, 204, 0.04) inset, 0 10px 24px -14px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 1px 0 rgba(236, 226, 204, 0.05) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 6px 18px -8px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 8px 22px -10px rgba(224, 123, 60, 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.2, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-press: 120ms;
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-header: 280ms;
  --dur-accordion: 320ms;
  --dur-panel: 420ms;
  --dur-settle: 1100ms;
  --stagger: 90ms;
  --rise: 18px;

  --focus-ring: 2px solid var(--burnt);
  --focus-offset: 3px;

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

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  scroll-padding-block-start: calc(var(--header-h) + 1.25rem);
  hanging-punctuation: first last;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--jizi-aae);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

body.is-locked {
  overflow: hidden;
}

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, svg, canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  border-radius: var(--radius-0);
  background-color: var(--char);
}

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;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

hr {
  border: 0;
  border-top: var(--hairline);
  margin: var(--space-xl) 0;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--jizi-69c);
  font-weight: 800;
  color: var(--sand);
  letter-spacing: var(--track-display);
  line-height: var(--lh-head);
  font-optical-sizing: auto;
  text-wrap: balance;
}

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

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

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  font-variation-settings: "opsz" 48;
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 24;
}

.display-xl {
  font-family: var(--jizi-69c);
  font-weight: 800;
  font-size: var(--fs-display-xl);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.italic-hand,
em.hand {
  font-family: var(--jizi-69c);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--sand);
  max-width: 54ch;
}

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

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

.mono,
.eyebrow,
.meta {
  font-family: var(--jizi-7b7);
  font-weight: 400;
  font-feature-settings: "zero" 1;
}

.mono {
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ochre);
  line-height: 1.4;
}

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

.eyebrow--plain::before {
  display: none;
}

.meta {
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}

.numeral {
  font-family: var(--jizi-69c);
  font-weight: 800;
  font-size: var(--fs-numeral);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ochre);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums tabular-nums;
}

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

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

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem);
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.9em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose p,
.prose li {
  color: rgba(236, 226, 204, 0.88);
}

.prose strong {
  color: var(--sand);
  font-weight: 600;
}

.prose a {
  color: var(--sand);
  text-decoration-color: var(--burnt);
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard), text-decoration-color var(--dur-fast) var(--ease-standard);
}

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

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

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.7em;
  height: 1px;
  background: var(--ochre);
}

.prose ol > li::marker {
  font-family: var(--jizi-7b7);
  font-size: 0.85em;
  color: var(--ochre);
}

.prose li + li {
  margin-top: 0.45em;
}

.prose blockquote {
  border-left: 2px solid var(--ochre);
  padding: 0.25em 0 0.25em 1.25em;
  font-family: var(--jizi-69c);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.4;
  color: var(--sand);
}

.prose code,
.prose kbd {
  font-family: var(--jizi-7b7);
  font-size: 0.88em;
  background: var(--char);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 0.08em 0.38em;
}

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

.shell--narrow {
  max-width: calc(980px + var(--gutter) * 2);
}

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

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

.band {
  position: relative;
  width: 100%;
}

.band--char {
  background: var(--char);
}

.band--olive {
  background:
    linear-gradient(180deg, rgba(122, 118, 80, 0.2), rgba(122, 118, 80, 0.1)),
    var(--olive-deep);
}

.band--terracotta {
  background: var(--terracotta);
  color: var(--on-burnt);
}

.band--rule-top {
  border-top: var(--hairline);
}

.band--rule-bottom {
  border-bottom: var(--hairline);
}

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

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

.stack--l {
  --stack-gap: var(--space-l);
}

.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-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 16rem)), 1fr));
}

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

.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6.5rem);
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--rev {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.section-head {
  display: grid;
  gap: var(--space-s);
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.section-head p {
  color: var(--text-muted);
  max-width: 58ch;
}

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

.rule--ochre {
  background: var(--ochre-dim);
}

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

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

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

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

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--burnt);
  color: var(--on-burnt);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

main {
  display: block;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-press: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-header: 0ms;
    --dur-accordion: 0ms;
    --dur-panel: 0ms;
    --dur-settle: 0ms;
    --stagger: 0ms;
    --rise: 0px;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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