:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --ink: #20242a;
  --ink-soft: #4b5560;
  --line: #dad6cc;
  --line-soft: #e7e4db;
  --accent: #566b53;
  --accent-deep: #3e4f3c;
  --accent-soft: #e4e9df;
  --gold: #9c8552;
  --radius: 2px;
  --max: 1160px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Announcement bar */
.announce {
  background: var(--ink);
  color: #f3f2ee;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--gold); font-weight: 600; }

/* Header */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--accent-deep); }

nav.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  nav.main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #2f3d2e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* Hero */
.hero {
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(180deg, transparent, transparent 39px, var(--line-soft) 40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-deep);
}
.hero h1 {
  font-size: 47px;
  max-width: 15ch;
}
.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--surface);
}
.hero-figure img { width: 100%; height: 360px; object-fit: cover; }
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 56px 0 48px; }
}

/* Section scaffolding */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head h2 { font-size: 32px; }

/* Ledger-style module list */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.module {
  background: var(--surface);
  padding: 30px 26px;
}
.module .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.module h3 { font-size: 19px; margin: 12px 0 8px; }
.module p { font-size: 14.5px; margin-bottom: 0; }
.module .icon { width: 26px; height: 26px; color: var(--accent-deep); margin-bottom: 14px; }

@media (max-width: 860px) {
  .modules { grid-template-columns: 1fr; }
}

/* Card grid (values / team) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}
.card .icon { width: 28px; height: 28px; color: var(--accent-deep); margin-bottom: 16px; }
.card h3 { font-size: 18px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.stat { padding: 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .value { font-family: var(--font-display); font-size: 30px; color: var(--accent-deep); }
.stat .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
}

/* Disclaimer note */
.notice {
  display: flex;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 20px 24px;
  align-items: flex-start;
}
.notice .icon { width: 22px; height: 22px; color: var(--accent-deep); flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 0; font-size: 14.5px; color: var(--ink); }

/* Team / people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person { background: var(--surface); border: 1px solid var(--line); }
.person img { width: 100%; height: 230px; object-fit: cover; }
.person-body { padding: 20px; }
.person-body h3 { font-size: 17px; margin-bottom: 2px; }
.person-body .role { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.person-body p { font-size: 14px; margin-bottom: 0; }

@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .icon { width: 22px; height: 22px; color: var(--accent-deep); flex-shrink: 0; }
.info-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-family: var(--font-mono); margin-bottom: 2px; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 16px; height: 16px; margin-top: 3px; }
.field-check label { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
.form-status { font-size: 14px; padding: 10px 0; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--accent-deep); }

/* Content pages (legal) */
.legal { max-width: 74ch; }
.legal h2 { font-size: 24px; margin-top: 2.2em; }
.legal h3 { font-size: 18px; margin-top: 1.6em; }
.legal ul { color: var(--ink-soft); padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.updated-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 30px;
}

/* CTA band */
.cta-band {
  background: var(--accent-deep);
  color: #f3f2ee;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band p { color: #d7ddd3; max-width: 50ch; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); }
.cta-band .btn-primary:hover { background: var(--gold); color: #fff; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #c7cbc6;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3f38;
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #c7cbc6; text-decoration: none; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-size: 19px; }
.footer-grid p { color: #9aa19a; font-size: 14px; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  color: #838a83;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #838a83; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(20, 24, 20, 0.16);
  padding: 22px 24px;
  display: none;
  z-index: 999;
  gap: 16px;
}
.cookie-banner.show { display: flex; flex-direction: column; }
.cookie-banner p { font-size: 13.5px; margin: 0; color: var(--ink-soft); }
.cookie-banner .icon { width: 20px; height: 20px; color: var(--accent-deep); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 46px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero h1 { font-size: 36px; }
.page-hero p { max-width: 60ch; font-size: 16.5px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }

.text-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.text-photo img { width: 100%; height: 340px; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 860px) { .text-photo { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
