:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #1c2622;
  --muted: #5d6963;
  --line: #e2ddd1;
  --river: #0f4c4a;
  --river-2: #16706c;
  --gold: #b9822b;
  --gold-soft: #f3e6cc;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--river-2); text-underline-offset: 3px; }
a:hover { color: var(--river); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* notice bar */
.notice {
  background: var(--ink); color: #e9efe9; font-size: .82rem; text-align: center; padding: 6px 16px;
}

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; }
.brand small { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--river); display: grid; place-items: center; color: var(--gold-soft); font-size: 1rem; flex: none; }
.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current="page"] { background: var(--gold-soft); color: var(--river); font-weight: 600; }

@media (max-width: 900px) {
  .nav-btn { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
}

/* hero */
.hero { background: linear-gradient(180deg, #0f4c4a 0%, #16706c 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero p.lead { font-size: 1.12rem; color: #d9ebe6; max-width: 56ch; }
.hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--gold-soft); margin-bottom: .6rem; }
.hero-art { border-radius: var(--radius); overflow: hidden; }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 28px; padding-bottom: 28px; }
.page-hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; margin: 0; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; } }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37022; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--muted); }

/* layout */
main { padding-bottom: 48px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 12px; }
.content article { min-width: 0; }
.content aside { padding-top: 2.4rem; }
@media (max-width: 900px) { .content { grid-template-columns: 1fr; gap: 0; } .content aside { padding-top: 1rem; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h3 { margin-top: 0; }
.aside-card { position: sticky; top: 84px; }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--muted); font-weight: 600; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1rem 0 1.4rem; }
.grid-cards a.card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.grid-cards a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.grid-cards .card p { color: var(--muted); font-size: .94rem; margin: 0; }
.grid-cards .card h3 { margin-bottom: .3rem; }

.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 18px; margin: 1.2rem 0; font-size: .97rem; }
.callout p:last-child { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf8f3; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

ol.steps { padding-left: 1.2rem; }
ol.steps li { margin-bottom: .5rem; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p { margin-bottom: 14px; }

.sources { font-size: .88rem; color: var(--muted); }
.sources ul { padding-left: 1.1rem; }
.updated { font-size: .85rem; color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: #c9d3cd; font-size: .9rem; padding: 36px 0 28px; }
.site-footer a { color: #e9efe9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 600; margin: 0 0 .6rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-soft); font-weight: 700; margin-bottom: 10px; }
.legal { border-top: 1px solid #36423d; margin-top: 24px; padding-top: 16px; font-size: .82rem; color: #9aa7a0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
