:root {
  --paper: #f3eee4;
  --paper-deep: #e8dfcf;
  --card: #fbf7f0;
  --ink: #1f1a14;
  --muted: #5e554a;
  --rule: #d7ccbb;
  --accent: #7c3a2d;
  --accent-hover: #5e2c22;
  --pine: #3f4a3a;
  --gold: #a47c45;
  --shadow: 0 12px 32px rgba(31, 26, 20, 0.08);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.wrap-narrow { width: min(42rem, calc(100% - 2.5rem)); margin: 0 auto; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead {
  padding: 1.15rem 0 0.85rem;
  background: transparent;
}
.masthead-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.wordmark span { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.15rem; }
nav.primary { display: flex; gap: 1.15rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; }
nav.primary a { color: var(--ink); text-decoration: none; }
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--accent); }

.hero { padding: 3.2rem 0 2.4rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.dek { font-size: 1.28rem; line-height: 1.45; color: var(--muted); margin: 0 0 1.5rem; }
.intro p, .prose p { margin: 0 0 1rem; }
p.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 600;
  float: left;
  font-size: 3.35rem;
  line-height: 0.8;
  padding: 0.12rem 0.28rem 0 0;
  color: var(--accent);
}

.section { padding: 1.5rem 0 3rem; }
h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0 0 0.6rem; }
.section-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 42rem; }

.entry-grid, .region-grid, .video-grid, .country-grid, .related-grid {
  display: grid;
  gap: 1rem;
}
.entry-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.region-grid { grid-template-columns: repeat(4, 1fr); }
.video-grid { grid-template-columns: repeat(3, 1fr); }
.country-grid { grid-template-columns: repeat(4, 1fr); gap: 0.55rem 0.7rem; }

.entry-card, .region-card, .video-card, .pillar-card {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
.entry-card { padding: 1.6rem 1.5rem 1.4rem; min-height: 12rem; transition: transform 0.15s ease; }
.entry-card:hover { transform: translateY(-2px); color: inherit; }
.entry-card .eyebrow, .region-card .eyebrow, .video-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45rem;
}
.entry-card h2 { margin-bottom: 0.4rem; }
.entry-card p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.region-card { padding: 1.2rem 1.1rem 1.15rem; }
.region-card:hover { color: inherit; border-color: #c4b49a; }
.region-card h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.region-card p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.98rem; }
.region-card .count { font-family: var(--sans); font-size: 0.82rem; color: var(--pine); }

.video-card { overflow: hidden; }
.video-card:hover { color: inherit; }
.thumb { position: relative; background: #2a241c; aspect-ratio: 16/9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  background: rgba(20,16,12,0.82); color: #f7f1e6;
  font-family: var(--sans); font-size: 0.75rem; padding: 0.15rem 0.4rem;
}
.video-card .body { padding: 0.85rem 0.95rem 1rem; }
.video-card h3 { font-family: var(--display); font-size: 1.05rem; line-height: 1.3; font-weight: 600; margin: 0 0 0.35rem; }
.video-meta { letter-spacing: 0.06em; }

.country-grid a, .country-grid span {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: baseline;
}
.country-grid a:hover { border-color: var(--accent); color: var(--accent); }
.country-grid .has-films { font-weight: 600; border-color: #c9b79a; }
.country-grid .empty { color: var(--muted); background: transparent; }
.country-grid small { font-weight: 500; color: var(--muted); }

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1612 center/cover no-repeat;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}
.player-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.player-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(26, 22, 18, 0.75);
  border: 2px solid #f4efe6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.player-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #f4efe6;
}
.player-facade:hover .player-play,
.player-facade:focus-visible .player-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #2c4a3e;
}
.player-facade:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.player-fallback {
  display: none;
  position: absolute;
  inset: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #1a1612;
  color: #f4efe6;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
  z-index: 2;
}
.player.is-failed .player-fallback { display: flex; }
.player.is-failed .player-facade,
.player.is-failed iframe { display: none; }
.player.is-playing .player-facade,
.player.is-playing .player-fallback { display: none; }
@media (max-width: 620px) {
  .player-play { width: 3.75rem; height: 3.75rem; }
}

