/* Shared styles for every inner page. Colors are tokens; dark mode redefines the same tokens. */
:root {
  --bg: #F4F8F5; --surface: #FFFFFF; --ink: #0F2219; --muted: #4F665A; --line: #D5E2DA;
  --pine: #0F3D2E; --on-pine: #E9F4EE; --berry: #B3213B; --gold: #B8801A; --tint: #E6F0EA;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1612; --surface: #11231C; --ink: #E7F1EB; --muted: #9AB1A5; --line: #23392F;
    --pine: #0E3A2B; --on-pine: #E9F4EE; --berry: #E6566F; --gold: #E8B95A; --tint: #183226; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1612; --surface: #11231C; --ink: #E7F1EB; --muted: #9AB1A5; --line: #23392F;
  --pine: #0E3A2B; --on-pine: #E9F4EE; --berry: #E6566F; --gold: #E8B95A; --tint: #183226; color-scheme: dark;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Figtree, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; }
h1, h2, h3, .font-display { text-wrap: balance; font-optical-sizing: auto; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: 76rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: 48rem; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }

/* Components */
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 9999px; padding: .25rem .75rem; font-size: 13px; font-weight: 500; transition: .15s; cursor: pointer; }
.chip:hover { border-color: var(--berry); color: var(--berry); }
.chip-on, .chip-on:hover { border-color: var(--berry); background: var(--berry); color: #fff; }
.card { border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); }
.icon-box { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: .75rem; background: var(--tint); color: var(--pine); }
.icon-box svg { width: 1.25rem; height: 1.25rem; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--berry); }
.h2 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.875rem; line-height: 1.15; letter-spacing: -.02em; }
.h1 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 2.25rem; line-height: 1.08; letter-spacing: -.02em; }
@media (min-width: 640px) { .h2 { font-size: 2.25rem; } .h1 { font-size: 3rem; } }
.link-arrow { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 600; color: var(--pine); }
.link-arrow:hover { color: var(--berry); }
.link-arrow svg { width: 1rem; height: 1rem; }
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; transition: .15s; cursor: pointer; }
.btn { background: var(--berry); color: #fff; padding: .75rem 1.25rem; border: 0; }
.btn:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .625rem 1rem; }
.btn-ghost:hover { border-color: var(--berry); color: var(--berry); }
.btn svg, .btn-ghost svg { width: 1rem; height: 1rem; }
.ad { display: flex; min-height: 90px; align-items: center; justify-content: center; border-radius: .75rem; border: 1px dashed var(--line); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pic { display: block; width: 100%; object-fit: cover; }
.input { display: block; width: 100%; height: 2.75rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 .75rem; font-size: 15px; font-family: inherit; }
textarea.input { height: auto; padding: .75rem; line-height: 1.5; }
.input:focus { border-color: var(--berry); outline: none; }
.label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .375rem; }
.badge { display: inline-flex; align-items: center; border-radius: 9999px; background: var(--tint); color: var(--pine); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; }
.badge-berry { background: var(--berry); color: #fff; }
.note { display: flex; gap: .625rem; align-items: flex-start; border: 1px solid var(--line); background: var(--tint); border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; color: var(--muted); }
.note svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: .15rem; color: var(--berry); }

/* Long-form text */
.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.01em; margin-top: 2.4rem; }
.prose h3 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--berry); padding-left: 1rem; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.2rem; }
.prose strong { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


.navigation.pagination { margin-top: 2rem; }
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.navigation.pagination .page-numbers:hover {
  border-color: var(--berry);
  color: var(--berry);
}
.navigation.pagination .page-numbers.current {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}
.navigation.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}