:root {
  --ink: #0a0a0a;
  --paper: #f6f4f0;
  --white: #fff;
  --mute: #5c5c5c;
  --rule: #d9d6d0;
  --signal: #c41230;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2rem));
  --narrow: min(42rem, calc(100% - 2rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg, video, audio { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.screen-reader-text,
.aa-skip {
  position: absolute;
  left: -9999px;
}
.aa-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
}

.aa-wrap { width: var(--wrap); margin-inline: auto; }
.aa-wrap--narrow { width: var(--narrow); }

.aa-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.aa-kicker--on-dark { color: #ff5a6e; }
.aa-kicker a { text-decoration: none; }

.aa-meta {
  color: var(--mute);
  font-size: 0.8125rem;
}

.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  background: var(--signal);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}
.aa-btn--small { min-height: 2.25rem; padding: 0 0.85rem; }
.aa-btn--light { background: var(--white); color: var(--ink); }
.aa-text-link { font-weight: 600; }
.aa-text-link--on-dark { color: var(--white); }

.aa-icon-btn {
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: inherit;
}

/* Masthead */
.aa-masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.aa-masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--wrap);
  margin: 0 auto;
  padding: 0.55rem 0 0.35rem;
  border-bottom: 3px solid var(--ink);
}
.aa-masthead__kicker { margin: 0; color: var(--ink); }
.aa-masthead__tools { display: flex; flex-shrink: 0; gap: 0.5rem; align-items: center; }
.aa-masthead__tools .aa-icon-btn { flex-shrink: 0; }
.aa-masthead__brand {
  display: flex;
  justify-content: center;
  padding: 1.35rem 1rem 0.65rem;
}
.aa-logo,
.custom-logo-link {
  display: flex;
  justify-content: center;
  text-decoration: none;
}
.aa-logo img,
.custom-logo-link img {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(420px, 90vw);
  object-fit: contain;
  object-position: center;
}

.aa-nav { width: var(--wrap); margin: 0 auto; }
.aa-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.aa-nav__list a { text-decoration: none; }
.aa-nav__list a:hover,
.aa-nav__list .current-menu-item > a { color: var(--signal); }

.aa-nav-toggle { display: none; }
.aa-nav-toggle__bars,
.aa-nav-toggle__bars::before,
.aa-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.aa-nav-toggle__bars::before,
.aa-nav-toggle__bars::after {
  content: "";
  position: absolute;
}
.aa-nav-toggle__bars::before { top: -6px; }
.aa-nav-toggle__bars::after { top: 6px; }

.aa-search {
  background: var(--ink);
  color: var(--white);
  padding: 1rem;
}
.aa-search__form {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.aa-search__form input {
  flex: 1 1 16rem;
  min-height: 2.75rem;
  border: 0;
  padding: 0 0.85rem;
}

/* Progressive smart masthead: its spacer keeps article layout stable. */
.aa-masthead__compact-tools,
.aa-nav__compact-subscribe { display: none; }
.aa-masthead--smart {
  position: fixed;
  top: var(--aa-admin-offset, 0px);
  inset-inline: 0;
  width: 100%;
}
html { scroll-padding-top: var(--aa-header-clearance, 0px); }
.aa-masthead--smart .aa-masthead__top {
  max-height: 12rem;
  overflow: hidden;
  transition: max-height 180ms ease, padding 180ms ease, opacity 140ms ease;
}
.aa-masthead--smart .aa-masthead__brand {
  align-items: center;
  transition: padding 180ms ease;
}
.aa-masthead--smart .aa-logo img { transition: height 180ms ease; }
.aa-masthead__compact-tools .aa-icon-btn { min-width: 44px; min-height: 44px; }
.aa-masthead--smart :is(a, button, input):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.aa-masthead.is-compact .aa-masthead__top {
  max-height: 0;
  padding-block: 0;
  border-bottom: 0;
  opacity: 0;
  visibility: hidden;
}
.aa-masthead.is-compact .aa-masthead__brand {
  justify-content: space-between;
  gap: 0.5rem;
  width: var(--wrap);
  margin-inline: auto;
  padding: 0.6rem 0;
}
.aa-masthead.is-compact .aa-logo { min-width: 0; }
.aa-masthead.is-compact .aa-logo img {
  height: 44px;
  max-width: 100%;
  object-position: left center;
}
.aa-masthead.is-compact .aa-masthead__compact-tools {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
  align-items: center;
}
.aa-masthead.is-compact .aa-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.aa-masthead.is-compact .aa-nav { display: none; }
.aa-masthead--smart .aa-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  width: 100%;
  background: var(--white);
  border-block: 1px solid var(--rule);
  max-height: calc(100dvh - var(--aa-header-clearance) - var(--aa-admin-offset, 0px));
  overflow-y: auto;
  box-shadow: 0 8px 18px rgb(0 0 0 / 8%);
}
.aa-masthead.is-compact .aa-nav.is-open { max-height: calc(100dvh - 80px - var(--aa-admin-offset, 0px)); }
.aa-masthead.is-compact .aa-nav__compact-subscribe { display: block; padding: 0 1.25rem 1rem; text-align: center; }
.aa-search--attached {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100dvh - var(--aa-header-clearance) - var(--aa-admin-offset, 0px));
  overflow-y: auto;
}
.aa-masthead.is-compact .aa-search--attached { max-height: calc(100dvh - 80px - var(--aa-admin-offset, 0px)); }
.aa-search--attached .aa-search__form { width: min(1120px, 100%); }
.aa-search--attached input { min-width: 0; }
.aa-masthead.is-measuring * { transition: none !important; }
@media (max-width: 799px) {
  .aa-masthead.is-compact .aa-logo img { height: 40px; }
  .aa-masthead.is-compact .aa-nav__compact-subscribe { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .aa-masthead--smart * { transition: none !important; }
}

/* Lead */
.aa-lead {
  display: grid;
  background: var(--ink);
  color: var(--white);
}
.aa-lead__media { display: block; min-height: 240px; background: #1a1a1a; }
.aa-lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; }
.aa-lead__media--empty { min-height: 280px; background: repeating-linear-gradient(-45deg, #111, #111 12px, #161616 12px, #161616 24px); }
.aa-lead__copy {
  padding: 1.75rem 1.25rem 2.25rem;
  width: min(40rem, 100%);
}
.aa-lead__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.aa-lead__title a { text-decoration: none; }
.aa-lead__standfirst { font-size: 1.125rem; color: #cfcfcf; }

@media (min-width: 900px) {
  .aa-lead {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 520px;
  }
  .aa-lead__media img { height: 100%; aspect-ratio: auto; }
  .aa-lead__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem 3rem 2.5rem;
  }
}

/* Sections */
.aa-section { padding: 3rem 0; }
.aa-section--ruled { border-top: 1px solid var(--rule); }
.aa-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
}
.aa-section__head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 0;
}
.aa-section__more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--signal);
}

