/* ============================================================
   Sound Housing Cooperative — Design System
   Extracted from the Claude Design source.
   Fonts: Fraunces (display/serif) + Public Sans (body/UI)
   ============================================================ */

:root {
  /* Brand palette */
  --green:        #1E4D3B;  /* primary — deep forest green */
  --green-deep:   #143528;  /* deepest green (CTA band) */
  --green-tint:   #E8EFE9;  /* soft green surface / chips */
  --gold:         #D9A441;  /* primary accent / CTA */
  --gold-soft:    #F3E6D4;  /* soft gold chip background */
  --copper:       #B0722A;  /* secondary accent */
  --brown:        #8C5A20;  /* eyebrow labels */

  /* Neutrals */
  --paper:        #F7F4EF;  /* warm card surface */
  --white:        #FFFFFF;
  --border:       #D8D2C7;  /* hairline borders */
  --ink:          #2A2723;  /* body text + footer bg */
  --muted:        #5B564E;  /* secondary text */
  --hero-sub:     #DCE7E0;  /* text on green */
  --blue:         #33587A;  /* member-login link */
  --footer-text:  #CFCBC4;
  --footer-muted: #8F897F;
  --footer-rule:  #413C36;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad:  26px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: inherit; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  color: var(--brown);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold    { background: var(--gold); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 6px 18px rgba(217,164,65,.4); }

.btn--green   { background: var(--green); color: var(--white); }
.btn--green:hover { background: #163d2f; }

.btn--outline-green {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 11px 22px;
}
.btn--outline-green:hover { background: var(--green); color: var(--white); }

.btn--outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  padding: 11px 24px;
  font-weight: 600;
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: var(--green);
  line-height: 1;
  text-align: left;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 7px;
  text-decoration: none;
  transition: background .15s ease;
}
.nav a:hover { background: var(--green-tint); }
.nav a.is-active { }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.link-login {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  border-radius: 7px;
  text-decoration: none;
}
.link-login:hover { text-decoration: underline; }

.btn-give {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.btn-give:hover { background: var(--green); color: var(--white); }

.btn-join {
  background: var(--green);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.btn-join:hover { background: #163d2f; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav.open { display: block; }
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding: 10px var(--pad) 18px;
  gap: 2px;
}
.mobile-nav a {
  padding: 11px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
}
.mobile-nav a:hover { background: var(--green-tint); }
.mobile-nav__cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { background: var(--green); }
.hero__inner {
  padding: 76px var(--pad) 78px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--white);
  margin: 16px 0 0;
  max-width: 16ch;
}
.hero__lede {
  color: var(--hero-sub);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 22px 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__media { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #2C5A47, #2C5A47 13px, #295441 13px, #295441 26px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.hero__photo span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--hero-sub);
  background: rgba(20,53,40,.75);
  padding: 6px 11px;
  border-radius: 6px;
}
.hero__badge {
  position: absolute;
  left: -20px;
  bottom: 30px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 13px;
}
.hero__badge b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--green);
  line-height: 1;
}
.hero__badge span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  max-width: 14ch;
}

/* ============================================================
   Stats bar
   ============================================================ */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  padding: 30px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  color: var(--green);
  line-height: 1.05;
}
.stat__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 78px var(--pad) 8px; max-width: var(--maxw); margin: 0 auto; }
.section--pad { padding: 72px var(--pad); }
.section--band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--band .container { padding-top: 70px; padding-bottom: 70px; }

.section__head { max-width: 660px; }
.section__head h2 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  color: var(--green);
  margin: 12px 0 0;
}

/* ---------- Feature cards (3-col) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.feature {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 99px;
  background: var(--green);
  color: var(--white);
}
.chip--tint  { background: var(--green-tint); color: var(--green); }
.chip--gold  { background: var(--gold-soft); color: var(--brown); }
.feature h3 {
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  margin: 16px 0 0;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 10px 0 0;
}

/* ---------- Pathway (2-col + steps) ---------- */
.pathway {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}
.pathway__intro h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: var(--green);
  margin: 12px 0 14px;
}
.pathway__intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
}
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}
.step__num {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--green);
  margin: 1px 0 0;
}
.step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 5px 0 0;
}

