/* =============================================================================
   Alston Moor Health — site stylesheet
   Single file. CSS variables for palette and typography. No build step.
   ============================================================================= */

:root {
  /* Palette — Alston Moor */
  --heather: #7B5A8C;
  --heather-deep: #5A3F6B;
  --fellside: #3D5A4A;
  --fellside-deep: #2A3F33;
  --sandstone: #D4A574;
  --sandstone-light: #E8C99A;
  --slate: #2D3142;
  --ochre: #E8A552;
  --rust: #C66E47;
  --cream: #FAF6EC;
  --paper: #FFFCF5;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --rule: rgba(45, 49, 66, 0.15);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Lora', Georgia, serif;
  --ui: 'DM Sans', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--heather-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--slate);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--slate);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--ochre); }
.topbar-meta { opacity: 0.8; }
.topbar-cta { display: flex; gap: 1.5rem; align-items: center; }
.vault-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ochre);
  color: var(--slate) !important;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.vault-link:hover { background: var(--cream); color: var(--slate) !important; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 200px at 85% 120%, rgba(123, 90, 140, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 250px at 10% 130%, rgba(61, 90, 74, 0.07), transparent 60%);
  pointer-events: none;
}
.masthead .container {
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.wordmark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.wordmark-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--slate);
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.wordmark-title .amp {
  color: var(--heather);
  font-style: italic;
  font-weight: 500;
}
.wordmark-meta {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.4;
}
.wordmark-meta strong { color: var(--slate); display: block; font-weight: 600; }
.masthead-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 60ch;
}

/* ---------- Main nav ---------- */
.mainnav {
  background: var(--paper);
  border-bottom: 2px solid var(--slate);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--rule);
}
.mainnav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.mainnav a {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s;
}
.mainnav a:first-child { border-left: 1px solid var(--rule); }
.mainnav a:hover { background: var(--slate); color: var(--cream); }
.mainnav a.current { background: var(--heather); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rust);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--slate);
}
.hero h1 em {
  font-style: italic;
  color: var(--heather);
  font-weight: 500;
}
.hero p.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--heather); color: var(--cream); }
.btn-primary:hover { background: var(--heather-deep); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(90, 63, 107, 0.25); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-secondary:hover { background: var(--slate); color: var(--cream); }
.btn-ochre { background: var(--ochre); color: var(--slate); }
.btn-ochre:hover { background: var(--cream); color: var(--slate); transform: translateY(-1px); }
.btn-arrow::after { content: '→'; font-family: var(--display); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg { width: 100%; height: auto; }

/* ---------- Section heading ---------- */
.section { padding: 5rem 0; }
.section-eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 28ch;
  margin-bottom: 0.5rem;
}
.section-intro {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* ---------- Campaigns ---------- */
.campaigns { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.campaign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.campaign-card { background: var(--paper); padding: 2.5rem; position: relative; transition: background 0.2s; }
.campaign-card.heather-block { background: var(--heather); color: var(--cream); }
.campaign-card.fellside-block { background: var(--fellside); color: var(--cream); }
.campaign-card.heather-block h3,
.campaign-card.fellside-block h3 { color: var(--cream); }
.campaign-stamp {
  display: inline-block;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}
.campaign-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 0.75rem; line-height: 1.15; }
.campaign-card p { font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.5rem; }
.campaign-card.heather-block p,
.campaign-card.fellside-block p { color: rgba(250, 246, 236, 0.92); }
.campaign-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.campaign-actions a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s, transform 0.15s;
}
.campaign-actions a:hover { opacity: 0.7; transform: translateX(2px); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-item { display: flex; flex-direction: column; border-top: 3px solid var(--slate); padding-top: 1.25rem; transition: transform 0.2s; }
.news-item:hover { transform: translateY(-3px); }
.news-item:nth-child(2) { border-top-color: var(--heather); }
.news-item:nth-child(3) { border-top-color: var(--fellside); }
.news-meta {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.news-meta .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; opacity: 0.5; }
.news-item h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.75rem; font-weight: 600; }
.news-item h3 a {
  color: var(--slate);
  text-decoration: none;
  background-image: linear-gradient(var(--ochre), var(--ochre));
  background-size: 0% 6px;
  background-position: 0 88%;
  background-repeat: no-repeat;
  transition: background-size 0.3s;
}
.news-item h3 a:hover { background-size: 100% 6px; color: var(--slate); }
.news-item p { color: var(--ink-soft); margin: 0; flex-grow: 1; }
.news-readmore {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--rust);
}
.news-readmore:hover { color: var(--heather-deep); }

