/* ============================================================
   AAUP-RICE — shared stylesheet (faithful clone baseline)
   Edit colors/spacing here to affect every page at once.
   ============================================================ */

:root {
  --rice-blue: #00205b;      /* Rice navy */
  --rice-blue-light: #1a3a7a;
  --accent: #bc1f44;         /* AAUP logo crimson — sampled exactly from assets/AAUP-logo.png */
  --ink: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --border: #e2e6ee;
  --link: #00449e;
  --max-width: 860px;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-head: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rice-blue);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 3px solid var(--rice-blue);
  background: var(--bg);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-logo img {
  height: 52px;              /* full wordmark, natural width, no crop */
  width: auto;
  display: block;
}
.title-owl {
  height: 0.95em;            /* inline owl, sized to the title text */
  width: auto;
  vertical-align: -0.12em;
  margin: 0 0.18em;
}
.site-title { text-decoration: none; }
.site-title h1 {
  font-family: var(--font-head);
  color: var(--rice-blue);
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}
.site-tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.main-nav {
  background: var(--rice-blue);
}
.main-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}
.main-nav a:hover,
.main-nav a:focus { background: var(--rice-blue-light); }
.main-nav a[aria-current="page"] {
  background: var(--accent);
}

/* ---------- Content ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 60px;
}
/* ---------- Hero text banner (replaces the old image strip) ----------
   The headline is sized in container-query units (cqi) so it scales with
   the content width and ALWAYS stays on one line, phone through desktop. */
.hero-banner {
  container-type: inline-size;   /* establishes the sizing context for cqi */
  margin: 0 0 30px;
}
.hero-title {
  font-family: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;           /* never wrap the key line */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-size: clamp(15px, 5.6vw, 35px);  /* fallback for old browsers */
  font-size: 4.3cqi;                    /* one-line fit vs. content width */
}
.hero-sub {
  font-family: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 9px 0 0;
  font-size: clamp(9px, 3vw, 19px);   /* fallback */
  font-size: 2.35cqi;
}
.hero-title .accent,
.hero-sub .accent { color: var(--accent); }
h2 {
  font-family: var(--font-head);
  color: var(--rice-blue);
  font-size: 1.7rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-top: 0;
}
h3 {
  font-family: var(--font-head);
  color: var(--rice-blue-light);
  font-size: 1.2rem;
}
a { color: var(--link); }
a:hover { color: var(--accent); }

blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  font-size: 1.05rem;
}

.event {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.event .date {
  font-family: var(--font-head);
  font-weight: bold;
  color: var(--accent);
}
.flyer { max-width: 500px; width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }

/* ---------- Leadership ---------- */
.leadership {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 8px 0 24px;
}
.leader {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1 1 340px;
}
.leader img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--rice-blue);
  flex-shrink: 0;
}
.leader .role {
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.leader .name {
  font-family: var(--font-head);
  color: var(--rice-blue);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.leader .name a { text-decoration: none; color: var(--rice-blue); }
.leader .name a:hover { color: var(--accent); }
.leader .contact { margin: 0; font-size: 0.95rem; }

.section-label {
  font-family: var(--font-head);
  color: var(--rice-blue);
  font-weight: bold;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-head);
  margin: 8px 0;
}
.btn:hover { background: #a50d25; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--rice-blue);
  background: var(--bg-alt);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-head);
}
.site-footer a { color: var(--link); }

/* ---------- Responsive ---------- */

/* Tablet (portrait iPad ~768px and down) */
@media (max-width: 820px) {
  .header-inner { padding: 20px 20px 14px; }
  main { padding: 24px 22px 52px; }
  .main-nav a { padding: 13px 15px; }
  /* leadership: allow two-up until it genuinely gets tight */
  .leader { flex: 1 1 300px; }
}

/* Phone (~600px and down) */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 18px 16px 12px;
  }
  .site-title h1 { font-size: 1.5rem; }
  .site-tagline { font-size: 0.9rem; }

  /* nav: even, tappable rows that wrap cleanly and stay centered */
  .main-nav ul { justify-content: center; }
  .main-nav a { padding: 12px 12px; font-size: 0.9rem; }

  main { padding: 20px 16px 44px; }
  h2 { font-size: 1.4rem; }
  blockquote { padding: 14px 16px; margin: 18px 0; }

  /* leadership stacks to one column, headshot + text still side by side */
  .leader { flex: 1 1 100%; }
  .leadership { gap: 18px; }

  .btn { display: block; text-align: center; }
}

/* Very small phones (~380px and down) */
@media (max-width: 380px) {
  .leader { flex-direction: column; text-align: center; align-items: center; gap: 10px; }
  .main-nav a { padding: 11px 9px; font-size: 0.85rem; }
}

/* ============================================================
   Single-page additions (single_web)
   ============================================================ */
section[id] { scroll-margin-top: 14px; }         /* offset for anchor jumps */

.lead {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 26px;
}

/* Highlighted "Next Meeting" card — the one thing that changes */
.meeting-card {
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 4px 0 10px;
}
.meeting-card .when {
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.meeting-card p { margin: 6px 0; }

/* Spacing between the stacked sections */
main > section { margin-bottom: 40px; }
main > section:last-of-type { margin-bottom: 0; }
