@font-face {
  font-family: "Headline Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Condensed Bold");
  font-weight: 400;
  size-adjust: 85%;
}

:root {
  color-scheme: light;
  --paper: #f5f0e5;
  --card: #fffcf4;
  --cream: #f9f0dc;
  --ink: #192733;
  --navy: #122432;
  --navy-deep: #0b1925;
  --soft: #48545b;
  --gold: #e9bf71;
  --rust: #a13e2e;
  --line: #d9d0bf;
  --olive: #687052;
  --display: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Franklin Gothic Heavy', 'Headline Fallback', system-ui, sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #347d91; outline-offset: 5px; }
.hero :focus-visible, .about :focus-visible, .brief-hero :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--navy-deep); }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(100% - 5rem, 75rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 0.5rem; left: 0.5rem; transform: translateY(-175%); z-index: 5; padding: 0.65rem 1rem; color: var(--navy-deep); background: var(--gold); font-weight: 700; }
.skip-link:focus { transform: none; }

.header { background: var(--paper); border-bottom: 1px solid #1326351a; }
.header-inner { min-height: 4.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 0.55rem; }
.brand { display: inline-flex; gap: 0.62rem; align-items: center; text-decoration: none; }
.brand img { width: 2.85rem; height: 2.85rem; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--display); font-weight: 400; font-size: 1.43rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.brand small { margin-top: 0.3rem; font-weight: 750; font-size: 0.62rem; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rust); }
.main-nav, .footer-nav { display: flex; gap: clamp(0.85rem, 2.5vw, 2rem); align-items: center; }
.main-nav a, .footer-nav a { text-decoration: none; font-size: 0.875rem; font-weight: 650; padding-block: 0.42rem; }
.main-nav a:hover, .footer-nav a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 0.23em; }
.main-nav .nav-youtube { padding: 0.48rem 0.8rem; border: 1px solid #9f9685; }
.nav-youtube span { margin-left: 0.38rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  color: var(--cream);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, #102130 0%, #102130eb 34%, #142b39c7 68%, #132735b0 100%),
    repeating-linear-gradient(0deg, transparent 0 51px, #b4c2af20 51px 52px),
    repeating-linear-gradient(90deg, transparent 0 51px, #b4c2af20 51px 52px);
  border-bottom: 4px solid #a94737;
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 0.98fr; min-height: 34.2rem; align-items: center; gap: 3.1rem; padding-block: 3.75rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 0.55rem; color: var(--gold); font-weight: 750; font-size: 0.71rem; letter-spacing: 0.20em; line-height: 1.5; text-transform: uppercase; }
.eyebrow > span { flex: 0 0 1.15rem; height: 2px; background: currentColor; }
.eyebrow-red { color: var(--rust); }
.hero h1 {
  margin-top: 0.95rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.35rem, 8.65vw, 8.7rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  font-stretch: condensed;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-description { max-width: 24rem; margin-top: 1.7rem; color: #f3ebdc; font-size: clamp(1.02rem, 1.25vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.45rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem; min-height: 2.9rem; padding: 0.6rem 1rem; border: 1px solid transparent; font-size: 0.87rem; font-weight: 750; text-decoration: none; }
.button-gold { color: #192733; background: var(--gold); }
.button-gold:hover { background: #f5d79b; }
.hero-secondary { color: var(--cream); padding: 0.5rem 0; font-weight: 700; font-size: 0.87rem; text-underline-offset: 0.24em; }
.hero-secondary span { margin-left: 0.2rem; }
.hero-secondary:hover { color: var(--gold); }

.hero-art { position: relative; margin: 0 clamp(0rem, 2.6vw, 2rem); align-self: stretch; display: grid; align-content: center; }
.portrait-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 25.25rem;
  border: 1px solid #bfb592;
  background-color: #777952;
  background-image:
    linear-gradient(147deg, #c6ad7d48 0%, transparent 65%, #1e292852 100%),
    repeating-linear-gradient(0deg, transparent 0 34px, #ede2b335 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, #ede2b335 34px 35px);
  box-shadow: 0.6rem 0.65rem 0 #a7956525, 1.2rem 1.25rem 0 #0a172177;
}
.portrait-map::after { content: ""; position: absolute; z-index: 1; inset: 0.55rem; border: 1px solid #fff0c44f; pointer-events: none; }
.map-circles { position: absolute; z-index: -1; width: 73%; aspect-ratio: 1; border: 1px solid #eee0b174; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: 0 0 0 1.65rem #f5e3af14, 0 0 0 3.3rem #f5e3af1a; }
.map-circles::after { content: ""; position: absolute; border: 1px dashed #f2e3b17d; inset: 10%; border-radius: 50%; transform: rotate(-12deg); }
.map-north, .map-cross { position: absolute; z-index: 1; color: #f7e6b4; font: 700 0.9rem/1.1 ui-monospace, monospace; }
.map-north { top: 1.2rem; right: 1.2rem; text-align: center; }
.map-north span { display: block; font-size: 1.3rem; }
.map-cross-top { top: 1.18rem; left: 1.15rem; }
.map-cross-bottom { bottom: 1.2rem; right: 1.25rem; }
.portrait-map img { position: absolute; bottom: -3.05rem; left: 50%; width: auto; max-width: none; height: 28rem; transform: translateX(-50%); filter: drop-shadow(0 1.1rem 1rem #10201b7d); }
.portrait-label { position: absolute; z-index: 2; bottom: 0.4rem; left: -1.1rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 1rem; padding: 0.56rem 0.9rem; background: var(--cream); color: var(--ink); box-shadow: 0.16rem 0.19rem 0 #16252c55; border-left: 4px solid var(--rust); }
.portrait-label strong { font: 400 1.38rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.portrait-label span { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }

.section { padding-block: 4rem 4.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2.2rem; margin-bottom: 1.75rem; }
.section-heading h2, .about h2, .brief-hero h1, .error-page h1 { font: 400 clamp(2.6rem, 4.9vw, 4.45rem)/0.99 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-top: 0.42rem; }
.section-heading > p { margin-bottom: 0.12rem; max-width: 20rem; color: var(--soft); font-size: 0.96rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.48rem; margin-bottom: 1.35rem; }
.filters button { cursor: pointer; background: transparent; border: 1px solid #a6a08e; color: var(--ink); padding: 0.48rem 0.88rem; min-height: 2.78rem; font-weight: 700; font-size: 0.79rem; }
.filters button:hover { background: #e9e1d2; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.episode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.episode-card { display: flex; min-width: 0; border: 1px solid var(--line); background: var(--card); }
.episode-card:hover { border-color: #9b705b; }
.card-link { display: flex; flex-flow: column; flex: 1; text-decoration: none; }
.thumb { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--navy); }
.card-copy { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 1.08rem 1.1rem 1.2rem; }
.category { padding: 0.15rem 0.48rem; background: #eee3cb; color: #673021; text-transform: uppercase; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.5; }
.category-cyber { color: #163b52; background: #e2ebed; }
.category-doctrine { color: #38402a; background: #e7ead9; }
.card-copy h3 { font: 400 clamp(1.42rem, 2.25vw, 2.15rem)/1.07 var(--display); letter-spacing: 0.008em; margin-top: 0.57rem; }
.card-summary { margin: 0.45rem 0 0.85rem; color: var(--soft); font-size: 0.88rem; }
.read-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; font-size: 0.83rem; font-weight: 750; color: #913827; }
.card-link:hover .read-link { text-decoration: underline; text-underline-offset: 0.25em; }

.about { background: #263b36; color: var(--cream); border-top: 1px solid #506154; }
.about-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2.2rem; margin-bottom: 1.7rem; }
.about-heading > p { max-width: 27rem; color: #f0ebdf; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cast-person { min-width: 0; border: 1px solid #68745d; background: #1d312b; }
.cast-portrait {
  display: grid;
  height: 12.25rem;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background-color: #c5b58e;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 26px, #745f3d24 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 26px, #745f3d24 26px 27px),
    radial-gradient(ellipse at 50% 52%, #eadbb1, #ad9b74);
}
.cast-portrait img { width: 94%; height: 91%; max-width: 100%; object-fit: contain; object-position: center bottom; }
.cast-copy { padding: 0.85rem 0.95rem 1rem; }
.cast-copy h3 { font: 400 clamp(1.3rem, 2.25vw, 1.85rem)/1.08 var(--display); letter-spacing: 0.025em; }
.cast-copy p { margin-top: 0.38rem; color: #eee9da; font-size: 0.86rem; }
.about .button { margin-top: 1.3rem; }
.footer { background: var(--paper); padding-block: 1.2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; }
.footer-copy { font-size: 0.78rem; color: var(--soft); }

.brief-hero { background: var(--navy); color: var(--cream); border-bottom: 4px solid var(--rust); }
.brief-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; padding-block: clamp(2rem, 6vw, 5rem); }
.back-link { display: inline-flex; gap: 0.45rem; align-items: center; font-weight: 650; font-size: 0.85rem; margin-bottom: 1.5rem; text-underline-offset: 0.25em; }
.back-link:hover { color: var(--gold); }
.brief-hero .eyebrow { margin-bottom: 0.7rem; }
.brief-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.brief-subtitle { margin-top: 0.75rem; font-size: clamp(1.05rem, 1.7vw, 1.42rem); }
.brief-hero img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #a79565; box-shadow: 0.55rem 0.55rem 0 #b6a67535; }
.brief-hero .button { margin-top: 1rem; }
.brief-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: clamp(1.4rem, 6vw, 5rem); padding-block: 3.4rem 4.4rem; }
.brief-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; margin-bottom: 1.3rem; font-weight: 620; }
.brief-point { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.brief-body h2 { font: 400 1.62rem/1.09 var(--display); letter-spacing: 0.018em; margin: 0 0 0.45rem; }
.brief-point p, .brief-aside p { color: var(--soft); }
.discussion, .sources { padding: 1.2rem; background: var(--card); border: 1px solid var(--line); }
.discussion { border-top: 3px solid var(--rust); }
.sources { margin-top: 0.9rem; }
.sources ul { margin: 0; padding-left: 1.02rem; }
.sources a { color: #883523; font-size: 0.89rem; font-weight: 650; text-underline-offset: 0.2em; }
.sources a:hover { color: #64271a; }
.error-page { padding-block: 4rem; }
.error-page p:not(.eyebrow) { margin: 1rem 0; }

@media (max-width: 60rem) {
  .wrap { width: calc(100% - 3.25rem); }
  .hero-inner { gap: 2rem; min-height: 29rem; }
  .portrait-map { min-height: 21rem; }
  .portrait-map img { height: 24rem; bottom: -3.4rem; }
  .portrait-label { left: -0.75rem; }
}

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero-inner { gap: 1.4rem; padding-block: 2.75rem; min-height: 26rem; }
  .hero h1 { font-size: clamp(3.35rem, 9vw, 5rem); }
  .hero-description { margin-top: 1.15rem; }
  .hero-actions { margin-top: 1.05rem; gap: 0.6rem 0.9rem; }
  .portrait-map { min-height: 17rem; }
  .portrait-map img { height: 19rem; bottom: -2rem; }
  .portrait-label { left: -0.5rem; bottom: 0.55rem; }
  .portrait-label span { font-size: 0.55rem; }
  .section { padding-block: 3rem; }
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .brief-hero-inner { gap: 1.4rem; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 35rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; gap: 0.5rem; }
  .brand { gap: 0.42rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: 0.5rem; letter-spacing: 0.15em; }
  .main-nav { gap: 0.65rem; }
  .main-nav a { font-size: 0.76rem; }
  .main-nav .nav-youtube { padding: 0.3rem 0; border: 0; }
  .nav-youtube span { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; padding-block: 2.2rem 2.15rem; }
  .hero h1 { font-size: clamp(2.62rem, 12.3vw, 5.8rem); }
  .hero-art { width: min(100% - 1.35rem, 23rem); margin-inline: auto; }
  .portrait-map { min-height: clamp(14rem, 61vw, 19rem); }
  .portrait-map img { height: clamp(15.7rem, 69vw, 20rem); bottom: -2.25rem; }
  .portrait-label { bottom: -0.45rem; }
  .section-heading { display: block; margin-bottom: 1.15rem; }
  .section-heading > p { margin-top: 0.65rem; }
  .episode-grid, .brief-hero-inner, .brief-body { grid-template-columns: minmax(0, 1fr); }
  .episode-grid { gap: 1rem; }
  .card-copy h3 { font-size: 1.85rem; }
  .about-heading { display: block; margin-bottom: 1.15rem; }
  .about-heading > p { margin-top: 0.65rem; }
  .cast-portrait { height: 9rem; }
  .cast-copy { padding-inline: 0.7rem; }
  .brief-body { padding-block: 2rem 2.5rem; }
  .footer-copy { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .episode-card, .button { transition: border-color 150ms ease, background-color 150ms ease; }
}
