:root {
  color-scheme: light;
  --coal: #16201f;
  --coal-deep: #101817;
  --ink: #192422;
  --muted: #53605a;
  --paper: #f7f4eb;
  --paper-deep: #ebe8dd;
  --line: #cccfc1;
  --signal: #f8bd4a;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", "Aptos Display", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
  --gutter: clamp(1.05rem, 4.7vw, 5rem);
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

#playlist-filter {
  max-width: 100%; min-height: 2.65rem; padding: .5rem 1.6rem .5rem .75rem;
  border: 1px solid #939e93; border-radius: .2rem; background: #fffcf3; color: var(--ink);
}
.channel-facts { font-size: .85rem; color: var(--muted); }
#player-description p, .post-card p { white-space: pre-line; overflow-wrap: anywhere; }
.photo-credit a { color: inherit; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: .085em; text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #117e89;
  outline-offset: 3px;
}
.masthead :focus-visible, .hero :focus-visible, .footer :focus-visible, #player :focus-visible {
  outline-color: var(--signal);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { flex: none; }
::selection { background: var(--signal); color: var(--coal-deep); }
.wrap {
  width: min(100% - var(--gutter) - var(--gutter), 82rem);
  margin-inline: auto;
}
.skip-link {
  position: fixed; z-index: 10; top: .7rem; left: .7rem;
  padding: .65rem 1rem; transform: translateY(-180%);
  background: var(--signal); color: var(--ink);
}
.skip-link:focus { transform: none; }

