.hero { display:grid; grid-template-columns:minmax(0,var(--width-content)); justify-content:center; padding:clamp(2.75rem,6vw,5rem) 1rem clamp(2.25rem,5vw,4rem); border-bottom:1px solid var(--color-border); background:var(--color-surface); }
.hero > * { width:100%; }
.hero__eyebrow { margin-bottom:var(--space-3); color:var(--color-accent); font:700 0.7rem/1.2 var(--font-body); letter-spacing:0.16em; text-transform:uppercase; }
.hero__title { max-width:15ch; font:400 clamp(2.2rem,5vw,4rem)/1.04 var(--font-display); font-style:normal; letter-spacing:-0.025em; color:var(--color-text); }
.hero__sub { max-width:44rem; margin-top:var(--space-4); color:var(--color-text-muted); font:400 clamp(1rem,2vw,1.2rem)/1.65 var(--font-body); }

.page-main {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
}

/* Series filter. Opens on "All newsletters"; narrows the shared archive to
   one series without leaving the page. */
/* An author `display` beats the UA `[hidden]` rule, so state it explicitly —
   the bar must stay down until the archive loads and its clicks are wired. */
.series-filter[hidden] { display: none; }

.series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.series-filter__option {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font: 500 0.8rem/1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.series-filter__option:hover {
  border-color: var(--color-brand);
  color: var(--color-text);
}

.series-filter__option.is-active {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .series-filter__option { transition: none; }
}

/* Rows read as distinct blocks: a hard rule above and below, and a fill that
   holds its own beside the inverted Boulder rows. Every row bleeds past the
   content column by the same amount, so the grid origin — and therefore every
   column — stays aligned whatever series a row belongs to. */
.archive-page {
  --posts-rule: var(--color-text);
  --posts-fill: #f3f1ea;
}

.posts {
  list-style: none;
  border-bottom: 1px solid var(--posts-rule);
}

.post-tile {
  margin-inline: calc(var(--space-8) * -1);
  padding-inline: var(--space-8);
  border-top: 1px solid var(--posts-rule);
}

.post-tile:not(.post-tile--boulder) { background: var(--posts-fill); }
.post-tile:not(.post-tile--boulder):hover { background: var(--color-surface); }

.post-tile a {
  display: grid;
  grid-template-columns: minmax(9rem, 0.25fr) minmax(0, 1fr) auto;
  column-gap: var(--space-8);
  padding: var(--space-8) 0;
}

.post-status {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  grid-column: 1;
  grid-row: 1 / span 3;
  color: var(--color-text-subtle);
  padding-top: 0.25rem;
}

.post-issue {
  display: block;
  color: var(--color-text);
}

.post-date {
  display: block;
  margin-top: 0.35rem;
}

/* Engage Boulder editions share this archive with Engage Colorado and are
   told apart by their subject line. The whole row inverts — navy ground,
   white type — while Colorado rows keep the standing treatment. Both bleed
   past the content column by the same amount (see .post-tile above), so the
   grid origin, and therefore every column, stays aligned row to row. */
.post-tile--boulder {
  background: var(--color-brand);
  /* The dark rule would vanish where one navy row meets the next, so a Boulder
     row rules itself in light. Stated on the row itself, never through an
     adjacent-sibling selector: that outranks the plain row rule and would
     repaint the border of whatever followed a Boulder edition. */
  border-top-color: rgba(255, 255, 255, 0.28);
}

.post-tile--boulder:hover { background: var(--color-brand-hover); }
.post-tile--boulder .post-status { color: rgba(255, 255, 255, 0.72); }
.post-tile--boulder .post-issue { color: #fff; }
.post-tile--boulder .post-title { color: #fff; }
.post-tile--boulder .post-excerpt { color: rgba(255, 255, 255, 0.82); }
.post-tile--boulder .post-read-more { color: #fff; }

@media (max-width: 720px) {
  /* No room to bleed on a phone; keep the rows inside the viewport. */
  .post-tile { margin-inline: 0; padding-inline: var(--space-4); }
}

.post-title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 0.55rem;
}

.post-excerpt {
  font-size: 0.92rem;
  grid-column: 2;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.post-read-more {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.empty-state {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.empty-state h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}
.empty-state p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  max-width: 440px;
  font-weight: 300;
}

.loading-state {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.skeleton-tile {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}
.skeleton-line {
  height: 0.8rem;
  background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.09), rgba(0,0,0,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 3px;
}
.skeleton-line.pill { width: 32%; height: 0.75rem; margin-bottom: 1rem; }
.skeleton-line.title { width: 80%; height: 1.2rem; margin-bottom: 0.9rem; }
.skeleton-line.text { width: 100%; margin-bottom: 0.55rem; }
.skeleton-line.text.short { width: 60%; margin-bottom: 0; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.footer-disclaimer {
  max-width: 680px;
}

@media (max-width: 720px) {
  .post-tile a { grid-template-columns: 1fr; row-gap: var(--space-2); }
  .post-status,
  .post-title,
  .post-excerpt,
  .post-read-more { grid-column: 1; grid-row: auto; }
  .post-read-more { margin-top: var(--space-2); }
}
