/* ============================================================
   GRCCON — civic registry theme
   Palette grounded in the ledger/register subject matter:
   aged paper, deep forest ink, bronze seal accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B2A1E;
  --ink-soft: #3D4A3F;
  --paper: #EDE6D6;
  --paper-alt: #E3DAC3;
  --paper-deep: #D9CDAE;
  --bronze: #9C6B1F;
  --bronze-dark: #7A5417;
  --leaf: #3B5D3F;
  --leaf-dark: #2A4530;
  --rule: #C3B896;
  --cream: #FBF7EC;

  --serif: 'Spectral', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}

/* ---------- Header ---------- */

header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.headbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.seal {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.links {
  display: flex;
  gap: 26px;
}

.links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.links a:hover {
  color: var(--leaf);
  border-color: var(--leaf);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-join {
  background: var(--leaf);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--leaf);
  transition: background 0.15s, border-color 0.15s;
}

.btn-join:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.btn-admin {
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-admin:hover {
  border-color: var(--bronze);
  color: var(--bronze-dark);
  background: var(--paper-alt);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--bronze-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '§';
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bronze);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--leaf);
}

.lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 22px 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
}

.btn-primary {
  background: var(--bronze);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--bronze);
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--bronze-dark); }

.btn-ghost {
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  transition: border-color 0.15s;
}

.btn-ghost:hover { border-color: var(--ink); }

.hero-stats {
  border-top: 1px solid var(--rule);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.stat b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.stat span {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-figure {
  position: relative;
  border: 1px solid var(--rule);
  padding: 14px;
  background: var(--paper-alt);
}

.hero-figure::before {
  content: 'Exhibit A — GRCCON relief gathering';
  position: absolute;
  bottom: -26px;
  left: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- About ---------- */

.about {
  padding: 76px 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  max-width: 58ch;
  margin-bottom: 48px;
}

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--bronze-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kicker::before {
  content: '§';
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bronze);
}

.about h2 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.pillar {
  padding: 26px 28px 26px 0;
  border-right: 1px solid var(--rule);
}

.pillar:last-child { border-right: none; }

.pillar b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--leaf-dark);
}

.pillar p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 76px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 20px;
}

.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.gallery-grid a::after {
  content: attr(data-fig);
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-family: var(--serif);
  font-style: italic;
  padding: 3px 9px;
  border: 1px solid var(--rule);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- CTA strip ---------- */

.cta-strip {
  background: var(--leaf-dark);
  color: var(--cream);
  padding: 60px 0;
}

.cta-strip h3 {
  font-size: 26px;
  color: var(--cream);
  font-weight: 600;
}

.cta-strip p {
  font-size: 15px;
  color: #D9E4D3;
  margin: 12px 0 26px;
  max-width: 50ch;
}

.cta-strip .btn-primary {
  border-color: var(--bronze);
}

/* ---------- Footer ---------- */

footer {
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.foot-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.foot-inner .brand-name {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .headbar { flex-wrap: wrap; }
  .links { order: 3; width: 100%; padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 12px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .foot-inner { flex-direction: column; gap: 8px; text-align: center; }
}

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

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}