@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #17221C;
  --forest: #203B2C;
  --moss: #536449;
  --cream: #F2EBDD;
  --paper: #FBF8F0;
  --bark: #594638;
  --signal: #C58A3A;
  --white: #fffdf7;
  --line: rgba(23,34,28,.18);
  --line-dark: rgba(242,235,221,.22);
  --muted: #59645B;
  --label: var(--bark);
  --accent-text: #81531B;
  --danger: #963f31;
  --success: #416b4c;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --shell: 18rem;
  --gutter: clamp(1rem, 3.8vw, 5.5rem);
  --reading: 44rem;
  --panel-min: min(100svh, 58rem);
  --s1: 1rem;
  --s2: 2rem;
  --s3: 4rem;
  --s4: 7rem;
  --text-xs: clamp(.68rem, .66rem + .08vw, .75rem);
  --text-sm: clamp(.78rem, .74rem + .12vw, .88rem);
  --text-md: clamp(.94rem, .9rem + .17vw, 1.08rem);
  --text-lg: clamp(1.2rem, 1.04rem + .55vw, 1.65rem);
  --text-xl: clamp(1.8rem, 1.38rem + 1.55vw, 3rem);
  --text-display: clamp(2.65rem, 1.85rem + 3.2vw, 6.2rem);
  --text-question: clamp(2rem, 1.5rem + 2.2vw, 4.3rem);
  --measure: 68ch;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-sharp: cubic-bezier(.7,0,.3,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);
  --t-fast: 140ms;
  --t-base: 190ms;
  --t-slow: 520ms;
  --focus: 0 0 0 3px var(--signal), 0 0 0 5px var(--ink);
  --shadow: 0 1.25rem 3rem rgba(23,34,28,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: var(--text-md); line-height: 1.65; text-rendering: optimizeLegibility; }
