/* =========================================================
   Andover Economics Society — style.css
   PA Blue: #0031A7  |  Abbot Blue: #44B8F3  |  Gold: #6C5E21
   Fonts: Libre Baskerville (serif/Miller stand-in),
          Source Sans 3 (sans/Benton stand-in) — both free on Google Fonts
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0031A7;
  --blue-dark:  #001f6b;
  --blue-light: #44B8F3;
  --gold:       #6C5E21;
  --gold-light: #b8a94a;
  --cream:      #f7f5f0;
  --rule:       #d4cfc5;
  --text:       #1a1a1a;
  --muted:      #5a5a5a;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, sans-serif;

  --max-width: 1100px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Nav ------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; opacity: 0.9; }

.nav-logo span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.15); }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.2s;
}

/* ---- Page hero ------------------------------------------- */
.hero {
  background: var(--blue);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #0a3bbf 100%);
  opacity: 0.7;
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---- Sub-hero (for interior pages) ----------------------- */
.sub-hero {
  background: var(--blue);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--gold);
}
.sub-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.sub-hero .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
.sub-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.sub-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}

/* ---- Page layout ----------------------------------------- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--cream); text-decoration: none; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); text-decoration: none; }
.btn-ghost { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ---- Section headings ------------------------------------ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* ---- Ruled divider --------------------------------------- */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---- Cards ----------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  padding: 1.75rem;
  border-radius: 2px;
  background: #fff;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,49,167,0.08); }
.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.card a.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.card a.card-link:hover { text-decoration: underline; }

/* ---- Stat band ------------------------------------------- */
.stat-band {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 2rem;
}
.stat-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.stat { flex: 1; min-width: 140px; }
.stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---- Board grid ------------------------------------------ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.board-member { text-align: center; }
.board-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--rule);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 700;
  overflow: hidden;
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.board-member h3 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.15rem; }
.board-member .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.board-member .bio { font-size: 0.87rem; color: var(--muted); margin-top: 0.4rem; }

/* ---- Colloquium timeline --------------------------------- */
.event-list { list-style: none; }
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.event-item:last-child { border-bottom: none; }
.event-date {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
  padding-top: 0.15rem;
  line-height: 1.3;
}
.event-date span { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.event-body h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.25rem; }
.event-body p { font-size: 0.9rem; color: var(--muted); }
.event-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}
.tag-speaker { background: #e8edf8; color: var(--blue); }
.tag-meeting { background: #f0ede4; color: var(--gold); }

/* ---- Footer ---------------------------------------------- */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-sub { font-size: 0.82rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; text-align: right; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Utilities ------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }

.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.highlight-bar {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 2rem 0;
}
.highlight-bar p { color: var(--muted); font-style: italic; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--blue-dark); padding: 1rem 1.5rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
  .nav-toggle { display: block; }
  nav { position: relative; }

  .hero { padding: 3.5rem 1.5rem 3rem; }
  .event-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .event-date { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}
