/* /press and each release under /press/:slug. This sheet loads only on
   those pages, so the bare body/main rules below are page-scoped the way
   support.css's are. The pages reuse the campaign tokens and the
   homepage's layout pieces (.band, .wrap, .head, .btn); only the release
   list, the release body and the contact card live here. The body wears
   exactly `campaign theme-auto`, so the device takes it into light mode
   like the homepage and /support, and the standard header follows it (the
   light block at the end). */

body {
  display: block;
  padding: 0 0 3rem;
  background: var(--page);
  color: var(--page-ink);
}

main.press-main {
  display: block;
  width: 100%;
  max-width: none;
  padding: var(--site-header-h) 0 0;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.6;
}

:where(main.press-main) h1,
:where(main.press-main) h2,
:where(main.press-main) h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:where(main.press-main) h1,
:where(main.press-main) h2 {
  line-height: 1.12;
}

:where(main.press-main) h3 {
  line-height: 1.25;
}

:where(main.press-main) h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin: 0;
}

:where(main.press-main) h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 0.75rem;
}

:where(main.press-main) h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

main.press-main :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

main.press-main .eyebrow {
  margin: 0;
  color: var(--faint);
}

main.press-main .eyebrow--accent {
  color: var(--accent-text);
}

main.press-main .lede {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Links in the content bands; the footer keeps its own quiet links. */
main.press-main .band a:not(.btn) {
  color: var(--accent-text);
  text-underline-offset: 0.15em;
}

.press-hero {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
}

/* ── /press: the release list ─────────────────────────────────────────── */

.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.release-card {
  display: grid;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.release-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

main.press-main .band .release-card h3 a {
  color: inherit;
  text-decoration: none;
}

main.press-main .band .release-card h3 a:hover {
  text-decoration: underline;
}

.release-card p {
  margin: 0;
  color: var(--muted);
}

.release-card .link-cta {
  justify-self: start;
  margin-top: 0.25rem;
}

/* ── The media contact card (both pages) ──────────────────────────────── */

.contact-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-card strong {
  color: var(--page-ink);
}

/* ── A release ────────────────────────────────────────────────────────── */

.release {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.release-back {
  font-weight: 700;
  text-decoration: none;
}

.release-head {
  display: grid;
  gap: 0.9rem;
}

.release-dek {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.release-body p {
  margin: 0 0 1.1rem;
}

.release-body p:last-child {
  margin-bottom: 0;
}

.release-dateline {
  font-weight: 800;
}

.release-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.release-order p {
  margin: 0;
  font-weight: 700;
}

.release-about {
  display: grid;
  gap: 1.75rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.release-about p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.release-about p:last-child {
  margin-bottom: 0;
}

/* ── Footer: the standard links, centred like every other .site-footer ── */

main.press-main .site-footer {
  margin-top: 0;
  padding-inline: var(--gutter);
}

main.press-main .site-footer .wrap {
  padding-inline: 0;
}

@media (prefers-color-scheme: light) {
  /* The header follows the page, as on /, /vote and /support. */
  body.theme-auto .site-header {
    background: var(--page);
    color: var(--page-ink);
    color-scheme: light;
  }

  body.theme-auto .site-header .logo {
    background-image: url("/img/brand/wordmark-navy.svg");
  }

  body.theme-auto .site-account[data-account="in"] .site-account__face {
    border-color: var(--page-ink);
  }

  main.press-main .site-footer a:hover,
  main.press-main .site-footer a:focus-visible {
    color: var(--page-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  main.press-main .btn:hover,
  main.press-main .btn:active {
    transform: none;
  }
}
