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

:root {
  --paper: #EFE6D2;
  --paper-deep: #E3D4B4;
  --paper-hi: #F6F0E2;
  --paper-shade: #D8C7A2;
  --ink: #2A2419;
  --ink-deep: #1E1A12;
  --ink-soft: #5E5442;
  --ink-mute: #7A6E58;
  --rule: #C9B892;
  --rule-strong: #A89667;
  --rule-dark: #4A4130;
  --olive: #6B6F4C;
  --olive-deep: #555938;
  --olive-wash: #DCD7BC;
  --ochre: #C39A4E;
  --ochre-wash: #E9D6A8;
  --terracotta: #B56A4B;
  --terracotta-wash: #E8C9B6;
  --accent: #A4461D;
  --accent-deep: #853612;
  --accent-hi: #BE5A2C;
  --accent-wash: #F0D9C6;
  --on-accent: #FBF5EA;
  --on-ink: #EFE6D2;
  --on-ink-soft: #BFB295;
  --error: #9C2F14;
  --error-wash: #F4DDD0;
  --success: #556236;
  --success-wash: #E1E2C6;
  --focus: #A4461D;
  --focus-on-dark: #C9CC9A;

  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", "Playfair Display", Georgia, serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Seravek", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;

  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.92rem);
  --step-0: clamp(1.0625rem, 0.99rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.375rem);
  --step-2: clamp(1.42rem, 1.24rem + 0.8vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.35vw, 2.45rem);
  --step-4: clamp(2rem, 1.55rem + 2.1vw, 3.35rem);
  --step-5: clamp(2.1rem, 1.5rem + 3.2vw, 4.6rem);
  --step-hero: clamp(2.1rem, 7vw + 0.5rem, 6.5rem);

  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --lh-loose: 1.75;
  --track-display: -0.01em;
  --track-tight: -0.022em;
  --track-mono: 0.02em;
  --track-caps: 0.14em;

  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs: 0.75rem;
  --sp-s: 1rem;
  --sp-m: 1.5rem;
  --sp-l: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;
  --sp-4xl: 8rem;
  --flow: 1.1em;

  --gutter: clamp(20px, 4vw, 56px);
  --panel-pad: clamp(64px, 10vh, 128px);
  --section-gap: clamp(3rem, 2rem + 4vw, 6rem);
  --max: 1180px;
  --max-wide: 1400px;
  --measure: 66ch;
  --measure-narrow: 48ch;
  --sidebar-w: clamp(240px, 21vw, 300px);
  --topbar-h: 64px;
  --tap: 48px;
  --tap-min: 44px;

  --radius: 0;
  --radius-input: 2px;
  --hair: 1px;
  --rule-line: 1px solid var(--rule);
  --rule-line-strong: 1px solid var(--rule-strong);
  --shadow-hero: 0 40px 80px -36px rgba(42, 36, 25, 0.42), 0 12px 24px -18px rgba(42, 36, 25, 0.3);
  --shadow-lift: 0 10px 24px -16px rgba(42, 36, 25, 0.38);
  --shadow-panel: 0 24px 60px -28px rgba(30, 26, 18, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-settle: cubic-bezier(0.19, 1, 0.22, 1);
  --dur-fast: 140ms;
  --dur-base: 180ms;
  --dur-mid: 420ms;
  --dur-slow: 900ms;
  --dur-settle: 1600ms;
  --dur-rotate: 2800ms;
  --stagger: 70ms;
  --rise: 18px;

  --z-base: 1;
  --z-sidebar: 40;
  --z-topbar: 45;
  --z-scrim: 50;
  --z-drawer: 60;
  --z-consent: 70;
  --z-chat: 80;
  --z-skip: 100;

  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: 1.5rem;
  hanging-punctuation: first last;
}

@media (max-width: 1023.98px) {
  html {
    scroll-padding-top: calc(var(--topbar-h) + 1rem);
  }
}

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

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

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

img {
  height: auto;
  font-style: italic;
  background: var(--paper-deep);
}

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

button:disabled {
  cursor: not-allowed;
}

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

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

hr {
  border: 0;
  border-top: var(--rule-line);
  margin: var(--sp-xl) 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--ochre-wash);
  color: var(--ink-deep);
}

:focus {
  outline: none;
}

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

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: var(--track-display);
  line-height: var(--lh-snug);
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1,
.h1 {
  font-size: var(--step-5);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
}

h2,
.h2 {
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: var(--track-tight);
}

h3,
.h3 {
  font-size: var(--step-2);
  font-weight: 500;
}

h4,
.h4 {
  font-size: var(--step-1);
  font-weight: 500;
}

h5,
h6,
.h5 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.35;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-hero);
  line-height: 1.02;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: var(--step--1);
}

code,
kbd,
samp,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: var(--track-mono);
  font-variant-numeric: tabular-nums;
}

pre {
  overflow-x: auto;
  max-width: 100%;
  padding: var(--sp-s);
  border: var(--rule-line);
  background: var(--paper-hi);
}

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

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

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

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

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-mono);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: lining-nums tabular-nums;
}

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

.italic {
  font-style: italic;
}

.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: var(--lh-body);
}

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

.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.2em;
}

.prose h3 {
  font-size: var(--step-2);
  margin-top: 1.8em;
}

.prose h4 {
  margin-top: 1.6em;
}

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

.prose a {
  color: var(--accent);
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 1px;
  transition: color var(--dur-base) var(--ease-std), text-decoration-color var(--dur-base) var(--ease-std);
}

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

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

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

.prose li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose blockquote {
  border-left: 2px solid var(--ochre);
  padding: 0.2em 0 0.2em 1.25em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
}

.prose .dropcap::first-letter,
.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
}

.prose table {
  font-size: var(--step--1);
}

.prose img {
  width: 100%;
}

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

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

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

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

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

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--panel-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel--deep,
.section--deep {
  background: var(--paper-deep);
}

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

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

.panel--ink .eyebrow,
.panel--ink .meta,
.panel--ink .lede,
.section--ink .eyebrow,
.section--ink .meta,
.section--ink .lede {
  color: var(--on-ink-soft);
}

.panel--ink :focus-visible,
.section--ink :focus-visible {
  outline-color: var(--focus-on-dark);
}

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

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

.stack-l > * + * {
  margin-top: var(--sp-xl);
}

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

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

.grid {
  display: grid;
  gap: var(--grid-gap, var(--sp-l));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 260px)), 1fr));
}

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

.split {
  display: grid;
  gap: var(--split-gap, clamp(2rem, 1rem + 4vw, 5rem));
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

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

.rule {
  border: 0;
  border-top: var(--rule-line);
  margin: 0;
}

.rule--double {
  border-top: 3px double var(--rule-strong);
}

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

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

.media--landscape {
  aspect-ratio: 3 / 2;
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--wide {
  aspect-ratio: 16 / 9;
}

.caption,
figcaption {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--track-mono);
  color: var(--ink-soft);
  line-height: 1.5;
  padding-top: var(--sp-2xs);
}

.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 {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

.center {
  text-align: center;
}

.nowrap-num {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-mid: 1ms;
    --dur-slow: 1ms;
    --dur-settle: 1ms;
    --stagger: 0ms;
    --rise: 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 {
    background: #fff;
    color: #000;
  }
  a {
    text-decoration: underline;
  }
}