/* ---------- Vault preview ---------- */
.vault-section { background: var(--slate); color: var(--cream); position: relative; overflow: hidden; }
.vault-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 80px, rgba(232, 165, 82, 0.04) 80px, rgba(232, 165, 82, 0.04) 81px);
  pointer-events: none;
}
.vault-section .container { position: relative; }
.vault-section .section-eyebrow { color: var(--ochre); }
.vault-section h2 { color: var(--cream); }
.vault-section .section-intro { color: rgba(250, 246, 236, 0.75); }
.vault-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(250, 246, 236, 0.12); border: 1px solid rgba(250, 246, 236, 0.12); }
.vault-doc {
  background: var(--slate);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.vault-doc:hover { background: rgba(232, 165, 82, 0.08); color: inherit; }
.doc-icon {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  background: var(--cream);
  color: var(--slate);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.4rem;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.doc-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--paper) transparent transparent;
  filter: drop-shadow(-1px 1px 0 rgba(0,0,0,0.1));
}
.doc-icon.pdf { background: var(--rust); color: var(--cream); }
.doc-icon.doc { background: var(--heather); color: var(--cream); }
.doc-icon.img { background: var(--fellside); color: var(--cream); }
.doc-meta {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.doc-title { font-family: var(--display); font-size: 1.05rem; font-weight: 500; line-height: 1.3; margin-bottom: 0.4rem; color: var(--cream); }
.doc-summary { font-size: 0.9rem; color: rgba(250, 246, 236, 0.7); line-height: 1.5; margin: 0; }
.vault-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 236, 0.15);
  flex-wrap: wrap;
  gap: 1rem;
}
.vault-cta-text { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: rgba(250, 246, 236, 0.8); margin: 0; }

/* ---------- Mailing list ---------- */
.signup { background: var(--sandstone); padding: 4rem 0; position: relative; overflow: hidden; }
.signup::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,252,245,0.3), transparent 40%); pointer-events: none; }
.signup-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; position: relative; }
.signup h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--slate); margin-bottom: 0.5rem; }
.signup p { color: var(--slate); opacity: 0.85; margin-bottom: 0; max-width: 45ch; }
.signup-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup-form input[type="email"],
.signup-form input[type="text"] {
  flex: 1 1 200px;
  padding: 0.9rem 1rem;
  font-family: var(--ui);
  font-size: 15px;
  border: 2px solid var(--slate);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
.signup-form input:focus { outline: none; box-shadow: 0 0 0 3px var(--ochre); }
.signup-form button {
  padding: 0.9rem 1.75rem;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--slate);
  color: var(--cream);
  border: 2px solid var(--slate);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 2px;
}
.signup-form button:hover { background: var(--heather-deep); border-color: var(--heather-deep); }
.signup-note { font-family: var(--ui); font-size: 12px; color: var(--slate); opacity: 0.7; margin-top: 1rem; }

/* ---------- Footer ---------- */
footer { background: var(--fellside-deep); color: var(--cream); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
footer h4 { font-family: var(--ui); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1rem; font-weight: 600; }
footer .footer-brand h3 { font-family: var(--display); font-size: 1.6rem; color: var(--cream); margin-bottom: 0.5rem; font-weight: 700; }
footer .footer-brand p { color: rgba(250, 246, 236, 0.7); font-size: 0.95rem; max-width: 32ch; margin: 0; }
footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--ui); font-size: 14px; }
footer ul li { margin-bottom: 0.5rem; }
footer ul a { color: rgba(250, 246, 236, 0.85); text-decoration: none; }
footer ul a:hover { color: var(--ochre); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 236, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ui);
  font-size: 12px;
  color: rgba(250, 246, 236, 0.55);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Forms (login etc.) ---------- */
.formbox { max-width: 460px; margin: 4rem auto; padding: 2.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.formbox h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.formbox .lede { font-family: var(--display); font-style: italic; color: var(--ink-soft); margin-bottom: 1.75rem; }
.formbox label { display: block; font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem; }
.formbox input[type="email"],
.formbox input[type="password"],
.formbox input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--ui);
  font-size: 15px;
  border: 2px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.formbox input:focus { outline: none; border-color: var(--heather); box-shadow: 0 0 0 3px rgba(123, 90, 140, 0.15); }
