/* ============================================================
   SLCPL Workers Union — main stylesheet
   Aesthetic: civic + labor. Warm cream paper, deep union green,
   labor-red accent, gold highlights. Fraunces (display serif)
   over IBM Plex Sans (body). Mobile-first.
   ============================================================ */

/* ----- Tokens ----- */
:root {
  /* Color */
  --ink:           #1a1f1c;
  --ink-soft:      #3a4341;
  --ink-mute:      #5a655f;
  --paper:         #f6f1e6;
  --paper-warm:    #efe7d4;
  --paper-card:    #fffaf0;
  --rule:          #d8cdb4;

  --union-green:        #1b4d3e;
  --union-green-dark:   #0f3328;
  --union-green-light:  #2d6a56;

  --labor-red:     #9b1c1c;
  --labor-red-dk:  #7a1414;

  --gold:          #b48a2c;
  --gold-light:    #d9b35a;

  --focus:         #ffd23f;

  /* Type */
  --ff-display: "Fraunces", "Georgia", serif;
  --ff-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 72rem;
  --container-narrow: 48rem;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 51, 40, 0.08);
  --shadow:    0 4px 12px rgba(15, 51, 40, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 51, 40, 0.16);

  --radius:    4px;
  --radius-lg: 8px;
}

/* ----- Reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--union-green-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--labor-red); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  /* Fraunces variable-font axes for editorial feel */
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.625rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--ff-body); font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 var(--sp-4); }

/* Eyebrow label — small caps, used above page titles & section heads */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--labor-red);
  margin: 0 0 var(--sp-3);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-4); z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow { max-width: var(--container-narrow); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  background: var(--union-green-dark);
  color: var(--paper);
  border-bottom: 4px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--paper);
  text-decoration: none;
}
.site-brand:hover { color: var(--gold-light); }
.site-logo {
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.site-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.site-brand-local {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}

/* Nav */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.primary-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.primary-nav a:hover { background: rgba(255,255,255,0.08); color: var(--gold-light); }
.primary-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
  box-shadow: inset 0 -2px 0 var(--gold-light);
}
.primary-nav a.cta {
  background: var(--labor-red);
  padding: var(--sp-2) var(--sp-4);
}
.primary-nav a.cta:hover { background: var(--labor-red-dk); color: var(--paper); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px;
  background: var(--paper); margin: 4px 0;
}

@media (max-width: 900px) {
  .site-header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .primary-nav {
    flex-basis: 100%;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: var(--sp-3);
  }
  .primary-nav a { padding: var(--sp-3) var(--sp-3); }
}

/* ============================================================
   Page header (used on most pages)
   ============================================================ */
.page-header {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--union-green) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.4;
}
.page-title {
  margin: 0 0 var(--sp-3);
  max-width: 30ch;
}
.page-subtitle {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   Page content / prose
   ============================================================ */
.page-content {
  padding: var(--sp-8) 0 var(--sp-9);
}
.prose {
  max-width: 42rem;
}
.prose h2 {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--ink);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--sp-6); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-5); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose li > p { margin-bottom: var(--sp-2); }
.prose blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--gold);
  background: var(--paper-card);
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr {
  border: none;
  height: 2px;
  background: var(--ink);
  margin: var(--sp-7) 0;
}
.prose code {
  font-family: var(--ff-mono);
  font-size: 0.9em;
  background: var(--paper-warm);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: 0.9375rem;
  background: var(--paper-card);
}
.prose table th,
.prose table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.prose table th {
  background: var(--paper-warm);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.prose table tr:last-child td { border-bottom: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--union-green); color: var(--paper); }
.btn--primary:hover { background: var(--union-green-light); color: var(--paper); }
.btn--accent { background: var(--labor-red); color: var(--paper); }
.btn--accent:hover { background: var(--labor-red-dk); color: var(--paper); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: 1.0625rem; }

/* ============================================================
   Home page hero & sections
   ============================================================ */
