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

:root {
  /* Old Glory Blue and Old Glory Red, the official US flag colors. */
  --navy:       #0a3161;
  --navy-deep:  #071f3d;
  --red:        #b31942;
  --red-bright: #c8203f;

  --ink:        #14161c;
  --ink-soft:   #454b57;
  --ink-faint:  #7d8492;
  --newsprint:  #f7f5ef;
  --newsprint-2:#efece3;
  --rule:       #d6d2c6;
  --rule-dark:  #b9b4a6;

  --display: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 34rem;
  --wide: 62rem;
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--newsprint);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

/* ---------- flag ribbon ---------- */

.ribbon { height: 6px; display: flex; }
.ribbon i { flex: 1; display: block; }
.ribbon i:nth-child(1) { background: var(--red); }
.ribbon i:nth-child(2) { background: #ffffff; }
.ribbon i:nth-child(3) { background: var(--navy); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 3px double var(--rule-dark);
  padding: 1.5rem 0;
  background: var(--newsprint);
}
.masthead .wrap {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.1875rem; font-weight: 700;
  letter-spacing: 0.005em; color: var(--navy); text-decoration: none;
}
.masthead nav ul { list-style: none; display: flex; gap: 1.5rem; }
.masthead nav a {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.masthead nav a:hover { color: var(--red); }

/* ---------- hero ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: '\2605'; /* star */
  color: var(--red); font-size: 0.8rem; letter-spacing: 0;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7.2vw, 4.75rem);
  line-height: 1.0; letter-spacing: -0.025em; font-weight: 700;
  color: var(--navy); margin-bottom: 1.5rem;
}
/* Hero variants that use the full container width instead of a narrow measure. */
.hero h1.wide { max-width: none; }
.lede.wide { max-width: none; }

.lede {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.45; color: var(--ink-soft); max-width: 32rem;
}

/* ---------- section frame ---------- */

section { padding: 3.5rem 0; border-top: 3px double var(--rule-dark); }
.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.875rem, 3.8vw, 2.625rem);
  line-height: 1.08; letter-spacing: -0.018em; font-weight: 700;
  color: var(--navy); margin-bottom: 1.25rem;
}
h3 {
  font-family: var(--display);
  font-size: 1.375rem; font-weight: 700; line-height: 1.22;
  color: var(--navy); margin-bottom: 0.4rem;
}
p + p { margin-top: 1.1rem; }
section p { max-width: var(--measure); }

/* ---------- featured: RonanRx, reversed on navy ---------- */

