:root {
  --brand: #8a2a2a;
  --brand-dark: #5e1b1b;
  --brand-light: #f3e7e3;
  --accent: #b8893b;
  --ink: #241c1a;
  --muted: #5e524e;
  --line: #e3d9d3;
  --bg: #ffffff;
  --bg-soft: #f7f2ee;
  --max: 1120px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(60, 30, 25, 0.10);
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: 2.4rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
p { margin: 0 0 1rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-dark); color: #f0e2dd; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #f0e2dd; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--brand);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero img.bg { width: 100%; height: 460px; object-fit: cover; filter: brightness(.55) saturate(.9); }
.hero .hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
}
.hero .container { width: 100%; }
.hero .eyebrow {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 3px; margin-bottom: 16px;
}
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero p.lead { font-size: 1.15rem; max-width: 56ch; color: #f3ece9; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
@media (max-width: 600px) { .hero img.bg { height: 420px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 600; padding: 12px 24px; border-radius: 3px; background: var(--brand); color: #fff; border: 0; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 70ch; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.section-head h2 { margin-top: 0; position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--accent); }
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat .num { font-family: var(--serif); font-size: 2rem; color: var(--brand); font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.card h3 { margin: 6px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: .96rem; }
.card a.more { margin-top: auto; font-weight: 600; }

/* ---------- Article ---------- */
.article { padding: 40px 0 64px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.prose { max-width: 780px; }
.prose img { border-radius: var(--radius); margin: 22px 0; box-shadow: var(--shadow); }
.figure { margin: 24px 0; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; font-style: italic; }
.callout { background: var(--brand-light); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 4px; margin: 24px 0; color: var(--brand-dark); }

.article-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 24px 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline .date { font-family: var(--serif); font-weight: 700; color: var(--brand); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table.data { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--brand); color: #fff; font-family: var(--serif); }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Heroes list ---------- */
.heroes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .heroes { grid-template-columns: 1fr; } }
.hero-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hero-item .star { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.hero-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.hero-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 12px; font-size: .85rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-banner { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 auto 22px; }
.cta-banner .btn { background: #fff; color: var(--brand-dark); }
.cta-banner .btn:hover { background: #f0e2dd; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbbcb6; padding: 48px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 14px; font-size: 1.05rem; }
.site-footer a { color: #cbbcb6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9a8c86; }