.formbox .btn { width: 100%; justify-content: center; }
.formbox .formerror {
  background: rgba(198, 110, 71, 0.1);
  border-left: 3px solid var(--rust);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.formbox .formnote { font-family: var(--ui); font-size: 12px; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .campaign-grid, .news-grid, .vault-grid, .signup-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { aspect-ratio: 16 / 9; max-width: 500px; margin: 0 auto; }
  .news-grid { gap: 2.5rem; }
  .vault-grid > .vault-doc:nth-child(odd) { border-bottom: 1px solid rgba(250,246,236,0.12); }
  .footer-grid { gap: 2rem; }
  .mainnav a { padding: 0.75rem 1rem; font-size: 13px; }
  .section { padding: 3.5rem 0; }
  .wordmark { gap: 1rem; }
  .wordmark-meta { text-align: left; }
}
@media (max-width: 600px) {
  .topbar-meta { display: none; }
  .topbar .container { justify-content: flex-end; }
}

/* ---------- Reveal-on-load ---------- */
.reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.7s 0.1s ease-out forwards; }
.reveal-delay-1 { animation-delay: 0.2s; }
.reveal-delay-2 { animation-delay: 0.35s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
/* =============================================================================
   Phase 2 additions
   Append to existing site.css. Uses the existing variables and patterns —
   no overrides of Phase 1 rules.
   ============================================================================= */

/* ---------- Long-form prose blocks ---------- */
.prose { max-width: 70ch; }
.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--slate);
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose ul li { margin-bottom: 0.4rem; }
.prose blockquote.quote-block {
  margin: 1.5rem 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--heather);
  background: var(--cream);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate);
}
.prose .callout {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--ochre);
  border-radius: 2px;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose .placeholder-note {
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-left: 2px solid var(--rule);
  border-radius: 2px;
}
.prose .contact-list { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.prose .contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.prose .contact-list li:last-child { border-bottom: 0; }

/* ---------- Heather and fellside light blocks (for long-form pages) ---------- */
.heather-block-light { background: var(--heather-deep); color: var(--cream); }
.heather-block-light h2 { color: var(--cream); }
.fellside-block-light { background: var(--fellside-deep); color: var(--cream); }
.fellside-block-light h2 { color: var(--cream); }
.prose-on-dark { color: rgba(250, 246, 236, 0.92); }
.prose-on-dark h3 { color: var(--cream); }
.prose-on-dark blockquote.quote-block {
  background: rgba(250, 246, 236, 0.06);
  border-left-color: var(--ochre);
  color: var(--cream);
}

/* ---------- Contact form (wider variant of formbox) ---------- */
.formbox-wide { max-width: 720px; margin: 1.5rem 0 0; }
.formbox-wide textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--ui);
  font-size: 15px;
  border: 2px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  resize: vertical;
  min-height: 12rem;
}
.formbox-wide textarea:focus {
  outline: none;
  border-color: var(--heather);
  box-shadow: 0 0 0 3px rgba(123, 90, 140, 0.15);
}
.formbox-wide .formerror div { padding: 0.15rem 0; }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- News post page ---------- */
.news-post { max-width: 70ch; }
.news-post-eyebrow {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}
.news-post-eyebrow a { color: inherit; text-decoration: none; }
.news-post-eyebrow a:hover { color: var(--heather-deep); }
.news-post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
  max-width: none;
}
.news-post-meta { margin-bottom: 1.5rem; }
.news-post-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: none;
}
.news-post-body { margin-bottom: 2.5rem; }
.news-post-body p { margin: 0 0 1rem; }
.news-post-back { margin-top: 2rem; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.pagination-info {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- Documents page ---------- */
.filter-bar {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-group label {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.filter-group select {
  padding: 0.6rem 0.9rem;
  font-family: var(--ui);
  font-size: 14px;
  border: 2px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  min-width: 200px;
}
.filter-group select:focus {
  outline: none;
  border-color: var(--heather);
  box-shadow: 0 0 0 3px rgba(123, 90, 140, 0.15);
}
.filter-actions { flex-direction: row; gap: 1rem; align-items: center; }
.filter-clear {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-clear:hover { color: var(--rust); }

.results-count {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.document-item {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
}
.document-item .document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.tag {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.tag-type { background: var(--slate); color: var(--cream); }
.tag-campaign { background: var(--heather); color: var(--cream); }
.document-date {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.document-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--slate);
}
.document-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Responsive — Phase 2 ---------- */
@media (max-width: 700px) {
  .filter-bar { gap: 0.75rem; padding: 1rem; }
  .filter-group select { min-width: 100%; }
  .filter-actions { flex-basis: 100%; }
  .pagination { justify-content: center; }
}

/* ---------- Hero image (Phase 2 — replaces inline SVG) ---------- */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
/* When the hero contains an image, let the image dictate its own height
   instead of forcing a fixed aspect ratio (the original SVG was locked to 4:5;
   the image wants to flow at its natural ratio on every viewport). */
.hero-visual:has(.hero-img) { aspect-ratio: auto; }

/* ---------- Embedded family-evidence form (Get Involved §2) ---------- */
.evidence-form {
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem;
  /* Slight inner padding so the iframe never touches the border. */
}
.evidence-form-frame {
  width: 100%;
  height: 1400px;          /* tall enough for the longest page of the form */
  border: 0;
  display: block;
  background: var(--paper);
}
@media (max-width: 700px) {
  .evidence-form-frame { height: 1700px; } /* fields stack on narrow screens */
}

/* ---------- Home page: bring the gap below the hero up to the same
   rhythm as the gap below the campaigns block. The campaigns section
   was unpadded — we add a small top padding so the spacing under the
   hero matches the spacing under campaigns (≈5rem either side). ---------- */
.campaigns { padding-top: 2rem; }
