*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory-cream); color: var(--charcoal);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--forest-green); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease); }
a:hover { color: var(--forest-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--forest-green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blush-pink); color: var(--charcoal); }
:root { accent-color: var(--forest-green); caret-color: var(--forest-green); scrollbar-color: var(--line-strong) transparent; }
[hidden] { display: none !important; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.heading { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-heading); line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
.subhead { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-subhead); line-height: 1.25; text-wrap: balance; }
.display em, .heading em, .subhead em { font-style: italic; color: var(--rose-deep); }
.title { font-size: var(--fs-title); font-weight: 600; line-height: 1.4; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.label { font-size: var(--fs-label); font-weight: 500; line-height: 1.3; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--champagne-deep); }
.price { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; line-height: 1.3; letter-spacing: 0.01em; }
.muted { color: var(--taupe); }
.rose { color: var(--rose-deep); }
.lead { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.65; color: var(--taupe); max-width: 46ch; text-wrap: pretty; }
.prose { max-width: 65ch; text-wrap: pretty; }
.prose p + p { margin-top: var(--space-4); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin: var(--space-12) 0 var(--space-3); }
.prose ul { padding-left: 1.2em; margin: var(--space-3) 0; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--dusty-rose); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section-pad); }
.section--tight { padding-top: 0; }
.section--blush { background: var(--blush-soft); }
.section--paper { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: clamp(24px, 3vw, 48px); }
.section-head > div { display: grid; gap: var(--space-2); max-width: 40rem; }
.section-head > a { white-space: nowrap; flex: none; }
.stack > * + * { margin-top: var(--space-4); }
.page-head { padding-block: var(--space-6) clamp(24px, 3vw, 40px); display: grid; gap: var(--space-3); }
.page-head .intro { color: var(--taupe); max-width: 58ch; text-wrap: pretty; }
.hairline { height: 1px; background: var(--linen); border: 0; margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--forest-green); color: var(--ivory-cream); padding: 12px 16px; border-radius: var(--rounded-sm); }
.skip-link:focus { top: 8px; color: var(--ivory-cream); }

.divider-leaf { display: flex; justify-content: center; color: var(--dusty-rose); padding-block: var(--space-8); }

/* ---------- Motion ---------- */
.htmx-added { opacity: 0; }
.htmx-settling .htmx-added, .htmx-added.htmx-settling { opacity: 1; transition: opacity var(--dur-base) var(--ease); }
.fade-in { animation: fade-up var(--dur-reveal) var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Scroll reveal is CSS-only and opt-in (.reveal). Browsers without view timelines simply show the content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