.featured {
  background: var(--navy);
  color: #e8eaf0;
  border-top: 6px solid var(--red);
  border-bottom: none;
  position: relative;
}
.featured::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33.33%, #f7f5ef 33.33% 66.66%, #163f7a 66.66% 100%);
}
.featured .section-label { color: #93a6c4; }
.featured .section-label::after { background: rgba(255,255,255,0.18); }
.featured h2 { color: #fff; max-width: 20ch; }
.featured p { color: #cdd5e3; }

.stamp {
  display: inline-block;
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--red);
  padding: 0.35rem 0.7rem; margin-bottom: 1.5rem;
  border-radius: 1px;
}
.featured .kicker {
  font-family: var(--display);
  font-size: 1.25rem; line-height: 1.5; color: #e8eaf0 !important;
  max-width: var(--measure); margin-bottom: 1.75rem;
}
.cta {
  display: inline-block; margin-top: 0.5rem;
  background: #fff; color: var(--navy);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; border-radius: 2px; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.cta:hover { background: var(--red); color: #fff; }
.disclaimer {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8125rem; line-height: 1.6;
  color: #93a6c4 !important; max-width: 42rem !important;
}

/* hero CTA on light ground */
.hero .cta, main > section:not(.featured) .cta {
  background: var(--navy); color: #fff;
}
.hero .cta:hover, main > section:not(.featured) .cta:hover {
  background: var(--red); color: #fff;
}

/* ---------- the pattern ---------- */

.pattern { list-style: none; margin-top: 2rem; max-width: 48rem; }
.pattern li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem;
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.pattern li:last-child { border-bottom: 1px solid var(--rule); }
.pattern .co {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; padding-top: 0.2rem;
}
.pattern .what { color: var(--ink-soft); }

/* ---------- ventures ---------- */

.ventures { display: grid; gap: 0; margin-top: 1rem; }
.venture {
  display: grid; grid-template-columns: 8rem 1fr; gap: 2rem;
  padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.venture:last-child { border-bottom: 1px solid var(--rule); }
.venture .meta {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.7;
  letter-spacing: 0.05em; color: var(--ink-faint); padding-top: 0.4rem;
}
.venture .meta .yr {
  display: block; color: var(--red); font-weight: 600; font-size: 0.8125rem;
}
.venture p { color: var(--ink-soft); margin-top: 0.35rem; }
.venture a.more {
  display: inline-block; margin-top: 0.6rem;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- story ---------- */

.story p { font-size: 1.0625rem; }
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.8vw, 1.8125rem);
  line-height: 1.32; color: var(--navy); font-weight: 600;
  border-left: 4px solid var(--red);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 2.25rem 0; max-width: 38rem;
}

/* ---------- made-in-usa strip ---------- */

.usa-strip {
  background: var(--newsprint-2);
  border-top: 3px double var(--rule-dark);
  border-bottom: 3px double var(--rule-dark);
  padding: 1.5rem 0;
}
.usa-strip .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; text-align: center;
}
.usa-strip p {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); max-width: none;
}
.usa-strip .star { color: var(--red); }

/* ---------- footer ---------- */

footer {
  border-top: 6px solid var(--red);
  background: var(--navy-deep);
  color: #b9c4d6;
  padding: 3rem 0 3.5rem;
  font-size: 0.9375rem;
}
footer .cols {
  display: flex; gap: 3rem; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
}
footer a { color: #fff; }
footer a:hover { color: #ff8fa8; }
footer .colophon { font-size: 0.8125rem; color: #7d8ba3; max-width: 26rem; margin-top: 0.4rem; }
footer ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer nav a {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
  .pattern li, .venture { grid-template-columns: 1fr; gap: 0.4rem; }
  .venture .meta { padding-top: 0; }
  .masthead .wrap { gap: 0.75rem; }
  .masthead nav ul { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Countdown archive. A dense index, not a feed: fourteen rows should be
   scannable in about a screen and a half. The thumbnail is a confidence
   cue at ~50px, not the subject of the row.
   ===================================================================== */

.hero { padding: 5rem 0 4rem; }
.countdown-hero { padding: 3rem 0 2rem; }
.countdown-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.countdown-hero { padding-bottom: 2rem; }
.lede.wide { max-width: none; }

#episodes { padding: 1.5rem 0 2rem; border-top: none; }
.episodes { display: block; margin-top: 0; border-top: 1px solid var(--rule); }

.episode {
  display: grid;
  grid-template-columns: 6rem 5rem 1fr auto;
  align-items: center;
  gap: 1.15rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.episode:hover { background: var(--newsprint-2); }

.ep-thumb {
  position: relative; display: block; line-height: 0;
  border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  background: var(--newsprint-2);
}
.ep-thumb img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.ep-thumb.landscape img { aspect-ratio: 16 / 9; }
.ep-thumb.empty { aspect-ratio: 9 / 16; }
.ep-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ep-thumb .play svg { width: 30px; height: 30px; }
.ep-thumb .play { align-items: flex-start; padding-top: 26%; }

.ep-day {
  font-family: var(--mono); font-size: 0.9375rem; font-weight: 700;
  color: var(--red); line-height: 1.15; letter-spacing: 0.01em;
}
.ep-day em {
  display: block; font-style: normal; font-weight: 400;
  font-size: 0.6875rem; letter-spacing: 0.06em;
  color: var(--ink-faint); margin-top: 0.1rem;
}

.ep-text { min-width: 0; }
.ep-text strong {
  font-family: var(--display); font-size: 1.0625rem; font-weight: 700;
  color: var(--navy); display: block; line-height: 1.25;
}
.episode:hover .ep-text strong { color: var(--red); }
.ep-sum {
  display: block; font-size: 0.8125rem; color: var(--ink-faint);
  line-height: 1.4; margin-top: 0.1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ep-meta { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.ep-meta em {
  font-style: normal; font-family: var(--mono);
  font-size: 0.75rem; color: var(--ink-soft); min-width: 2.5rem; text-align: right;
}

.tag {
  font-family: var(--mono); font-size: 0.625rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid var(--rule);
  border-radius: 2px; padding: 0.1rem 0.35rem;
}
.tag.hot { color: #fff; background: var(--red); border-color: var(--red); }

.ep-count {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 0.3rem 0.32rem;
  display: flex; align-items: baseline; justify-content: center; gap: 0.25rem;
  background: linear-gradient(to top, rgba(10,49,97,.93) 0%, rgba(10,49,97,.82) 55%, rgba(10,49,97,0) 100%);
  color: #fff; line-height: 1; text-align: left;
}
.ep-count b {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.ep-count i {
  font-style: normal; font-family: var(--mono);
  font-size: 0.4375rem; line-height: 1.2; letter-spacing: 0.1em;
  text-transform: uppercase; color: #cdd5e3;
}
.ep-thumb.landscape .ep-count { padding-top: 0.8rem; }

/* ---------- follow block ---------- */

.follow { background: var(--navy); color: #fff; border-top: 6px solid var(--red); padding: 2.75rem 0; }
.follow h2 { color: #fff; margin-bottom: 1.75rem; max-width: 18ch; }
.follow-links { list-style: none; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.follow-links a {
  display: inline-block; font-family: var(--mono);
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,.45); border-radius: 2px;
  padding: 0.8rem 1.5rem; transition: background 0.15s ease, color 0.15s ease;
}
.follow-links a:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- episode page ---------- */

.ep-hero { padding-bottom: 2rem; }
.ep-hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
.ep-player { padding-top: 0; border-top: none; }
.ep-player video {
  display: block; width: 100%; max-width: 26rem; height: auto;
  aspect-ratio: 9 / 16; background: #000;
  border: 1px solid var(--rule-dark); border-radius: 3px;
}
.ep-player video.landscape { max-width: 46rem; aspect-ratio: 16 / 9; }

.no-local-video {
  max-width: var(--measure); padding: 1.5rem;
  background: var(--newsprint-2); border: 1px solid var(--rule); border-radius: 3px;
}
.provisional {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.6;
  letter-spacing: 0.03em; color: var(--ink-faint);
  border-left: 2px solid var(--rule-dark); padding-left: 0.85rem;
  margin-top: 1.25rem; max-width: var(--measure);
}
.ep-actions {
  margin-top: 2rem; font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ep-actions .sep, .eyebrow .sep { color: var(--ink-faint); margin: 0 0.5rem; }
.muted { color: var(--ink-faint); }
.transcript { font-size: 1rem; color: var(--ink-soft); }
.transcript p + p { margin-top: 0.9rem; }

.ep-nav .pn-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pn {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--rule-dark); border-radius: 2px;
  padding: 0.6rem 0.9rem; color: var(--navy);
}
.pn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pn.mid { border-color: var(--rule); color: var(--ink-faint); }

@media (max-width: 640px) {
  .episode { grid-template-columns: 4.25rem 1fr auto; gap: 0.85rem; padding: 0.6rem 0.25rem; }
  .ep-day { grid-column: 2; grid-row: 1; font-size: 0.8125rem; }
  .ep-day em { display: inline; margin-left: 0.5rem; }
  .ep-text { grid-column: 2; grid-row: 2; }
  .ep-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .ep-meta { grid-column: 3; grid-row: 1 / span 2; }
  .ep-sum { display: none; }
  .ep-player video, .ep-player video.landscape { max-width: 100%; }
}