.aa-grid { display: grid; gap: 1.5rem; }
.aa-grid--2 { grid-template-columns: 1fr; }
.aa-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .aa-grid--2 { grid-template-columns: 1fr 1fr; }
  .aa-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .aa-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.aa-card { display: flex; flex-direction: column; gap: 0.75rem; }
.aa-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.aa-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}
.aa-card__title a { text-decoration: none; }
.aa-card__excerpt { margin: 0; color: var(--mute); }
.aa-card--opinion .aa-card__title { font-size: 1.55rem; }

.aa-trending { list-style: none; margin: 0; padding: 0; }
.aa-trending li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.aa-trending a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.aa-trending__n { font-family: var(--serif); font-size: 1.5rem; color: var(--signal); }

.aa-podcast-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}
.aa-podcast-band__grid {
  display: grid;
  gap: 2rem;
}
.aa-podcast-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0.25rem 0 0.75rem;
}
.aa-podcast-band h2 a { text-decoration: none; }
.aa-podcast-band__ep { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: #ff5a6e; }
.aa-podcast-band__guest { font-weight: 600; }
.aa-podcast-band__cta { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.aa-podcast-band__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 1.5rem 1.75rem;
}
.aa-podcast-band__mark img { width: min(320px, 100%); height: auto; }
@media (min-width: 800px) {
  .aa-podcast-band__grid { grid-template-columns: 1.4fr 0.6fr; align-items: center; }
}

.aa-community-card {
  background: var(--white);
  padding: 1.25rem;
  border-left: 3px solid var(--signal);
}
.aa-community-card h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.5rem; }
.aa-community-card h3 a { text-decoration: none; }

