/* ============================================================
   UCSB Lambda Chi Alpha — Zeta Eta Zeta
   Design tokens
   ============================================================ */
:root {
  --purple-deep: #3B1F6B;
  --purple-ink: #241145;
  --gold: #C9A544;
  --gold-bright: #E0C670;
  --paper: #F7F5F2;
  --paper-dim: #EFEBE3;
  --ink: #1A1621;
  --stone: #6E6478;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  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: inherit; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--purple-ink);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--purple-ink);
  border-bottom: 1px solid rgba(201, 165, 68, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}

.brand img { height: 40px; width: auto; }

.brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.25;
}
.brand-text strong { display: block; font-size: 16px; color: var(--gold-bright); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.88;
  transition: opacity 0.15s, color 0.15s;
}
.nav a:hover { opacity: 1; color: var(--gold-bright); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--purple-ink);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-outline {
  border-color: rgba(247,245,242,0.4);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--purple-ink) 0%, var(--purple-deep) 62%, #4a2a82 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(201,165,68,0.14), transparent 45%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 14px 0 20px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero p.lead {
  font-size: 17.5px;
  color: rgba(247,245,242,0.86);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border: 1px solid rgba(201,165,68,0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}

.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.hero-figure figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(36,17,69,0.92), transparent);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 30px 18px 14px;
}

/* ---------- Crest divider (signature element) ---------- */
.crest-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 44px;
  max-width: 420px;
}
.crest-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.crest-divider svg { width: 34px; height: 34px; flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 10px 0 16px;
}

.section-head p { color: var(--stone); font-size: 16.5px; }

.section-alt { background: var(--paper-dim); }

.section-dark {
  background: var(--purple-ink);
  color: var(--paper);
}
.section-dark .section-head p { color: rgba(247,245,242,0.72); }
.section-dark .eyebrow { color: var(--gold-bright); }

/* ---------- About / two-col ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--purple-deep);
}

.about-grid p { color: #3a3442; }

.pull-fact {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
}
.pull-fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--purple-deep); }
.pull-fact span { font-size: 13.5px; color: var(--stone); letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Leadership event ---------- */
.event-card {
  background: #fff;
  border: 1px solid rgba(59,31,107,0.1);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: 0 20px 40px -28px rgba(36,17,69,0.25);
}

.event-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--purple-deep);
  border-left: 3px solid var(--gold);
  margin: 26px 0;
  padding-left: 22px;
  line-height: 1.5;
}

.event-card cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--stone);
  margin-top: 8px;
}

.event-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-dim);
  font-size: 14px;
  color: var(--stone);
}
.event-meta strong { color: var(--ink); display: block; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Board grid ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.board-card {
  background: #fff;
  border: 1px solid rgba(59,31,107,0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -22px rgba(36,17,69,0.3);
}

.board-card .role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.board-card h3 { font-size: 1.15rem; color: var(--purple-deep); margin-bottom: 10px; }
.board-card p { font-size: 14.5px; color: var(--stone); margin: 0; }

/* ---------- CTA / recolonization ---------- */
.cta {
  text-align: center;
  padding: 96px 0;
  background: linear-gradient(155deg, var(--purple-deep), var(--purple-ink));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(201,165,68,0.16), transparent 42%);
}
.cta .wrap { position: relative; max-width: 720px; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; margin: 12px 0 18px; }
.cta p { color: rgba(247,245,242,0.82); font-size: 17px; margin-bottom: 32px; }

/* ---------- Portal teaser ---------- */
.portal-strip {
  background: var(--gold);
  color: var(--purple-ink);
}
.portal-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.portal-strip strong { font-family: var(--font-display); font-size: 1.05rem; }
.portal-strip span { font-size: 14px; opacity: 0.85; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--purple-ink);
  color: rgba(247,245,242,0.75);
  padding: 60px 0 30px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,245,242,0.12);
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 16px;
}

.footer-grid a {
  display: block;
  color: rgba(247,245,242,0.75);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--gold-bright); }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 15px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(247,245,242,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-figure { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--purple-ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    border-bottom: 1px solid rgba(201,165,68,0.25);
    gap: 18px;
  }
  .nav.open { display: flex; }
}

@media (max-width: 560px) {
  .board-grid { grid-template-columns: 1fr; }
  .event-card { padding: 28px; }
  .wrap { padding: 0 20px; }
}

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