/* Shared BTS presentation, extending the approved archive materials.
   Historical images and films retain their original pixels and playback controls. */
:root {
  --bg: #090908;
  --text: #f0e9dc;
  --muted: #ccc3b5;
  --amber: #d4a45d;
  --rule: #493721;
  --gutter: clamp(24px, 6.8vw, 102px);
  --frame: clamp(10px, 2.5vw, 38px);
  --bts-wood: url('/bts/archive/theme/wood.webp');
}
body.bts-theme {
  background: #090908 url('/bts/archive/theme/frame.webp') center top / 100% auto repeat-y;
  color: var(--text);
  font-family: var(--serif);
}
.bts-theme .page { max-width: 1536px; padding: 0 var(--gutter); }
.bts-header {
  min-height: 90px;
  margin: 0 calc(var(--frame) - var(--gutter));
  padding: 12px clamp(20px, 3vw, 42px);
  gap: 22px;
  background: #100b08 var(--bts-wood) center / 100% 280% no-repeat;
  border: 1px solid #3e2c1c;
  box-shadow: 0 4px 15px #000;
  position: relative;
  z-index: 2;
}
.bts-header .brand { font-size: 35px; letter-spacing: .07em; color: var(--text); font-weight: 400; }
.bts-header .brand span { color: #936331; margin: 0 12px; font-size: 28px; }
.bts-header .brand small { font-size: 11px; color: var(--text); letter-spacing: .09em; vertical-align: middle; }
.bts-header nav { display: flex; gap: clamp(14px, 1.7vw, 28px); align-items: center; margin-left: auto; flex-wrap: wrap; }
.bts-header nav a { font-size: 16px; color: var(--text); min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
.bts-header nav a[aria-current] { color: var(--amber); text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 1px; }
.bts-header .play-link { background: linear-gradient(#25201b, #100e0b); border: 1px solid #796044; box-shadow: inset 0 0 0 3px #15120f, 0 2px 4px #000; padding: 10px 18px; color: var(--text); white-space: nowrap; min-height: 44px; }
.bts-theme :is(.hub-intro, .intro) {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 0 calc(var(--frame) - var(--gutter));
  padding: 65px calc(var(--gutter) - var(--frame)) 48px;
  background: #090908;
}
.bts-theme :is(.hub-intro, .intro)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 25%;
  background: url('/bts/archive/theme/rift.webp') 61% 53% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  opacity: .7;
}
.bts-theme :is(.hub-intro, .intro)::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #090908, transparent 40%); }
.bts-theme .hub-intro { min-height: 335px; }
.bts-theme h1 { font-size: clamp(42px, 5.05vw, 76px); font-weight: 500; text-shadow: 0 2px 9px #000; }
.bts-theme .hub-intro h1 { max-width: 1000px; }
.bts-theme :is(.hub-intro, .intro) p { color: var(--text); text-shadow: 0 2px 6px #000; }
.bts-theme .hub-intro p { max-width: 780px; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.5; }
.bts-theme .intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 42px; }
.bts-theme .intro > * { min-width: 0; }
.bts-theme .intro h1 { font-size: clamp(42px, 4.5vw, 65px); }
.bts-theme :is(.feature > a, .hero img, .step video, .step .image-link, .capture-grid .capture-open) {
  border: 1px solid #60452c;
  box-shadow: 0 0 0 3px #110d09, 0 5px 15px #000;
  background: #060706;
}
.bts-theme .feature > a { display: block; }
.bts-theme .feature { border-color: var(--rule); gap: 44px; }
.bts-theme .feature h2 { font-weight: 500; font-size: clamp(34px, 3.45vw, 51px); }
.bts-theme .feature p { font-size: 18px; }
.bts-theme .feature .date { color: #c5ab83; font-size: 12px; letter-spacing: .06em; }
.bts-theme :is(.chapters, .filters) {
  background: #100c09 var(--bts-wood) center / 100% 300% no-repeat;
  border-block: 1px solid #493621;
  padding-inline: 20px;
  box-shadow: 0 4px 7px #000;
}
.bts-theme .chapters { flex-wrap: wrap; gap: 6px 28px; }
.bts-theme .chapters a { min-height: 44px; }
.bts-theme .filters { padding-block: 9px; gap: 5px 24px; }
.bts-theme .filters button { font-family: var(--serif); font-size: 16px; }
.bts-theme :is(.step, .scene-entry) { border-bottom: 1px solid var(--rule); padding-top: 30px; margin-bottom: 22px; }
.bts-theme :is(.story h3, .scene-heading h2) { font-weight: 500; }
.bts-theme :is(.story p, .scene-heading p, .lesson-columns p, .archive-note, .viewing-note) { color: var(--muted); }
.bts-theme :is(.story .lesson, .scene-lesson) { color: #e0bc86; }
.bts-theme :is(.number, .scene-number) { color: #c5ab83; }
.bts-theme .capture-grid figure { border: 1px solid #48331f; background: #060706c0; align-self: start; }
.bts-theme .capture-grid .capture-open { border: 0; border-bottom: 1px solid #48331f; box-shadow: none; }
.bts-theme .capture-grid figcaption { margin: 0; padding: 13px 16px 17px; }
.bts-theme .capture-grid figcaption strong { font: 21px/1.3 var(--serif); }
.bts-theme :is(figcaption, .status, .snapshot, .source-page, .sources) { overflow-wrap: anywhere; }
.bts-theme figcaption span { color: #c3b8a6; }
.bts-theme .source-page { max-width: 1100px; padding: 42px 0; margin: 0 auto; }
.bts-theme .source-page h1 { font-size: clamp(38px, 4.7vw, 62px); margin: 24px 0; }
.bts-theme .source-page h2 { font-size: clamp(27px, 3vw, 34px); }
.bts-theme .source-page p { font-family: var(--sans); }
.bts-theme .source-record { padding: 30px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.bts-theme .source-record a { display: inline-block; padding: 10px 0; min-height: 44px; }
.bts-theme .source-record code { overflow-wrap: anywhere; font-size: 12px; }
.bts-theme .bts-footer {
  background: #100b08 var(--bts-wood) center / 100% 280% no-repeat;
  margin: 0 calc(var(--frame) - var(--gutter));
  padding: 23px calc(var(--gutter) - var(--frame));
  border: 1px solid #45321f;
  align-items: center;
  flex-wrap: wrap;
}
.bts-theme .bts-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.bts-theme dialog { background: #0c0d0b; border-color: #8b6c43; box-shadow: 0 0 0 4px #17100b, 0 0 70px #000; }
.bts-theme .viewer-toolbar button { background: #171611; border-color: #8b6c43; min-height: 44px; }
.bts-theme :is(button, a, summary, video, input, select):focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
@media (max-width: 1200px) {
  .bts-header { flex-wrap: wrap; gap: 8px 20px; }
  .bts-header .brand { font-size: 30px; }
  .bts-header nav { order: 3; width: 100%; justify-content: center; gap: 10px 28px; margin: 0; }
  .bts-header .play-link { margin-left: auto; }
  .bts-theme .intro { gap: 28px; }
}
@media (max-width: 700px) {
  :root { --gutter: 25px; --frame: 8px; }
  .bts-header { padding: 12px 13px; gap: 7px 12px; min-height: 0; }
  .bts-header .brand { font-size: 26px; }
  .bts-header .brand span { margin: 0 5px; font-size: 20px; }
  .bts-header .brand small { font-size: 9px; letter-spacing: .04em; }
  .bts-header nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .bts-header nav a { font-size: 14px; }
  .bts-header .play-link { font-size: 12px; padding: 9px 11px; max-width: none; }
  .bts-theme :is(.hub-intro, .intro) { padding: 39px 17px 31px; }
  .bts-theme .intro { grid-template-columns: 1fr; gap: 28px; }
  .bts-theme :is(.hub-intro, .intro) h1 { font-size: 43px; }
  .bts-theme .hub-intro { min-height: 320px; }
  .bts-theme :is(.hub-intro, .intro)::before { opacity: .5; inset-inline-start: 15%; }
  .bts-theme .intro p { font-size: 18px; }
  .bts-theme .feature { grid-template-columns: 1fr; gap: 26px; }
  .bts-theme .chapters { padding-inline: 13px; justify-content: flex-start; gap: 0 20px; }
  .bts-theme .filters { padding-inline: 13px; }
  .bts-theme .source-page { padding: 22px 0; }
  .bts-theme .bts-footer { gap: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body.bts-theme { background: white; color: #151515; }
  .bts-theme .page { padding: 0; }
  .bts-theme :is(.hub-intro, .intro) { margin: 0; padding: 0 0 25px; background: none; min-height: 0; }
  .bts-theme :is(.hub-intro, .intro)::before, .bts-theme :is(.hub-intro, .intro)::after { display: none; }
  .bts-theme :is(.hub-intro, .intro) p { color: #333; text-shadow: none; }
  .bts-theme h1 { text-shadow: none; }
  .bts-theme :is(.feature > a, .hero img, .step video, .step .image-link, .capture-grid figure, .capture-grid .capture-open) { box-shadow: none; background: none; }
  .bts-theme .bts-footer { margin: 0; padding: 10px 0; background: none; }
  .bts-theme .capture-grid figcaption strong { color: #151515; }
}