.credit {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.crumbs { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.takeaways { padding-left: 1.15rem; margin: 0 0 1.5rem; }
.takeaways li { margin: 0 0 0.45rem; }
.channel-blurb {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  font-size: 1rem;
  color: #3a342b;
}
.channel-blurb .note { font-size: 0.9rem; color: var(--muted); font-style: italic; margin: 0.8rem 0 0; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 1.4rem 0 2.2rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.preview-flag { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

@media (max-width: 900px) {
  .entry-grid, .region-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .wrap, .wrap-narrow, .masthead-inner { width: min(1120px, calc(100% - 1.5rem)); }
  .masthead-inner { flex-direction: column; gap: 0.55rem; }
  .hero { padding: 2rem 0 1.4rem; }
  .entry-grid, .region-grid, .video-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 0; }
}

.dev-banner {
  background: var(--pine);
  color: #f4efe6;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.5rem 1.25rem;
  line-height: 1.4;
}
.dev-banner strong { font-weight: 600; }

.video-card.is-static { cursor: default; }
.video-card .open-page {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.45rem 0 0;
}
.related-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0.5rem; }
.hero-rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0 0 1.75rem;
  font-family: var(--sans);
}
.stat-row .n {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.stat-row .l {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.place-note {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .related-grid { grid-template-columns: 1fr; }
  .stat-row .n { font-size: 1.5rem; }
}


.ticker {
  padding: 0.35rem 0 0.7rem;
}
.ticker-inner p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: baseline;
}
.ticker-total {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.ticker-total:hover { color: var(--accent); }
.ticker-count {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: -0.01em;
}
.ticker-rule { color: var(--gold); font-weight: 500; }
.ticker-region { color: var(--muted); }
.ticker-region .ticker-count { color: var(--ink); }

/* --- Catalog findability: header search, listings, video pages --- */
.masthead-inner { align-items: center; flex-wrap: wrap; }
nav.primary a[href="/search/"] { font-weight: 600; }
.site-search {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 1 16rem;
  max-width: 22rem;
  margin-left: auto;
  font-family: var(--sans);
}
.site-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 3px 0 0 3px;
  min-width: 0;
}
.site-search input[type="search"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  position: relative;
  z-index: 1;
}
.site-search button {
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #f4efe6;
  padding: 0.45rem 0.8rem;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}
.site-search button:hover { background: var(--accent); border-color: var(--accent); }
.search-pop {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  z-index: 40;
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.25rem 0;
}
.search-pop[hidden] { display: none; }
.search-pop a {
  display: block;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule);
}
.search-pop a:last-child { border-bottom: 0; }
.search-pop a:hover, .search-pop a:focus { background: var(--paper); }
.search-pop .t { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.search-pop .m { font-size: 0.78rem; color: var(--muted); margin: 0.15rem 0 0; }
.search-pop .empty, .search-pop .status { padding: 0.8rem; color: var(--muted); font-size: 0.9rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
@media (max-width: 900px) {
  .site-search { max-width: none; margin-left: 0; flex-basis: 100%; }
}

.sub-grid { grid-template-columns: repeat(3, 1fr); }
.sub-card .count {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.sub-card h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 0.35rem; }
.sub-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.list-toolbar label { display: flex; flex-direction: column; gap: 0.25rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.list-toolbar select {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0.35rem 0.5rem;
  min-width: 10rem;
}
.list-status { color: var(--muted); margin: 0 0 1rem; font-family: var(--sans); }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 1.5rem 0 0;
  font-family: var(--sans);
}
.pager a, .pager span, .pager button {
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.pager a:hover, .pager button:hover { border-color: var(--accent); color: var(--accent); }
.pager [aria-current="page"] { background: var(--pine); color: #f4efe6; border-color: var(--pine); cursor: default; }
.pager button:disabled { opacity: 0.4; cursor: default; }

.desc-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.channel-desc {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
}
.channel-desc p { margin: 0 0 0.7rem; white-space: pre-wrap; }
.channel-desc p:last-child { margin: 0; }
.channel-desc .note { font-size: 0.88rem; color: var(--muted); font-style: italic; white-space: normal; }
.editorial-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin: 0 0 1.4rem;
}
.crumbs { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); margin: 0 0 1.1rem; }
.crumbs a { color: var(--ink); }
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .sub-grid { grid-template-columns: 1fr; }
}

.haf-desc {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 1.4rem 0 1.8rem;
  max-width: 42rem;
}
.haf-desc p { margin: 0 0 0.9rem; }
.haf-desc p:last-child { margin: 0; }

.magazine-rail {
  margin: 2rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--rule, #d8d0c4);
  max-width: 42rem;
}
.magazine-rail .kicker { margin-bottom: 0.25rem; }
.magazine-rail h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 0.55rem; }
.magazine-rail ul { list-style: none; margin: 0; padding: 0; }
.magazine-rail li { margin: 0.4rem 0; font-family: var(--sans); }
.magazine-rail a { color: var(--pine, #234); }
.subdomain-note { font-size: 0.95rem; color: var(--muted); }