body.drawer-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, summary, select, input[type='checkbox'], input[type='radio'] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .12em; }
button { cursor: pointer; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-question); }
.section-label + h2, .section-label + h3, .meta + h2, .meta + h3 { margin-block-start: 1rem; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p, li { max-width: var(--measure); }
ul, ol { padding-left: 1.4em; }
strong { font-weight: 700; }
small { font-size: var(--text-sm); }
.mono, code, kbd, pre { font-family: var(--mono); }
code, kbd { font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s3) 0; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; transform: translateY(-160%); background: var(--signal); color: var(--ink); padding: .7rem 1rem; font-family: var(--mono); font-size: var(--text-sm); transition: transform var(--t-base) var(--ease); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: currentColor; }
.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; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.site-shell { min-height: 100svh; }
.site-main { min-width: 0; margin-left: var(--shell); overflow: clip; }
.content-gutter { padding-inline: var(--gutter); }
.measure { width: min(100%, var(--reading)); }
.flow > * + * { margin-top: var(--s2); }
.flow-tight > * + * { margin-top: .75rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; min-width: 0; }
.grid { display: grid; min-width: 0; }
.grid > * { min-width: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); }
.full-bleed { width: 100%; }
.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }
.dark-surface { background: var(--forest); color: var(--cream); }
.dark-surface h1, .dark-surface h2, .dark-surface h3, .dark-surface h4 { color: var(--cream); }
.dark-surface a { color: var(--cream); }
.meta { color: var(--moss); font: 500 var(--text-xs)/1.35 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.dark-surface .meta { color: #c4cdbb; }
.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.55; }
.prose { width: min(100%, var(--reading)); }
.prose p + p, .prose ul + p, .prose p + ul, .prose h2 + p, .prose h3 + p { margin-top: 1.2rem; }
.prose h2 { margin-top: 4rem; }
.prose h3 { margin-top: 2.75rem; }
.prose ul, .prose ol { margin-top: 1rem; }
.prose a { color: var(--bark); }
.prose blockquote { border-left: 2px solid var(--signal); padding: .25rem 0 .25rem 1.25rem; font-family: var(--display); font-size: var(--text-lg); }

@media (max-width: 70rem) { :root { --shell: 15.5rem; } }
@media (max-width: 52rem) {
  :root { --shell: 0px; --gutter: clamp(1rem, 4vw, 2rem); }
  .site-main { margin-left: 0; }
  .split { grid-template-columns: 1fr; gap: var(--s3); }
}
@media (max-width: 24rem) {
  :root { --text-display: clamp(2.35rem, 11.3vw, 3.2rem); --text-question: clamp(1.85rem, 9vw, 2.6rem); }
  .cluster { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-depth] { transform: none !important; }
}


:root {
  --grid-unit: 1rem;
  --border-thin: 1px solid var(--line);
  --border-dark: 1px solid var(--line-dark);
  --content-max: 120rem;
  --panel-pad: clamp(2.5rem, 8vw, 9rem);
  --nav-width: var(--shell);
  --measure-narrow: 34rem;
  --measure-wide: 78rem;
  --tracking-tight: -.035em;
  --tracking-label: .105em;
  --z-header: 80;
  --z-overlay: 100;
  --z-dialog: 115;
  --z-notice: 120;
}

main:focus { outline: none; }
section, article, aside, header, footer, nav, form, figure { min-width: 0; }
button:disabled, [aria-disabled='true'] { cursor: not-allowed; opacity: .55; }
address { font-style: normal; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }

.site-main > section { position: relative; min-width: 0; }
.panel { min-height: var(--panel-min); padding: var(--panel-pad) var(--gutter); }
.panel--compact { min-height: auto; padding-block: clamp(3.5rem, 8vw, 7rem); }
.panel-inner { width: min(100%, var(--content-max)); margin-inline: auto; }
.panel-header { display: grid; gap: 1.25rem; max-width: var(--measure-wide); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.panel-header p { max-width: var(--measure-narrow); }
.content-stack { display: grid; gap: clamp(3rem, 7vw, 7rem); }
.content-stack > * { min-width: 0; }
.two-up { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 9rem); align-items: start; }
.three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.aside-measure { width: min(100%, var(--measure-narrow)); }
.reading-measure { width: min(100%, var(--reading)); }
.wide-measure { width: min(100%, var(--measure-wide)); }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { max-width: 66ch; }
.prose li + li { margin-top: .55rem; }
.prose table { margin-top: 1.5rem; }
.prose .meta { margin-bottom: .85rem; }
.prose .section-label, .prose .legal-label { margin-bottom: .75rem; }
.prose .section-label + h2, .prose .legal-label + h2 { margin-top: 0; }
.prose strong { color: var(--bark); }
.prose em { font-family: var(--display); font-size: 1.08em; }
.display-lockup { max-width: 13ch; font-size: var(--text-display); letter-spacing: var(--tracking-tight); }
.display-lockup span { color: var(--signal); }
.title-block { display: grid; gap: 1rem; }
.title-block h1 { max-width: 15ch; }
.title-block .lead { max-width: 42rem; }

.surface-paper { background: var(--paper); }
.surface-cream { background: var(--cream); }
.surface-forest { background: var(--forest); color: var(--cream); }
.surface-bark { background: var(--bark); color: var(--cream); }
.surface-forest h1, .surface-forest h2, .surface-forest h3, .surface-forest h4,
.surface-bark h1, .surface-bark h2, .surface-bark h3, .surface-bark h4 { color: var(--cream); }
.surface-forest .prose a, .surface-bark .prose a { color: var(--accent-text); }
.surface-forest .section-label, .surface-bark .section-label { color: #c4cdbb; }

:where(.dark-surface, .surface-forest, .surface-bark, .page-hero-dark, .hero-panel, .gifts-panel, .quantity-panel, .quantity-card, .at-a-glance, .contact-card, .confirmation, .recovery, .site-footer, .cookie-banner, .chat-head, .note-entry:nth-child(3n), .method-step:nth-child(even), .process-step:nth-child(odd)) {
  --moss: #d7daca;
  --muted: #d7daca;
  --label: #F2EBDD;
  --accent-text: #EDB96F;
  --danger: #ffbcaa;
}
:where(.surface-paper, .surface-cream, .contact-form, .formula-box, .chat-first, .chat-form, .field input, .field select, .field textarea) {
  --moss: #536449;
  --muted: #59645B;
  --label: #594638;
  --accent-text: #81531B;
  --danger: #963f31;
}
.quantity-card .quantity-help, .quantity-card .quantity-assumptions, .quantity-card .quantity-disclaimer { color: var(--cream); }
.dark-surface .meta, .surface-forest .meta, .surface-bark .meta,
.dark-surface .section-label, .surface-forest .section-label, .surface-bark .section-label,
.dark-surface .coordinate, .surface-forest .coordinate, .surface-bark .coordinate { color: #d7daca; }
.surface-forest .prose a, .surface-bark .prose a, .dark-surface a:not(.button):not(.text-button) { color: #EDB96F; }

.image-frame { position: relative; overflow: hidden; background: var(--bark); }
.image-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.image-frame--portrait img { aspect-ratio: 4 / 5; }
.image-frame--square img { aspect-ratio: 1; }
.image-frame figcaption { padding: .7rem .8rem; color: var(--cream); background: var(--bark); font: 400 var(--text-xs)/1.4 var(--mono); }
.image-frame[data-depth] img { will-change: transform; }
.image-credit { color: var(--moss); font: 400 var(--text-xs)/1.4 var(--mono); }

.data-line { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: var(--border-thin); font-size: var(--text-sm); }
.data-line dt { color: var(--moss); font-family: var(--mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; }
.data-line dd { margin: 0; text-align: right; }
.marked-list { display: grid; gap: .8rem; list-style: none; padding: 0; }
.marked-list li { position: relative; padding-left: 1.5rem; }
.marked-list li::before { content: ''; position: absolute; top: .78em; left: 0; width: .55rem; height: 1px; background: var(--signal); }

[hidden] { display: none !important; }
.js [data-reveal] { will-change: transform, opacity; }
.no-js .js-only { display: none !important; }
.js-only { display: block; }

@media (max-width: 64rem) {
  .two-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2.5rem; }
  .three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .panel { min-height: auto; }
  .two-up, .three-up { grid-template-columns: 1fr; }
  .panel-header { margin-bottom: 3rem; }
  .data-line { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .data-line dd { text-align: left; }
}
@media (max-width: 22rem) {
  .panel { padding-inline: 1rem; }
  .display-lockup { font-size: clamp(2.3rem, 11vw, 3rem); }
}
