@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --cream: #F3ECE1;
  --paper: #EAE1D2;
  --ink: #241712;
  --oxblood: #6B1F26;
  --oxblood-deep: #45141A;
  --brown-dark: #241812;
  --gold: #B08D57;
  --surface: var(--cream);
  --surface-raised: #FAF5EC;
  --surface-recessed: var(--paper);
  --surface-dark-raised: #32231C;
  --text: var(--ink);
  --text-muted: #695A4E;
  --text-on-dark: var(--cream);
  --text-muted-on-dark: #D0BFA9;
  --line: rgba(128, 95, 52, .3);
  --line-strong: rgba(128, 95, 52, .58);
  --line-on-dark: rgba(176, 141, 87, .36);
  --error: #982D29;
  --error-surface: #F5E1D9;
  --success: #344D38;
  --success-surface: #E3E9DC;
  --focus: var(--gold);
  --fabu-408: 'Shippori Mincho', 'Yu Mincho', serif;
  --fabu-f13: 'Zen Kaku Gothic New', 'Yu Gothic', sans-serif;
  --fabu-c19: 'JetBrains Mono', 'Zen Kaku Gothic New', monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-display: 800;
  --text-xs: clamp(.75rem, .72rem + .13vw, .8125rem);
  --text-sm: clamp(.875rem, .83rem + .18vw, 1rem);
  --text-base: clamp(1rem, .96rem + .17vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  --text-2xl: clamp(1.65rem, 1.25rem + 1.6vw, 2.75rem);
  --text-3xl: clamp(2rem, 1.25rem + 3vw, 4rem);
  --text-4xl: clamp(2.3rem, 1.24rem + 4.2vw, 5.6rem);
  --text-hero: clamp(2.35rem, 1rem + 5.4vw, 6.5rem);
  --leading-body: 1.95;
  --leading-heading: 1.45;
  --leading-tight: 1.2;
  --tracking-body: .025em;
  --tracking-heading: -.035em;
  --tracking-label: .12em;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(72px, 10vw, 140px);
  --section-padding: var(--section-space);
  --shell-width: 1280px;
  --content-max: var(--shell-width);
  --measure: 44rem;
  --measure-narrow: 34rem;
  --measure-wide: 58rem;
  --grid-gap: clamp(1.25rem, 3vw, 3rem);
  --radius: 3px;
  --radius-small: 2px;
  --border-width: 1px;
  --shadow-small: 0 3px 0 rgba(36, 23, 18, .1);
  --shadow-panel: 0 16px 36px rgba(20, 12, 8, .23);
  --shadow-dialog: 0 20px 70px rgba(20, 12, 8, .4);
  --duration-instant: 80ms;
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 680ms;
  --duration-scene: 900ms;
  --ease-standard: cubic-bezier(.2, .65, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-scene: cubic-bezier(.22, .61, .36, 1);
  --header-offset: 7.5rem;
  --tap-size: 44px;
  --cookie-offset: 0px;
  --z-base: 0;
  --z-sticky: 15;
  --z-header: 30;
  --z-nav: 35;
  --z-chat: 55;
  --z-consent: 70;
  --z-dialog: 80;
  --z-skip: 100;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-padding-top: var(--header-offset); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 0; background: var(--cream); color: var(--ink); font-family: var(--fabu-f13); font-size: var(--text-base); font-weight: 400; line-height: var(--leading-body); letter-spacing: var(--tracking-body); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
body.is-dialog-open { overflow: hidden; }
main, header, footer, section, article, aside, nav, form, fieldset, figure, div { min-width: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fabu-408); font-weight: 600; line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); overflow-wrap: anywhere; line-break: strict; word-break: normal; text-wrap: pretty; }
h1 { font-size: var(--text-4xl); font-weight: var(--weight-display); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5, h6 { font-size: var(--text-lg); }
p { line-break: strict; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; overflow-wrap: anywhere; }
button, input, textarea, select { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
button, input, select, textarea { max-width: 100%; }
button { cursor: pointer; }
button, select { text-transform: none; }
button, [type='button'], [type='submit'], [type='reset'] { -webkit-appearance: button; }
button { white-space: normal; }
input, textarea, select { font-size: max(1rem, 1em); }
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; max-width: 100%; }
label { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
img, picture, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
svg { max-width: 100%; vertical-align: middle; }
iframe { border: 0; }
img { font-size: var(--text-sm); color: inherit; }
ul, ol { margin: 0; padding-inline-start: 1.5em; }
li + li { margin-block-start: .4em; }
nav ul, nav ol { padding: 0; list-style: none; }
nav li + li { margin: 0; }
hr { margin: var(--space-8) 0; border: 0; border-top: 1px solid var(--line); }
strong, b { font-weight: 700; }
em { font-style: normal; text-emphasis: filled dot; text-emphasis-position: over right; }
small { font-size: var(--text-sm); }
address { font-style: normal; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; }
sub, sup { position: relative; font-size: .7em; line-height: 0; vertical-align: baseline; }
sup { top: -.45em; }
sub { bottom: -.2em; }
code, kbd, samp, pre { font-family: var(--fabu-c19); font-size: .9em; }
code { padding: .12em .28em; background: var(--paper); border-radius: var(--radius-small); overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; padding: var(--space-6); background: var(--paper); }
pre code { padding: 0; }
table { border-collapse: collapse; width: 100%; text-align: start; }
th { font-weight: 700; }
caption { text-align: start; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
[tabindex='-1']:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--cream); background: var(--oxblood); }
:target { scroll-margin-top: calc(var(--header-offset) + 1.5rem); }

.shell, .container { width: min(var(--shell-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.shell-wide { width: calc(100% - var(--gutter) * 2); max-width: 1600px; margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section + .section { border-top: 1px solid var(--line); }
.section--compact { padding-block: calc(var(--section-space) * .65); }
.section--dark, .theme-dark { color: var(--cream); background: var(--brown-dark); --text: var(--cream); --text-muted: var(--text-muted-on-dark); --line: var(--line-on-dark); color-scheme: dark; }
.section--oxblood { color: var(--cream); background: var(--oxblood-deep); --text-muted: var(--text-muted-on-dark); --line: var(--line-on-dark); }
.section--paper { background: var(--paper); }
.measure { max-width: var(--measure); }
.measure-narrow { max-width: var(--measure-narrow); }
.measure-wide { max-width: var(--measure-wide); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-6)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-4)); }
.cluster > *, .stack > *, .grid > *, .split > * { min-width: 0; max-width: 100%; }
.grid { display: grid; gap: var(--grid-gap); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--grid-gap); align-items: start; }
.flow > * + * { margin-block-start: var(--flow-space, 1.4rem); }
.rule-top { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.rule-bottom { border-bottom: 1px solid var(--line); padding-bottom: var(--space-6); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--fabu-c19); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.text-display { font-family: var(--fabu-408); }
.text-small { font-size: var(--text-sm); }
.text-center { text-align: center; }
.eyebrow { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); line-height: 1.7; }
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; flex: 0 0 1.5rem; background: var(--gold); }
.lead { max-width: var(--measure); font-size: var(--text-lg); line-height: 1.9; }
.display-title { font-size: var(--text-hero); font-weight: 800; line-height: 1.4; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { margin-top: 2.2em; font-size: var(--text-2xl); }
.prose h3 { margin-top: 1.9em; font-size: var(--text-xl); }
.prose h2 + *, .prose h3 + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--oxblood); text-decoration: underline; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { padding-inline-start: .25em; }
.prose li::marker { color: var(--oxblood); }
.prose blockquote { margin-block: 2rem; padding: 1rem 0 1rem 1.5rem; border-inline-start: 2px solid var(--gold); font-family: var(--fabu-408); font-size: var(--text-xl); }
.prose figcaption { margin-top: .75rem; font-size: var(--text-sm); color: var(--text-muted); }
.prose dt { font-weight: 700; margin-top: 1.2em; }
.prose dd { margin-top: .4em; }
.theme-dark .prose a, .section--dark .prose a { color: var(--cream); text-decoration-color: var(--gold); }
.sr-only, .visually-hidden { 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; white-space: nowrap !important; border: 0 !important; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }

@media (min-width: 1600px) {
  :root { --header-offset: 8rem; }
  .shell-wide { max-width: 1680px; }
}
@media (max-width: 1023px) {
  .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 699px) {
  :root { --header-offset: 6rem; --grid-gap: 1.5rem; }
  .grid--two, .grid--three, .grid--four, .split { grid-template-columns: minmax(0, 1fr); }
  .prose blockquote { padding-inline-start: 1rem; }
  .display-title { letter-spacing: -.045em; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-instant: 0ms; --duration-fast: 0ms; --duration-normal: 0ms; --duration-slow: 0ms; --duration-scene: 0ms; }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  :root { --line: CanvasText; --line-on-dark: CanvasText; --focus: Highlight; }
  a { text-decoration: underline; }
  :focus-visible { outline: 3px solid Highlight; }
}
@media print {
  :root { --surface: white; --cream: white; --paper: white; --text: black; --ink: black; }
  body { background: white; color: black; font-size: 11pt; }
  .shell, .container, .shell-wide { width: 100%; max-width: none; }
  .section { padding-block: 1.5rem; }
  h1, h2, h3 { break-after: avoid; }
  img, figure, blockquote, table { break-inside: avoid; }
  .theme-dark, .section--dark, .section--oxblood { color: black; background: white; }
  .no-print { display: none !important; }
}