.hero {
  background: var(--union-green-dark);
  color: var(--paper);
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(180, 138, 44, 0.18), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(155, 28, 28, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 800px) {
  .hero-inner { grid-template-columns: 1.4fr 1fr; gap: var(--sp-8); }
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  margin-bottom: var(--sp-5);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 700;
}
.hero-lede {
  font-size: 1.25rem;
  color: rgba(246, 241, 230, 0.85);
  max-width: 36rem;
  margin-bottom: var(--sp-6);
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-aside {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.hero-aside h2 {
  color: var(--gold-light);
  font-size: 1rem;
  font-family: var(--ff-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.hero-aside ul { list-style: none; padding: 0; margin: 0; }
.hero-aside li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}
.hero-aside li:last-child { border-bottom: 0; }
.hero-aside li b { color: var(--paper); font-weight: 600; }

/* Generic section */
.section {
  padding: var(--sp-8) 0;
}
.section--alt { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: var(--sp-6); max-width: 50rem; }
.section-head h2 { margin: 0; }

/* 3-up feature grid for homepage */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border-top: 4px solid var(--union-green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card h3 { margin: 0 0 var(--sp-3); font-size: 1.25rem; }
.feature-card p { margin: 0 0 var(--sp-4); color: var(--ink-soft); font-size: 0.9375rem; }
.feature-card a { font-weight: 600; }

/* ============================================================
   Stewards directory
   ============================================================ */
.steward-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 600px) { .steward-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steward-grid { grid-template-columns: repeat(3, 1fr); } }
.steward-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
}
.steward-card.is-officer { border-top: 4px solid var(--labor-red); }
.steward-card.is-steward { border-top: 4px solid var(--union-green); }
.steward-card.is-staff { border-top: 4px solid var(--gold); }
.steward-role {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--labor-red);
  margin: 0 0 var(--sp-2);
  font-weight: 500;
}
.steward-card.is-steward .steward-role { color: var(--union-green); }
.steward-card.is-staff .steward-role { color: var(--gold); }
.steward-name {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--sp-1);
}
.steward-loc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-3);
}
.steward-bio {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-4);
  flex-grow: 1;
}
.steward-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: 0.875rem;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
}
.steward-contact a { word-break: break-word; }

/* ============================================================
   Meetings list
   ============================================================ */
.meeting-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.meeting {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--union-green);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
@media (min-width: 700px) {
  .meeting { grid-template-columns: 12rem 1fr; gap: var(--sp-5); }
}
.meeting-date {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--union-green-dark);
}
.meeting-time {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: var(--sp-1);
  font-weight: 400;
}
.meeting-body h3 { margin: 0 0 var(--sp-2); font-size: 1.25rem; }
.meeting-loc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-2);
}
.meeting-desc { margin: 0; font-size: 0.9375rem; }

/* ============================================================
   News / posts
   ============================================================ */
.post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.post-list li {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
}
.post-list li:first-child { padding-top: 0; }
.post-list .post-meta {
  font-family: var(--ff-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--sp-2);
}
.post-list h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: 0;
}
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--labor-red); text-decoration: underline; }
.post-list p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   Forms
   ============================================================ */
.form {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.field .hint {
  font-size: 0.8125rem;
  color: var(--ink-mute);
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-card);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--union-green); }
.field textarea { min-height: 8rem; resize: vertical; }
.field--required label::after {
  content: " *";
  color: var(--labor-red);
}
.notice {
  background: var(--paper-warm);
  border-left: 4px solid var(--gold);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9375rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice--warn {
  background: #fef2e9;
  border-left-color: var(--labor-red);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--ink); }

/* Hide honeypot field for spam protection */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
@media (min-width: 700px) { .site-footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h2 { color: var(--paper); font-size: 1rem; font-family: var(--ff-body); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); font-size: 0.9375rem; }
.footer-col a { color: rgba(246, 241, 230, 0.8); text-decoration: none; }
.footer-col a:hover { color: var(--gold-light); text-decoration: underline; }

.footer-brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 var(--sp-2);
}
.footer-local {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 var(--sp-3);
}
.footer-tagline {
  color: rgba(246, 241, 230, 0.7);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 24rem;
}

.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(246, 241, 230, 0.15);
  font-size: 0.8125rem;
  color: rgba(246, 241, 230, 0.6);
}
.footer-bottom p { margin: 0 0 var(--sp-1); }
.footer-disclaimer { font-style: italic; }

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link, .hero-actions { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: none; }
}
