:root {
  --ink: #241B2E;
  --paper: #F3EEE6;
  --paper-2: #E8DFD1;
  --accent-gold: #D9A441;
  --accent-teal: #3F6B66;
  --line: rgba(36, 27, 46, 0.16);
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --max-width: 1120px;
  --radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  display: block;
}

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

/* --- NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.logo a:hover {
  text-decoration: none;
  color: var(--accent-gold);
}

.navlinks {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.navlinks li a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.7;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s, background 0.2s;
}

.navlinks li a:hover,
.navlinks li a[aria-current="page"] {
  opacity: 1;
  background: rgba(217, 164, 65, 0.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 1.2rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  line-height: 1;
  opacity: 0.7;
}

.nav-toggle:hover {
  opacity: 1;
}

/* --- HOME HERO --- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .hero-ear {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.7;
}

.hero-illustration {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: 900px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.35;
}

/* --- PAGE HERO BAND --- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--paper-2);
}

.page-hero .label {
  margin-bottom: 0.35rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.7;
}

/* --- SECTION --- */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .label {
  display: block;
  margin-bottom: 0.4rem;
}

/* --- CARDS --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 0.5rem;
}

/* --- STATS ROW --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  padding: 1.5rem 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.55;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  background: var(--accent-gold);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--accent-gold);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--ink);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- CTA BAND --- */
.cta {
  text-align: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.cta p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  opacity: 0.7;
}

/* --- CONTENT --- */
.content {
  padding: 2.5rem 0;
}

.content p,
.content ul,
.content ol {
  margin-bottom: 1rem;
}

.content ul,
.content ol {
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.content h2 {
  margin-top: 2rem;
}

.content h3 {
  margin-top: 1.5rem;
  font-weight: 600;
}

.blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blockquote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.blockquote cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  font-style: normal;
}

/* --- GRID-2 --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mission-preview {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.mission-preview p {
  font-size: 1.05rem;
  opacity: 0.7;
}

.mission-preview .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.audience-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.audience-block p {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 0;
}

.audience-block p + p {
  margin-top: 0.75rem;
}

.membership-teaser {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.membership-teaser p {
  opacity: 0.7;
}

/* --- BOARD (used on about.html / legal.html) --- */
.board-list {
  list-style: none;
}

.board-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.board-list li:last-child {
  border-bottom: none;
}

.board-list .name {
  font-family: var(--font-heading);
  font-weight: 600;
}

.board-list .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
}

/* --- CONTACT FORM --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- LEGAL PAGES --- */
.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  padding-left: 1.25rem;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--paper);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  color: var(--paper);
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--paper);
  font-size: 0.78rem;
  opacity: 0.55;
}

.footer-bottom-links a:hover {
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-toggle {
    display: block;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    gap: 0;
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks li a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