/* ---------- Tracks (2-col) ---------- */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.track {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 30px;
}
.track--b { border-top-color: var(--copper); }
.track h3 {
  font-weight: 600;
  font-size: 23px;
  color: var(--green);
  margin: 14px 0 0;
}
.track p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 10px 0 0;
}
.callout {
  border-left: 4px solid var(--green);
  background: var(--paper);
  border-radius: 4px;
  padding: 16px 24px;
  box-shadow: 0 1px 3px rgba(42,39,35,.08);
  margin-top: 24px;
}
.callout strong { color: var(--green); }
.callout span { color: var(--ink); }

/* ---------- Events (3-col) ---------- */
.section__head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.section__head-row h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: var(--green);
  margin: 10px 0 0;
}
.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.event__date {
  flex: 0 0 auto;
  text-align: center;
  background: var(--green-tint);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 56px;
}
.event__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--green);
  line-height: 1;
}
.event__mon {
  font-weight: 700;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event h3 {
  font-weight: 600;
  font-size: 17px;
  color: var(--green);
  margin: 0;
}
.event p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 5px 0 0;
}

/* ============================================================
   Closing CTA band
   ============================================================ */
.cta-band { background: var(--green-deep); }
.cta-band__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px var(--pad);
  text-align: center;
}
.cta-band h2 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}
.cta-band p {
  color: var(--hero-sub);
  font-size: 17px;
  line-height: 1.6;
  margin: 14px auto 0;
  max-width: 52ch;
}
.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--footer-text);
}
.footer-inner { padding: 52px var(--pad) 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}
.footer-about {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 44ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-muted);
  margin: 0 0 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--footer-text);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .plain { color: var(--footer-text); }
.footer-legal {
  border-top: 1px solid var(--footer-rule);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--footer-muted);
  line-height: 1.6;
}

/* ============================================================
   Legal / prose pages (privacy policy, etc.)
   ============================================================ */
.legal-hero {
  background: var(--green);
  padding: 56px var(--pad) 46px;
}
.legal-hero .container { max-width: 820px; }
.legal-hero .eyebrow { color: var(--gold); }
.legal-hero h1 {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--white);
  margin: 12px 0 0;
}
.legal-hero p {
  color: var(--hero-sub);
  font-size: 15px;
  margin: 14px 0 0;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px var(--pad) 72px;
}
.legal__note {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 4px;
  padding: 16px 22px;
  margin: 0 0 36px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.legal__note strong { color: var(--brown); }
.legal h2 {
  font-weight: 600;
  font-size: 24px;
  color: var(--green);
  line-height: 1.2;
  margin: 40px 0 0;
}
.legal h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 24px 0 0;
}
.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--green); font-weight: 600; }
.legal a:hover { color: var(--copper); }
.legal .fillin {
  background: var(--green-tint);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  color: var(--green);
}
.legal__updated {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* footer-legal links */
.footer-legal a { color: var(--footer-muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--footer-text); }

/* ============================================================
   Waitlist modal
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 53, 40, .55);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  animation: fadeUp .3s ease both;
}
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal__close:hover { background: var(--green-tint); color: var(--green); }
.modal__title {
  font-weight: 600;
  font-size: 26px;
  color: var(--green);
  margin: 10px 0 0;
}
.modal__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 22px;
}

.wl-field { margin-bottom: 16px; }
.wl-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.wl-field .opt { color: var(--muted); font-weight: 400; }
.wl-field input,
.wl-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wl-field textarea { resize: vertical; min-height: 74px; }
.wl-field input:focus,
.wl-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 77, 59, .12);
}
.wl-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}
.wl-status {
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 0 0;
  min-height: 1px;
}
.wl-status--ok    { color: var(--green); font-weight: 600; }
.wl-status--error { color: #a12b2b; font-weight: 600; }
.wl-privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up--slow { animation: fadeUp .7s ease both; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero h1 { font-size: 44px; }
}

@media (max-width: 900px) {
  .nav, .header-actions .desktop-only { display: none; }
  .nav-toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 460px; }
  .pathway { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .tracks { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  .hero { }
  .hero__inner { padding: 52px var(--pad) 56px; }
  .hero h1 { font-size: 36px; }
  .hero__lede { font-size: 17px; }
  .hero__badge { left: 0; }
  .section, .section--pad { padding-top: 52px; padding-bottom: 52px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section__head h2, .cta-band h2 { font-size: 27px; }
  .pathway__intro h2, .section__head-row h2 { font-size: 26px; }
}