.aa-newsletter {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.aa-newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 auto 0.75rem;
}
.aa-newsletter__inner p { max-width: 36rem; margin-inline: auto; color: #cfcfcf; }
.aa-subscribe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 32rem;
  margin: 1.5rem auto 0;
  text-align: left;
}
.aa-subscribe input[type="email"] {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  border: 0;
  padding: 0 0.9rem;
  background: var(--white);
  color: var(--ink);
}
.aa-subscribe__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.aa-subscribe__status {
  flex: 1 0 100%;
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
}

/* Article */
.aa-page-head { padding: 2.5rem 0 1rem; }
.aa-page-head h1,
.aa-article__header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.aa-page-head__dek,
.aa-article__standfirst { font-size: 1.2rem; color: var(--mute); }
.aa-page-head--dark {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}
.aa-page-head--dark .aa-page-head__dek { color: #cfcfcf; }

.aa-article { padding-bottom: 3rem; }
.aa-article__header { padding-top: 2.5rem; }
.aa-article__hero { margin: 0; }
.aa-article__hero img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.aa-article__hero figcaption { width: var(--narrow); margin: 0.5rem auto; font-size: 0.8rem; color: var(--mute); }
.aa-share {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.aa-share a { text-decoration: none; color: var(--signal); }

.aa-prose { padding: 1.5rem 0 2rem; }
.aa-prose > * { margin: 0 0 1.15rem; }
.aa-prose p { font-size: 1.125rem; }
.aa-prose h2, .aa-prose h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin-top: 2rem;
}
.aa-prose a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.aa-prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
}
.aa-takeaways, .aa-disclosure-box {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.4rem;
}
.aa-takeaways__label, .aa-disclosure-box__label {
  color: var(--signal);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.aa-disclosure { font-size: 0.85rem; color: var(--mute); }
.aa-tags a {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-size: 0.8rem;
}

.aa-player { padding: 1rem 0 0; }
.aa-player audio { width: 100%; }
.aa-player__links { display: flex; gap: 1rem; }
.aa-episode-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.aa-episode-row h2 { font-family: var(--serif); margin: 0.25rem 0 0.5rem; font-size: 1.6rem; }
.aa-episode-row h2 a { text-decoration: none; }

.aa-about-split {
  display: grid;
  gap: 1rem;
  padding: 0 0 3rem;
}
@media (min-width: 700px) {
  .aa-about-split { grid-template-columns: 1fr 1fr; }
}
.aa-about-split div {
  background: var(--white);
  padding: 1.25rem;
  border-top: 3px solid var(--ink);
}
.aa-about-split h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 0.5rem; }

.aa-pagination { padding: 2rem 0 3rem; }
.aa-pagination .nav-links { display: flex; gap: 1rem; }

.aa-footer {
  background: #111;
  color: #ddd;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.aa-footer a { color: inherit; text-decoration: none; }
.aa-footer a:hover { color: var(--white); }
.aa-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 800px) {
  .aa-footer__grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
}
.aa-footer__mission { max-width: 36ch; }
.aa-footer__label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #ff5a6e;
  font-weight: 600;
}
.aa-footer__list { list-style: none; margin: 0; padding: 0; }
.aa-footer__list li { margin: 0.35rem 0; }
.aa-social { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; list-style: none; padding: 0; }
.aa-footer__legal { border-top: 1px solid #2a2a2a; padding-top: 1.25rem; }
.aa-footer__copy { color: #888; font-size: 0.8rem; }

@media (max-width: 799px) {
  .aa-nav-toggle { display: block; }
  .aa-nav {
    display: none;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--rule);
  }
  .aa-nav.is-open { display: block; }
  .aa-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .aa-masthead__brand { justify-content: flex-start; padding: 0.9rem 1rem 0.5rem; }
  .aa-logo img,
  .custom-logo-link img {
    height: 72px;
    max-width: min(300px, 86vw);
  }
  .aa-episode-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
