/*
Theme Name: People's Press Citizen
Theme URI: https://avoicethatsoundslikeyours.com/
Author: People's Press
Description: A homepage-first citizen journalism theme concept for People's Press.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Text Domain: peoplepress-citizen
*/

:root {
  --pp-ink: #161918;
  --pp-muted: #58615c;
  --pp-paper: #fbfaf4;
  --pp-surface: #ffffff;
  --pp-line: #d9ded7;
  --pp-green: #438b38;
  --pp-green-dark: #24652b;
  --pp-red: #c94836;
  --pp-blue: #2e6f95;
  --pp-gold: #c88a2d;
  --pp-shadow: 0 18px 45px rgba(22, 25, 24, 0.08);
  --pp-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pp-paper);
  color: var(--pp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.pp-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.pp-topline {
  background: var(--pp-ink);
  color: #fffdf5;
  font-size: 0.82rem;
}

.pp-topline .pp-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}

.pp-topline a {
  color: #fffdf5;
}

.pp-alert {
  border-bottom: 1px solid #efd8b3;
  background: #fff3d9;
  color: #4d3518;
  font-size: 0.9rem;
  font-weight: 750;
}

.pp-alert .pp-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
}

.pp-alert a {
  color: #7a4319;
}

.pp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--pp-line);
  background: rgba(251, 250, 244, 0.94);
  backdrop-filter: blur(16px);
}

.pp-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
}

.pp-brand {
  text-decoration: none;
}

.pp-brand-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-style: italic;
  line-height: 0.9;
}

.pp-brand-tagline {
  display: block;
  margin-top: 7px;
  color: var(--pp-muted);
  font-size: 0.76rem;
  text-transform: lowercase;
}

.pp-nav,
.pp-menu {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pp-menu {
  margin: 0;
  padding: 0;
}

.pp-menu li {
  list-style: none;
}

.pp-nav a,
.pp-header-actions a,
.pp-button,
.pp-pill {
  text-decoration: none;
}

.pp-nav a {
  color: #2d332f;
}

.pp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--pp-ink);
  border-radius: var(--pp-radius);
  padding: 0 16px;
  background: var(--pp-ink);
  color: #fffdf5;
  font-size: 0.85rem;
  font-weight: 800;
}

.pp-button.secondary {
  border-color: var(--pp-line);
  background: var(--pp-surface);
  color: var(--pp-ink);
}

.pp-hero {
  padding: clamp(36px, 6vw, 70px) 0 34px;
}

.pp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.pp-lead-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.pp-lead-media {
  min-height: 0;
  height: clamp(220px, 28vw, 360px);
  border-bottom: 1px solid var(--pp-line);
  background:
    linear-gradient(180deg, rgba(22, 25, 24, 0.02), rgba(22, 25, 24, 0.28));
  background-color: #dfe5dd;
  background-position: center;
  background-size: cover;
}

.pp-lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 3vw, 34px);
}

.pp-kicker {
  color: var(--pp-green-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pp-lead-copy h1 {
  margin: 12px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.55vw, 1.85rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.pp-lead-copy h1 a {
  text-decoration: none;
}

.pp-lead-copy .pp-button {
  width: fit-content;
  min-width: 180px;
}

.pp-dek {
  max-width: 58ch;
  margin: 0;
  color: #39413c;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--pp-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pp-action-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #bdd7bf;
  border-radius: var(--pp-radius);
  background: #f4fbef;
  padding: clamp(22px, 3vw, 32px);
}

.pp-action-panel h2 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 0.94;
}

.pp-action-panel p {
  margin: 0;
  color: #304034;
}

.pp-action-list {
  display: grid;
  gap: 10px;
}

.pp-action-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid #c7dec3;
  border-radius: var(--pp-radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--pp-ink);
  font-weight: 850;
  text-decoration: none;
}

.pp-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f3e4;
  color: var(--pp-green-dark);
}

.pp-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pp-section {
  padding: 34px 0;
}

.pp-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-top: 3px solid var(--pp-ink);
  padding-top: 14px;
}

.pp-section-header h1,
.pp-section-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 500;
}

.pp-section-header p {
  max-width: 54ch;
  margin: 0;
  color: var(--pp-muted);
}

.pp-story-grid {
  display: grid;
  grid-template-columns: repeat(var(--pp-story-columns, 4), minmax(0, 1fr));
  gap: 16px;
}

.pp-story-card {
  min-height: 100%;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  overflow: hidden;
}

.pp-story-thumb {
  aspect-ratio: 4 / 3;
  background: #e2e3df;
  object-fit: cover;
  width: 100%;
}

.pp-story-card .pp-card-copy {
  padding: 16px;
}

.pp-story-card h3 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.12;
}

.pp-story-card h3 a {
  text-decoration: none;
}

.pp-story-card p {
  margin: 0;
  color: var(--pp-muted);
  font-size: 0.92rem;
}

.pp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--pp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pp-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--pp-muted);
  font-size: 0.71rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pp-community-band {
  background: #1e3327;
  color: #fffdf5;
  margin-top: 22px;
  padding: clamp(34px, 6vw, 62px) 0;
}

.pp-community-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.pp-community-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  font-weight: 500;
  line-height: 0.96;
}

.pp-community-band p {
  color: #dbe8dc;
}

.pp-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pp-resource {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pp-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.pp-resource strong {
  display: block;
  margin-bottom: 8px;
}

.pp-events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.pp-event-list {
  display: grid;
  gap: 10px;
}

.pp-event-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  padding: 14px;
}

