/* ==========================================================================
   Democratic Party of Evanston
   Navy #16325c / blue #2575ad, sampled from the DPOE logo.
   Flat surfaces, rules instead of drop shadows, square corners.
   ========================================================================== */

:root {
  --navy:       #16325c;
  --navy-deep:  #0f2445;
  --blue:       #2575ad;
  --blue-dark:  #1b5c8a;
  --red:        #b4232f;

  --bg:         #ffffff;
  --bg-alt:     #f2f5f9;
  --border:     #ccd5e4;
  --border-soft:#e2e8f1;
  --text:       #1a2434;
  --text-muted: #4d5a70;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  1.625rem;
  --step-3:  2.125rem;
  --step-4:  2.75rem;

  --gutter: 20px;
  --maxw: 1100px;
  --maxw-prose: 70ch;
  --r: 6px;
  --r-md: 10px;
  --r-sm: 4px;
}

@media (min-width: 640px) {
  :root { --step-3: 2.5rem; --step-4: 3.25rem; }
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; color: var(--navy); }
h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -.015em; }
h2 { font-size: var(--step-3); letter-spacing: -.01em; }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

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

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- layout --- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--maxw-prose); }

.section { padding-block: clamp(36px, 5vw, 60px); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #e4ecf6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: #bcd8f0; }
.section--navy a:not(.btn):hover { color: #fff; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section--alt + .section, .section + .section--alt,
.section--navy + .section, .section + .section--navy { border-top: 0; }

.section > .wrap > h2:first-child,
.section > .wrap > .section-intro:first-child > h2 { margin-top: 0; }
.section-intro { margin-bottom: clamp(20px, 3vw, 32px); max-width: var(--maxw-prose); }
.section-intro p { color: var(--text-muted); margin-bottom: 0; }
.section--navy .section-intro p { color: #c3d4e8; }

.kicker {
  font-size: var(--step-0); font-weight: 400;
  color: var(--text-muted); margin: 0 0 .4em;
}
.section--navy .kicker { color: #c3d4e8; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 620px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack > * + * { margin-top: clamp(30px, 4vw, 44px); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-block;
  padding: .7em 1.3em;
  border: 2px solid transparent;
  border-radius: var(--r);
  font: inherit; font-weight: 700; font-size: var(--step--1);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--donate { background: var(--red); color: #fff; border-color: var(--red); }
.btn--donate:hover { background: #8d1a24; border-color: #8d1a24; color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: #e4ecf6; border-color: #e4ecf6; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--lg { font-size: var(--step-0); padding: .8em 1.6em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* Phones: buttons in a row stack full width instead of wrapping into ragged lines. */
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn { display: block; width: 100%; }
  p > .btn:only-child { display: block; width: 100%; }
}

/* ----------------------------------------------------------- announce --- */

.announce { background: var(--navy-deep); color: #fff; font-size: var(--step--1); }
.announce .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 12px; padding-block: 9px; text-align: center;
}
.announce strong { font-weight: 700; }
.announce a { color: #fff; font-weight: 700; }

/* ------------------------------------------------------------- header --- */

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 3px solid var(--navy); }
.header-bar { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 10px; }

.brand { display: flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.brand img { width: clamp(168px, 22vw, 220px); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r);
  padding: .5em .8em; font: inherit; font-size: var(--step--1); font-weight: 700;
  color: var(--navy); cursor: pointer;
}
.nav-toggle-bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5em .7em;
  color: var(--navy); font-weight: 600; font-size: var(--step--1);
  text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--border); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue-dark); }

.header-cta { display: flex; gap: 8px; flex-shrink: 0; }

.header-social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: var(--r); color: var(--navy);
}
.header-social a:hover { background: var(--bg-alt); border-color: var(--border); color: var(--blue-dark); }
.header-social svg { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  .nav-toggle { order: 3; }
  .header-cta { order: 2; }
  .site-nav {
    order: 4; flex-basis: 100%; display: none;
    border-top: 1px solid var(--border-soft); padding-block: 8px; margin-top: 6px;
  }
  .site-nav.is-open { display: block; }
  /* :not(.header-social) so the icon row stays a row inside the drawer. */
  .site-nav ul:not(.header-social) { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul:not(.header-social) a { padding: .75em .2em; font-size: var(--step-0); border-bottom: 1px solid var(--border-soft); }
  .site-nav .header-social { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
  .site-nav .header-social a { width: 42px; height: 42px; border-color: var(--border); }
  .site-nav .header-social svg { width: 20px; height: 20px; }
  .header-bar { flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 10px; }
  .site-nav .header-social { padding-left: 10px; border-left: 1px solid var(--border-soft); }
}
/* Between 1024 and 1200 the bar is tight; the icons stand down first. */
@media (min-width: 1024px) and (max-width: 1199px) { .site-nav .header-social { display: none; } }
@media (max-width: 520px) { .header-cta .btn--ghost { display: none; } }
/* Phones: logo, Donate and Menu share one row. */
@media (max-width: 520px) {
  .header-bar { gap: 10px; min-height: 64px; }
  .brand img { width: clamp(120px, 38vw, 160px); }
  .header-cta .btn, .nav-toggle { padding: .5em .75em; }
}
@media (max-width: 374px) {
  .site-header .wrap { padding-inline: 14px; }
  .brand img { width: 124px; }
}
/* Smallest phones: the menu button drops its label and keeps the icon. Its name stays "Menu" for screen readers. */
@media (max-width: 359px) {
  .nav-toggle { font-size: 0; gap: 0; padding: 0; width: 44px; height: 40px; justify-content: center; }
}

/* --------------------------------------------------------------- hero --- */

.hero { background: var(--navy); color: #dbe6f3; padding-block: clamp(40px, 6vw, 72px); }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p.hero-body { font-size: var(--step-1); line-height: 1.5; color: #dbe6f3; max-width: 60ch; }
/* Beside the portrait, the body grows so the text block matches the photo's height. */
@media (min-width: 720px) { .hero p.hero-body { font-size: clamp(1.25rem, 2.9vw, 2rem); line-height: 1.45; max-width: none; } }
.hero .btn-row { margin-top: 1.8em; }

/* Hero body beside the committeeperson's portrait. */
.hero-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 1.6em; }
@media (min-width: 720px) { .hero-grid { grid-template-columns: clamp(200px, 24vw, 280px) minmax(0, 1fr); } }
.hero-portrait { margin: 0; max-width: 280px; }
.hero-portrait img { border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.2); }
.hero-attrib { font-size: var(--step--1); font-weight: 700; line-height: 1.35; color: #fff; margin-top: 10px; }
.hero-disclaimer { font-size: var(--step--1); color: #a9bdd6; margin-top: 1em; }
/* Phones: the hero stacks, so center it. */
@media (max-width: 719px) {
  .hero { text-align: center; }
  .hero p.hero-body { margin-inline: auto; }
  .hero-portrait { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  /* One slogan per line, smaller so the stack stays short. */
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.12; }
  .hero-title span { display: block; }
}

/* -------------------------------------------------------------- cards --- */

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-muted); }
.card .btn-row, .card > .btn { margin-top: auto; padding-top: 1.2em; }

a.card { text-decoration: none; color: inherit; transition: border-color .12s linear, background-color .12s linear; }
a.card:hover { border-color: var(--blue); background: var(--bg-alt); color: inherit; }
a.card h3 { text-decoration: underline; text-decoration-color: var(--border); }
a.card:hover h3 { text-decoration-color: var(--blue); }

/* ------------------------------------------------------------- events --- */

.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.event-list > li { border-bottom: 1px solid var(--border); }

.event {
  display: grid; gap: 2px 24px; grid-template-columns: 1fr;
  padding: 16px 4px; text-decoration: none; color: inherit;
}
.event:hover { background: var(--bg-alt); color: inherit; border-radius: var(--r-sm); }
.event:hover .event-title { text-decoration: underline; }
.event-date { font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.event-title { font-weight: 600; margin: 0; }
.event-meta { font-size: var(--step--1); color: var(--text-muted); }
.event-go { display: none; font-weight: 700; color: var(--blue-dark); }

@media (min-width: 720px) {
  .event { grid-template-columns: 13.5em 1fr 5em; align-items: baseline; }
  .event-date { white-space: nowrap; }
  .event-date  { grid-column: 1; grid-row: 1 / span 2; }
  .event-title { grid-column: 2; grid-row: 1; }
  .event-meta  { grid-column: 2; grid-row: 2; }
  .event-go    { grid-column: 3; grid-row: 1 / span 2; display: block; text-align: right; }
}

/* --------------------------------------------------------------- dates -- */

.dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.dates li {
  display: grid; gap: 2px 20px; grid-template-columns: 1fr;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dates .d-when { font-weight: 700; color: var(--navy); }
.dates .d-what { color: var(--text-muted); }
@media (min-width: 560px) { .dates li { grid-template-columns: 190px 1fr; } }

.section--navy .dates, .section--navy .dates li { border-color: rgba(255,255,255,.22); }
.section--navy .dates .d-when { color: #fff; }
.section--navy .dates .d-what { color: #c3d4e8; }

/* -------------------------------------------------------------- people -- */

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.people li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.people .p-name { font-weight: 700; display: block; color: var(--navy); }
.people .p-role { font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- links -- */

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a { display: block; padding: 14px 4px; text-decoration: none; color: var(--navy); font-weight: 600; }
.link-list a:hover { background: var(--bg-alt); border-radius: var(--r-sm); }
.link-list a:hover .ll-title { text-decoration: underline; }
.link-list .ll-note { display: block; font-weight: 400; font-size: var(--step--1); color: var(--text-muted); }

/* ------------------------------------------------------------- feature -- */

.feature { display: grid; gap: clamp(22px, 4vw, 44px); align-items: start; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .feature--narrow { grid-template-columns: 1.35fr 1fr; } }
.feature-media img { width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); }
.feature-media figcaption { font-size: var(--step--1); color: var(--text-muted); margin-top: 8px; }

/* Definition lists for event particulars: "Date and Time", "Location". */
.facts { margin: 0 0 1.4em; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 0 16px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.feature > * { min-width: 0; }
@media (min-width: 480px) { .facts > div { grid-template-columns: 8.5em 1fr; } }
.section--navy .facts > div { border-color: rgba(255,255,255,.2); }
.section--navy .facts dt { color: #fff; }
.section--navy .facts dd { color: #c3d4e8; }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--navy-deep); color: #c2d1e4; padding-top: clamp(36px, 5vw, 52px); }
.site-footer h2 { color: #fff; font-size: var(--step-0); margin-bottom: .9em; }
.site-footer a { color: #cfe0f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-logo { width: 200px; margin-bottom: 16px; filter: brightness(0) invert(1); }
/* :not(.footer-social) — this (0,1,1) otherwise beats .footer-social (0,1,0)
   and stacks the icon row into a column. */
.footer-grid ul:not(.footer-social) { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--step--1); }
.footer-contact { font-size: var(--step--1); display: grid; gap: 7px; margin: 0; }
.footer-contact > div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; }
.footer-contact dt { color: #93a8c6; }
.footer-contact dd { margin: 0; }
.footer-bottom {
  margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid rgba(255,255,255,.16);
  padding-block: 18px 24px; font-size: var(--step--1); color: #93a8c6;
}
.footer-bottom p { max-width: 95ch; }
.footer-bottom a { color: #b9cce3; text-decoration: underline; }

/* --------------------------------------------------------------- misc --- */

.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding-block: clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: .25em; font-size: var(--step-3); }
.page-head p { color: var(--text-muted); max-width: var(--maxw-prose); margin: 0; }

.breadcrumb { font-size: var(--step--1); color: var(--text-muted); margin: 0 0 .8em; }
.breadcrumb a { color: var(--text-muted); }

.note { border-left: 3px solid var(--border); padding: 4px 0 4px 16px; font-size: var(--step--1); color: var(--text-muted); }

.embed-frame { width: 100%; height: 620px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: #fff; overflow: hidden; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------------------------------------- social -- */

.social { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .social { grid-template-columns: repeat(3, 1fr); } }
.social a {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: var(--navy);
  transition: border-color .12s linear, background-color .12s linear;
}
.social a:hover { border-color: var(--blue); background: var(--bg-alt); }
.social svg { width: 34px; height: 34px; flex: none; }
.social .s-name { display: block; font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.social .s-handle { display: block; font-size: var(--step--1); color: var(--text-muted); }

.section--navy .social a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: #fff; }
.section--navy .social a:hover { background: rgba(255,255,255,.17); border-color: #fff; }
.section--navy .social .s-handle { color: #c3d4e8; }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.32); border-radius: var(--r-md); color: #fff;
}
.footer-social a:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.footer-social svg { width: 21px; height: 21px; }

/* ---------------------------------------------------------- locations -- */

.locations {
  margin: 0; padding: 0 0 0 1.4em;
  columns: 2; column-gap: 32px;
  font-size: var(--step--1);
}
.locations li { break-inside: avoid; padding: 3px 0; }
@media (max-width: 520px) { .locations { columns: 1; } }