.masthead {
  position: relative; z-index: 2;
  background: var(--coal-deep); color: var(--paper);
  border-bottom: 1px solid #ffffff25;
}
.masthead > .wrap {
  min-height: 4.9rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  display: inline-flex; flex: none; align-items: center; gap: .72rem;
  color: inherit; text-decoration: none; line-height: 1;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem;
  background: var(--signal); color: var(--coal-deep);
  border-radius: .19rem; overflow: hidden; font: 900 .9rem/1 var(--display);
}
.brand-mark svg, .brand-mark img { width: 1.55rem; height: 1.55rem; object-fit: contain; }
.brand-name {
  font: 860 clamp(1.06rem, 1.7vw, 1.45rem)/1 var(--display);
  letter-spacing: -.035em;
}
.nav, .masthead nav {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.6vw, 2.4rem);
}
.nav a, .masthead nav a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; color: #e6e7de; text-decoration: none;
  font-size: .88rem; font-weight: 620; white-space: nowrap;
}
.nav a:hover, .masthead nav a:hover { color: var(--signal); }
.yt-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .5rem .8rem; min-height: 2.5rem; flex: none;
  border: 1px solid #78847d; border-radius: .18rem;
  color: var(--paper); font-size: .85rem; font-weight: 720; text-decoration: none;
}
.yt-link:hover { color: var(--signal); border-color: var(--signal); }
.yt-link svg { width: 1.05rem; height: 1.05rem; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #28332d;
  background-image: linear-gradient(90deg, #0d1818ed 0%, #101b1ae3 22%, #111c1b96 47%, #1019141a 74%),
    linear-gradient(0deg, #0a14139c, transparent 38%),
    url("assets/hero.jpg");
  background-repeat: no-repeat; background-size: cover; background-position: center, center, 58% 53%;
  color: var(--paper);
}
.hero-inner {
  position: relative;
  min-height: clamp(30rem, 39vw, 40rem);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-block: clamp(4.5rem, 7vw, 7rem) clamp(5rem, 8vw, 8rem);
}
.hero > .hero-inner:not(.wrap) { width: min(100% - var(--gutter) - var(--gutter), 82rem); margin-inline: auto; }
.kicker, .eyebrow, .meta, .duration, .result-count {
  font-family: var(--mono); font-weight: 650; letter-spacing: .045em;
}
.kicker, .eyebrow {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .65rem; font-size: .72rem; line-height: 1.3;
  letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow { color: #ffcf75; }
.eyebrow::before, .kicker::before {
  content: ""; flex: 0 0 1.75rem; height: 2px; background: currentColor;
}
.kicker { color: #745313; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
#hero-title, .hero h1 {
  margin: .35rem 0 .9rem; max-width: 15ch;
  font: 900 clamp(3.6rem, 7.1vw, 7.3rem)/.94 var(--display);
  letter-spacing: -.06em; text-wrap: balance;
}
#hero-title span { display: block; color: var(--signal); }
.hero p:not(.eyebrow, .photo-credit, .kicker) {
  max-width: 39rem; margin: .5rem 0 0;
  font-size: clamp(1rem, 1.45vw, 1.23rem); line-height: 1.6; color: #faf8ee;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.8rem; }
.btn, .load-more {
  display: inline-flex; align-items: center; justify-content: center; gap: .58rem;
  min-height: 2.95rem; padding: .7rem 1.12rem;
  border: 1px solid transparent; border-radius: .18rem;
  font-size: .93rem; font-weight: 750; line-height: 1.25; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-primary { background: var(--signal); color: #18201c; }
.btn-primary:hover { background: #ffd37a; }
.btn-ghost { color: #fff; border-color: #d6dbcf9c; background: #14201ed6; }
.btn-ghost:hover { background: #24332f; border-color: var(--paper); }
.btn svg { width: 1rem; height: 1rem; }
.photo-credit {
  position: absolute; right: var(--gutter); bottom: .75rem; max-width: min(60%, 33rem);
  margin: 0; color: #f8f5e8; text-align: right; font: .67rem/1.45 var(--body);
  text-shadow: 0 1px 4px #121512;
}
.hero-inner .photo-credit { right: 0; }
.photo-credit a:hover { color: var(--signal); }

.section { padding-block: clamp(3.3rem, 6vw, 6.15rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.3rem;
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.section-heading h2, .section h2 {
  font: 840 clamp(2.1rem, 4vw, 3.65rem)/1.03 var(--display);
  letter-spacing: -.055em;
}
.section-link {
  flex: none; display: inline-flex; align-items: center; gap: .38rem;
  min-height: 2.7rem; font-size: .88rem; font-weight: 720; color: #35473c;
}
.section-link:hover { color: #895c00; }
.lead { max-width: 57ch; margin: .8rem 0 0; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.collection-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.9rem, 1.7vw, 1.6rem); }
.collection-card {
  display: block; min-width: 0;
  color: var(--ink); text-decoration: none; padding-bottom: .9rem;
  border-bottom: 2px solid #adb3a4;
}
.collection-card img {
  width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover;
  background: var(--coal); border-radius: .18rem;
}
.collection-card h3 { margin: .75rem 0 .3rem; font: 800 clamp(1.15rem, 1.6vw, 1.55rem)/1.12 var(--display); letter-spacing: -.035em; }
.collection-card p { margin: .25rem 0 .4rem; font-size: .91rem; line-height: 1.5; color: var(--muted); }
.collection-card:hover { border-color: #a97616; }
.collection-card:hover h3, .video-card:hover h3, .post-card a:hover { text-decoration: underline; text-underline-offset: .18em; }

#archive { background: #efece2; }
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem 1rem; margin-block: 1.4rem .65rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .44rem; }
.filter {
  color: #47554d; background: transparent; border: 1px solid #9ca59a;
  font: 680 .85rem/1.2 var(--body); border-radius: 999px; min-height: 2.55rem;
  padding: .55rem .93rem; white-space: nowrap;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"], .filter[aria-selected="true"], .filter.active, .filter.is-active {
  background: var(--coal); border-color: var(--coal); color: #fffbee;
}
.search, input[type="search"] {
  background: #fffcf3; border: 1px solid #939e93; border-radius: .2rem;
  min-width: min(100%, 16rem); color: var(--ink);
}
.search { display: flex; align-items: center; gap: .5rem; }
input.search, input[type="search"] { min-height: 2.65rem; padding: .55rem .85rem; }
.search:not(input) { padding-left: .8rem; }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; }
.search svg { width: 1.1rem; height: 1.1rem; }
.result-count { margin: .8rem 0 1.15rem; font-size: .76rem; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.55rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.7rem); }
.video-card {
  display: block; min-width: 0; max-width: 100%; align-self: start; padding: 0;
  background: transparent; border: 0; text-align: left; color: var(--ink); text-decoration: none;
}
.video-card a, .video-card button { color: inherit; text-decoration: none; }
.video-card > button { padding: 0; border: 0; background: transparent; text-align: left; font: inherit; }
.thumb {
  display: block; position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 9; background: #25322b; border-radius: .18rem;
}
.thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.video-card:hover .thumb > img, .video-card:focus-within .thumb > img { transform: scale(1.025); }
.duration {
  position: absolute; bottom: .45rem; right: .47rem; border-radius: .14rem;
  color: white; background: #121614e8; font-size: .71rem; line-height: 1.4; padding: .16rem .35rem;
}
.card-body { display: block; padding-top: .76rem; }
.meta { display: block; margin: .15rem 0 .4rem; color: #586257; font-size: .69rem; line-height: 1.35; text-transform: uppercase; }
.video-card h3, .video-card .card-title {
  display: block; margin: .18rem 0; font: 770 clamp(1.05rem, 1.5vw, 1.28rem)/1.25 var(--display); letter-spacing: -.025em;
}
.video-card p { margin: .52rem 0 0; color: var(--muted); }
.load-more {
  display: flex; min-width: 12rem; margin: 2.3rem auto 0;
  border: 1px solid var(--coal); background: transparent; color: var(--ink);
}
.load-more:hover { background: var(--coal); color: var(--paper); }
.empty { padding: 2rem 0; color: var(--muted); font-size: 1.05rem; }

.post-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.post-card { min-width: 0; border-top: 2px solid #9da699; padding-top: 1rem; }
.post-card h3 { font: 760 1.2rem/1.22 var(--display); }
.post-card p { margin: .45rem 0 .8rem; line-height: 1.65; color: #3d4a42; }
.post-card a { font-weight: 650; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); }
.about-grid p { max-width: 68ch; margin-top: 0; line-height: 1.75; }
.about-grid ul { padding-left: 1.1rem; }
.footer { background: var(--coal-deep); color: #f1f0e6; padding-block: 2.4rem; }
.footer > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer nav, .footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.footer a { font-size: .88rem; }
.footer a:hover { color: var(--signal); }
.footer p { margin: 0; color: #bac5b9; font-size: .82rem; }

#player {
  width: min(55rem, calc(100% - 1.6rem)); max-height: 92vh; max-height: 92dvh;
  margin: auto; padding: 0; overflow: auto;
  border: 1px solid #777d72; border-radius: .35rem;
  background: var(--coal-deep); color: var(--paper);
  box-shadow: 0 1.25rem 5rem #05100ec2;
}
#player::backdrop { background: #07100eef; }
body:has(#player[open]) { overflow: hidden; }
.player-shell { width: 100%; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem 1rem; }
.player-bar h2, .player-details h2 { font: 760 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--display); }
.close { min-width: 2.6rem; min-height: 2.6rem; border: 1px solid #687269; border-radius: .15rem; background: transparent; color: var(--paper); }
.close:hover { background: #33423a; }
.player-frame { position: relative; background: #060908; aspect-ratio: 16/9; }
.player-frame iframe, iframe.player-frame { display: block; width: 100%; height: 100%; border: 0; }
.player-details { padding: 1rem clamp(1rem, 3vw, 1.7rem) 1.3rem; }
.player-details p { white-space: pre-line; overflow-wrap: anywhere; color: #d6dbcf; }
.player-details a { color: #ffd078; }

@media (max-width: 62rem) {
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .masthead > .wrap { gap: 1.15rem; }
  .masthead nav, .nav { gap: 1rem; }
}
@media (max-width: 48rem) {
  :root { --gutter: clamp(1rem, 4.3vw, 2rem); }
  .masthead > .wrap { flex-wrap: wrap; min-height: auto; column-gap: .6rem; row-gap: .35rem; padding-block: .75rem .3rem; }
  .masthead .nav, .masthead nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 0 1.15rem; }
  .masthead nav a, .nav a { font-size: .82rem; min-height: 2.35rem; }
  .masthead .yt-link { margin-left: auto; font-size: .78rem; min-height: 2.4rem; }
  .hero { background-position: center, center, 64% 50%; }
  .hero-inner { min-height: 29rem; }
  .hero p:not(.eyebrow, .photo-credit, .kicker) { max-width: 32rem; }
  .section-heading { align-items: flex-start; }
  .video-grid, .post-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 33rem) {
  .hero { background-image: linear-gradient(90deg,#0b1515ed 0%,#111a18b5 55%,#111a1852),linear-gradient(0deg,#101713b3,transparent 55%),url("assets/hero.jpg"); }
  .hero-inner { min-height: 30rem; padding-block: 3.8rem 5rem; }
  #hero-title, .hero h1 { font-size: clamp(3rem, 12vw, 4rem); }
  .hero-actions { margin-top: 1.35rem; }
  .photo-credit { max-width: 90%; }
  .section-heading { flex-wrap: wrap; gap: .4rem; }
  .section-link { min-height: 2rem; }
  .collection-grid { column-gap: .8rem; row-gap: 1.3rem; }
  .collection-card h3 { font-size: 1.13rem; }
  .collection-card p { font-size: .82rem; }
  .controls { align-items: stretch; }
  .search, input[type="search"] { width: 100%; }
  .video-grid, .post-list { grid-template-columns: minmax(0,1fr); }
  .video-card h3 { font-size: 1.24rem; }
  .footer > .wrap { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