.pp-datebox {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: var(--pp-radius);
  background: #f4ede1;
  color: #7a4319;
  font-weight: 950;
  text-transform: uppercase;
}

.pp-event-row h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.pp-event-row p {
  margin: 0;
  color: var(--pp-muted);
}

.pp-newsletter {
  border-radius: var(--pp-radius);
  background: var(--pp-blue);
  color: #fff;
  padding: 22px;
}

.pp-newsletter h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.pp-newsletter input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--pp-radius);
  margin: 10px 0;
  padding: 0 12px;
}

.pp-footer {
  margin-top: 40px;
  border-top: 1px solid var(--pp-line);
  padding: 26px 0 42px;
  color: var(--pp-muted);
  font-size: 0.9rem;
}

.pp-sponsor-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  padding: 16px;
}

.pp-sponsor-strip > span {
  color: var(--pp-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pp-sponsor-strip > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.pp-sponsor-strip a {
  color: var(--pp-green-dark);
  font-weight: 850;
  text-decoration: none;
}

.pp-sponsor-strip img {
  width: auto;
  max-width: 120px;
  max-height: 56px;
  object-fit: contain;
}

.pp-page-layout {
  max-width: 860px;
}

.pp-page {
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: var(--pp-shadow);
}

.pp-page-header {
  border-bottom: 1px solid var(--pp-line);
  margin-bottom: 26px;
  padding-bottom: 18px;
}

.pp-page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.96;
}

.pp-page-content {
  color: #303832;
  font-size: 1.05rem;
}

.pp-page-content > *:first-child {
  margin-top: 0;
}

.pp-page-content a {
  color: var(--pp-green-dark);
  font-weight: 750;
}

.pp-single-image {
  margin: 0 0 24px;
}

.pp-single-image img {
  width: 100%;
  border-radius: var(--pp-radius);
}

.pp-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pp-share span,
.pp-share a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.pp-share span {
  border-color: transparent;
  padding-left: 0;
  color: var(--pp-muted);
}

.pp-pdf-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #d8c49c;
  border-radius: var(--pp-radius);
  background: #fff7e6;
  margin: 0 0 24px;
  padding: 18px;
}

.pp-pdf-box h2 {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.pp-pdf-box p {
  margin: 0;
  color: #5b4730;
}

.pp-author-box,
.pp-detail-box {
  display: flex;
  gap: 14px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: #f8f7f0;
  margin-top: 28px;
  padding: 16px;
}

.pp-author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.pp-author-box p,
.pp-detail-box p {
  margin: 4px 0 0;
  color: var(--pp-muted);
}

.pp-detail-box {
  display: block;
  margin: 0 0 24px;
}

.pp-video-embed {
  margin: 0 0 24px;
}

.pp-video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--pp-radius);
}

.pp-related {
  padding-bottom: 0;
}

.pp-read-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--pp-line);
  margin-top: 26px;
  padding-top: 18px;
}

.pp-load-more,
.pp-page-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 0 12px;
  background: var(--pp-surface);
  color: var(--pp-ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.pp-load-more {
  background: var(--pp-ink);
  color: #fffdf5;
}

.pp-load-more-current,
.pp-page-link.current {
  background: #f1f3ec;
  color: var(--pp-muted);
}

.pp-page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pp-read-pager.is-loading .pp-load-more {
  opacity: 0.72;
}

.pp-popup[hidden] {
  display: none;
}

.pp-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  background: rgba(22, 25, 24, 0.38);
  padding: 20px;
}

.pp-popup-card {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
  padding: 26px;
  box-shadow: var(--pp-shadow);
}

.pp-popup-card h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.pp-popup-card p {
  color: var(--pp-muted);
}

.pp-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pp-ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.pp-pdf-mode {
  background: #fff;
  color: #111;
}

.pp-pdf-page {
  width: min(760px, calc(100% - 32px));
  margin: 32px auto;
  background: #fff;
}

.pp-pdf-header,
.pp-pdf-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 14px;
  color: #555;
  font-size: 0.9rem;
}

.pp-pdf-footer {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin-top: 32px;
  padding-top: 14px;
  padding-bottom: 0;
}

.pp-pdf-page h1 {
  margin: 18px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}

@media print {
  .pp-pdf-mode {
    background: #fff;
  }

  .pp-pdf-page {
    width: auto;
    margin: 0;
  }

  .pp-pdf-page a {
    color: #111;
  }
}

@media (max-width: 980px) {
  .pp-header-inner,
  .pp-hero-grid,
  .pp-community-grid,
  .pp-events-layout {
    grid-template-columns: 1fr;
  }

  .pp-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pp-header-actions {
    justify-content: start;
  }

  .pp-story-grid,
  .pp-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-lead-media {
    height: clamp(210px, 42vw, 330px);
  }

  .pp-lead-copy h1 {
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    line-height: 1.18;
  }
}

@media (max-width: 640px) {
  .pp-shell {
    width: min(100% - 22px, 1180px);
  }

  .pp-topline .pp-shell,
  .pp-section-header,
  .pp-event-row {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .pp-story-grid,
  .pp-resource-grid {
    grid-template-columns: 1fr;
  }

  .pp-read-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .pp-page-links {
    justify-content: flex-start;
  }

  .pp-alert .pp-shell,
  .pp-sponsor-strip,
  .pp-pdf-box {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .pp-header {
    position: static;
  }

  .pp-lead-copy h1 {
    font-size: clamp(1.1rem, 4.8vw, 1.4rem);
    line-height: 1.2;
  }

  .pp-lead-media {
    height: clamp(180px, 55vw, 260px);
  }

  .pp-lead-copy .pp-button {
    width: 100%;
  }
}
