:root {
  --gold: #f2b705;
  --gold-deep: #c99400;
  --ink: #111111;
  --ink-2: #1c1c1c;
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --tint: #faf6ea;
  --line: #e6e1d3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--gold-deep); }
img { max-width: 100%; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-dark { background: var(--ink); color: #ddd; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--tint); }
.section-gold { background: var(--gold); padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold-deep); margin-bottom: .6em; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.gold { color: var(--gold); }
.muted { color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
  border: 2px solid var(--gold); cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); background: #ffc824; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #333; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 17, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .05em;
  background: var(--gold); color: var(--ink); padding: 8px 10px; border-radius: 8px;
}
.brand-text { color: #fff; font-family: Archivo, sans-serif; font-weight: 700; line-height: 1.1; font-size: 1rem; }
.brand-text small { color: #bbb; font-weight: 500; font-size: .78rem; letter-spacing: .04em; }
.brand-text.light { margin: 0 0 4px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: #eee; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-menu a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(242, 183, 5, .22), transparent 60%),
    linear-gradient(160deg, #111 0%, #1d1a12 100%);
  color: #ddd; padding: clamp(80px, 12vw, 140px) 0 0; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero-inner { max-width: 820px; margin-left: max(16px, (100% - 1120px) / 2); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 640px; color: #ccc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions .btn-outline { color: #fff; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(60px, 9vw, 110px);
  background: rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-stats div { background: #141310; padding: 28px 20px; }
.hero-stats strong { display: block; font-family: Archivo, sans-serif; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.hero-stats strong::after { content: "+"; }
.hero-stats span { font-size: .9rem; color: #aaa; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--ink-2); border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card p { color: #aaa; font-size: .95rem; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(242, 183, 5, .14); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Events */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; text-decoration: none; margin-bottom: 1em; }
.events { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; background: #fff;
  transition: box-shadow .2s;
}
.event:hover { box-shadow: var(--shadow); }
.date { width: 72px; text-align: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 0; }
.date span { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; color: var(--gold); }
.date strong { font-family: Archivo, sans-serif; font-size: 1.8rem; line-height: 1; }
.event h3 { margin-bottom: .25em; }
.event p { margin: 0; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 6px !important; }
.event .btn-outline { color: var(--ink); }

/* Spotlight */
.spotlight { position: relative; margin-top: 32px; max-width: 860px; }
.quote { margin: 0; display: none; animation: fade .5s ease; }
.quote.is-active { display: block; }
.quote blockquote {
  margin: 0 0 28px; font-family: Archivo, sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: var(--ink);
}
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: Archivo, sans-serif; font-weight: 700;
}
.avatar.lg { width: 96px; height: 96px; font-size: 1.4rem; margin: 0 auto 14px; }
.dots { display: flex; gap: 10px; margin-top: 32px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #d6cfbb; cursor: pointer; padding: 0; }
.dots button[aria-selected="true"] { background: var(--gold-deep); width: 32px; border-radius: 6px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Leadership */
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Give */
.give { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.give h2 { margin-bottom: .2em; }
.give p { margin: 0; color: #2a2200; }

/* Form */
.join-form {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.join-form input, .join-form select {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d8d1bd; border-radius: 10px; background: #fff; width: 100%;
}
.join-form input:focus, .join-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.join-form input.invalid { border-color: #c0392b; }
.join-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1e7d3a; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--ink); color: #aaa; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #ddd; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { border-top: 1px solid #2a2a2a; margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* Directory */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-menu a[aria-current="page"] { color: var(--gold); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dir-hero {
  background: linear-gradient(160deg, #111 0%, #1d1a12 100%);
  color: #ccc; padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
}
.dir-title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.dir-hero .lead { margin: 0; }
.sample-banner { background: #fff4cc; border-bottom: 1px solid #f0dc8f; color: #4a3b00; font-size: .92rem; padding: 12px 0; }
.dir-section { padding-top: 40px; }
.dir-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters {
  position: sticky; top: 92px; display: grid; gap: 16px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.filters label { display: grid; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.filters input[type="search"], .filters select {
  font: inherit; font-weight: 400; font-size: .95rem; padding: 10px 12px;
  border: 1px solid #d8d1bd; border-radius: 10px; background: #fff; width: 100%;
}
.filters input:focus, .filters select:focus, .sort select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 8px; }
.filters .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; }
.filters .check input { accent-color: var(--gold-deep); width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--gold-deep); cursor: pointer; justify-self: start; }
.link-btn:hover { text-decoration: underline; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.results-bar p { margin: 0; color: var(--muted); font-size: .95rem; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.sort select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #d8d1bd; border-radius: 10px; background: #fff; }
.members { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.member {
  width: 100%; height: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  font: inherit; color: inherit; cursor: pointer; transition: box-shadow .2s, border-color .2s;
}
.member:hover, .member:focus-visible { box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.member-info { display: grid; gap: 2px; min-width: 0; }
.member-info strong { font-family: Archivo, sans-serif; font-size: 1.08rem; color: var(--ink); }
.member-role { font-size: .93rem; }
.member-meta { font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: rgba(242, 183, 5, .18); color: #5c4700; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag-dark { background: var(--ink); color: var(--gold); }
.profile-actions { flex-wrap: wrap; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.profile-dialog {
  width: min(520px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.profile-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.profile-dialog .close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--tint); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.profile-head .avatar.lg { margin: 0; flex: none; width: 80px; height: 80px; }
.profile-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.profile-head p { margin: 0; color: var(--muted); }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.profile-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 600; }
.profile-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.profile-actions { display: flex; gap: 10px; margin: 20px 0 8px; }
.profile-actions .btn-outline { color: var(--ink); }

/* Member pages (sign in, sign up, profile, approvals) */
.auth-page { background: var(--tint); padding: clamp(40px, 7vw, 80px) 16px; min-height: calc(100vh - 72px); }
.auth-card {
  width: min(460px, 100%); margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow);
}
.auth-card.wide { width: min(720px, 100%); }
.auth-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.auth-card .join-form { background: none; border: 0; padding: 0; margin-top: 24px; }
.auth-links { margin: 24px 0 8px; }
.hint { margin: -8px 0 0; }
[data-profile-fields] { display: grid; gap: 16px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices legend { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; width: 100%; }
.choices .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; }
.choices .check input { width: 16px; height: 16px; accent-color: var(--gold-deep); }
.notice { background: #fff4cc; border: 1px solid #f0dc8f; color: #4a3b00; border-radius: 10px; padding: 14px 16px; margin: 16px 0 0; }
.done { margin-top: 24px; }
.done h2 { font-size: 1.5rem; }
.pending-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.pending-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.pending-item > div:first-child { display: grid; gap: 2px; }
.pending-actions { display: flex; gap: 8px; }
.pending-actions .btn-outline { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.join-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d8d1bd; border-radius: 10px;
  background: #fff; width: 100%; resize: vertical; min-height: 120px;
}
.join-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.char-count { justify-self: end; font-weight: 400; font-size: .8rem; color: var(--muted); }
.resume-box { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.resume-box h2 { font-size: 1.4rem; }
.resume-current {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.resume-current p { margin: 0; overflow-wrap: anywhere; }
.resume-actions { display: flex; gap: 8px; }
.resume-actions .btn-outline { color: var(--ink); }
.resume-form { display: grid; gap: 12px; }
.resume-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.resume-form input[type="file"] { font: inherit; font-size: .9rem; max-width: 100%; }
.resume-form .btn { justify-self: start; }
.profile-bio { white-space: pre-line; margin: 0 0 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle span { margin: 0; transform-origin: center; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #111; padding: 8px 16px 20px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #222; }
  .nav-menu .btn { margin-top: 16px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .two-col { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto 1fr; padding: 18px; gap: 16px; }
  .event .btn { grid-column: 1 / -1; justify-self: start; }
  .row { grid-template-columns: 1fr; }
  .dir-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .members { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong { font-size: 1.9rem; }
  .hero-stats div { padding: 22px 16px; }
}
