:root {
  color-scheme: light;
  font-family: Georgia, 'Times New Roman', serif;
  color: #17372b;
  background: #f8f5ed;
  --emerald: #075f40;
  --emerald-dark: #063c2d;
  --gold: #8a6819;
  --line: #d8d1c2;
  --surface: #fffdf8;
  --muted: #53645d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--emerald); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--emerald-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid #bd922d; outline-offset: 4px; border-radius: .2rem; }

.public-page {
  width: min(100% - 2rem, 820px);
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 1.5rem 0 2rem;
}

header, footer, .cta, header nav { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
header { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
header nav { width: 100%; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .92rem; }
header .brand { margin-right: auto; font-weight: 850; letter-spacing: .12em; text-decoration: none; }

article > section, article > aside { margin-top: clamp(2.3rem, 6vw, 4.3rem); }
h1 { max-width: 16ch; margin: .2rem 0 1.15rem; font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 4vw, 2.05rem); line-height: 1.2; }
h3 { margin: 0 0 .45rem; font-size: 1.08rem; line-height: 1.3; }
p, li { font-size: 1.08rem; line-height: 1.72; }
p { margin: .65rem 0; }
li + li { margin-top: .45rem; }
.lead { max-width: 67ch; color: var(--muted); font-size: clamp(1.15rem, 2.8vw, 1.36rem); line-height: 1.62; }
.eyebrow { margin-bottom: .45rem; color: var(--gold); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; }
.breadcrumbs [aria-current='page'] { overflow: hidden; max-width: 42ch; text-overflow: ellipsis; white-space: nowrap; }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.card-list article, .faq-list details, .related, .cta-panel { border: 1px solid var(--line); border-radius: .8rem; background: #f7f8f3; background: color-mix(in srgb, var(--surface) 92%, var(--emerald) 8%); }
.card-list article { padding: 1rem 1.05rem; }
.card-list p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.faq-list { display: grid; gap: .65rem; }
.faq-list details { padding: .9rem 1rem; }
.faq-list summary { cursor: pointer; color: var(--emerald-dark); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 750; }
.faq-list p { margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.related { padding: 1.15rem 1.25rem; }
.related h2 { font-size: 1.2rem; }
.related ul { margin-bottom: 0; }

.cta-panel { padding: clamp(1.2rem, 4vw, 2rem); background: var(--surface); }
.cta-panel h2 { margin-bottom: .4rem; }
.cta-panel p { color: var(--muted); }
.cta { margin-top: 1.25rem; }
.cta a { border: 1px solid var(--emerald); border-radius: .45rem; padding: .68rem .95rem; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 750; text-decoration: none; }
.cta a:first-child { background: var(--emerald); color: #fffdf8; }

footer { border-top: 1px solid var(--line); padding-top: 1rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }
footer span { margin-right: auto; color: var(--muted); }
footer [data-analytics-preferences] { border: 0; padding: .25rem 0; background: transparent; color: var(--emerald); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.analytics-consent { position: fixed; z-index: 9999; inset: auto 1rem max(1rem, env(safe-area-inset-bottom, 0px)); width: min(42rem, calc(100% - 2rem)); margin-inline: auto; padding: 1.15rem 1.25rem; border: 1px solid #c9c0ab; border-radius: .8rem; background: #fffdf8; color: #17372b; box-shadow: 0 12px 36px rgb(12 35 26 / 24%); font-family: ui-sans-serif, system-ui, sans-serif; }
.analytics-consent h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.analytics-consent p { margin: 0; color: #40564b; font-size: .9rem; line-height: 1.5; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.analytics-consent__button { min-height: 2.65rem; padding: .55rem .9rem; border: 1px solid #075f40; border-radius: .45rem; font: inherit; font-weight: 700; cursor: pointer; }
.analytics-consent__button.primary { background: #075f40; color: #fffdf8; }
.analytics-consent__button.secondary { background: transparent; color: #075f40; }
.analytics-consent__privacy { display: inline-block; margin-top: .7rem; font-size: .84rem; }
.analytics-consent :focus-visible, footer [data-analytics-preferences]:focus-visible { outline: 3px solid #bd922d; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 600px) {
  .public-page { width: min(100% - 1.35rem, 820px); gap: 2rem; padding-top: 1rem; }
  header .brand { flex-basis: 100%; }
  .card-list { grid-template-columns: 1fr; }
  .analytics-consent { inset-inline: .55rem; width: auto; padding: 1rem; }
  h1 { font-size: clamp(2rem, 12vw, 3.1rem); }
}
