/* Band of Echoes primary editorial design.
   Promoted from the approved store-inspired visual study, November 2026.
   For the public homepage. */

body.boe-editorial {
  --bg: #000000;
  --fg: var(--brand-text);
  --muted: var(--brand-text);
  --accent: #cfb47d;
  --card: #13120f;
  --border: #39342e;
  --maxw: 1200px;
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
  font-size: 18px;
  line-height: 1.65;
}
body.boe-editorial a:focus-visible,
body.boe-editorial button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
body.boe-editorial .wrap {
  max-width: var(--maxw);
  padding-left: clamp(20px, 5.7vw, 86px);
  padding-right: clamp(20px, 5.7vw, 86px);
}

body.boe-editorial header {
  background: #000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}
body.boe-editorial header .bar {
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}
body.boe-editorial .brand h1 { opacity: .93; }
body.boe-editorial header .brand img {
  width: clamp(180px, 30vw, 300px) !important;
}
body.boe-editorial .hamburger {
  border-radius: 2px;
  border-color: #544936;
  padding: 10px 12px;
}
body.boe-editorial .hamburger:hover,
body.boe-editorial .hamburger:focus-visible {
  background: #231e17;
  border-color: var(--accent);
}
body.boe-editorial .hamburger span { background: #ded2bf; }
body.boe-editorial .menu {
  border-radius: 2px;
  background: #151310;
  border: 1px solid #514634;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  padding: 9px;
}
body.boe-editorial .menu a {
  border-radius: 0;
  padding: 12px 18px;
  letter-spacing: .035em;
}
body.boe-editorial .menu a:hover { background: #2b2319; color: #e4c78d; }

/* Video is still the centerpiece, but framed rather than rounded. */
body.boe-editorial #main .hero { padding-top: clamp(30px, 4vw, 48px); }
body.boe-editorial #main .player {
  border: 1px solid #514534;
  border-radius: 0;
  background: #100f0d;
}
body.boe-editorial .hero-ctas {
  margin: 20px 0 clamp(38px, 5vw, 62px);
  gap: 14px;
}
body.boe-editorial .hero-cta {
  min-width: min(34%, 230px);
  border: 1px solid #776344;
  border-radius: 2px;
  padding: 13px 22px;
  background: #100f0d;
  color: #e1cfaa;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .12em;
  transition: border-color .45s ease, background .45s ease, color .45s ease;
}
body.boe-editorial .hero-cta:hover,
body.boe-editorial .hero-cta:focus-visible {
  border-color: #d5b779;
  background: #211c15;
  color: #f5e3bc;
}

/* The invitation uses the store's restrained editorial styling within its dialog. */
body.boe-editorial .collection-announcement-dialog .store-announcement {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(46px, 6vw, 78px) clamp(18px, 4vw, 54px);
  border: 1px solid #39332b;
  border-radius: 0;
  background: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* The Seraphim is a quiet, centered watermark, behind all lettering.
   Its black pixels disappear against the tile with screen blending. */
body.boe-editorial .collection-announcement-dialog .store-announcement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/images/store/seraphim-watermark.webp");
  background-position: center 49%;
  background-repeat: no-repeat;
  background-size: clamp(260px, 55%, 440px) auto;
  mix-blend-mode: screen;
  opacity: .17;
  transition: opacity 1.1s ease;
}
body.boe-editorial .collection-announcement-dialog .store-announcement > * {
  position: relative;
  z-index: 1;
}
body.boe-editorial .collection-announcement-dialog .store-announcement:hover::before,
body.boe-editorial .collection-announcement-dialog .store-announcement:focus-visible::before {
  opacity: .23;
}
body.boe-editorial .collection-announcement-dialog .store-announcement:hover,
body.boe-editorial .collection-announcement-dialog .store-announcement:focus-visible {
  border-color: #b49a60;
  background: #16130f;
}
body.boe-editorial .store-announcement-kicker,
body.boe-editorial .store-announcement-link { color: var(--accent); }

/* Store-inspired section hierarchy: generous display title and fine rules. */
body.boe-editorial #main .section.cols {
  border-top: 1px solid var(--border);
  padding-top: clamp(47px, 7vw, 86px);
  padding-bottom: clamp(54px, 8vw, 106px);
  margin: 0;
}
body.boe-editorial #main .section .card.pad {
  padding: 0;
  background: transparent;
  border: 0;
}
body.boe-editorial #main .section h2 {
  display: block;
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 45px) !important;
  color: var(--brand-text);
  font: 400 clamp(40px, 6.2vw, 70px)/1.1 var(--font-title);
  letter-spacing: -.035em;
  text-align: center;
  text-transform: none;
  text-wrap: balance;
}
body.boe-editorial #main .section h2::before,
body.boe-editorial #main .section h2::after { display: none; }

/* The generic section-heading gap is too large after revealing Patreon Benefits.
   Keep this override scoped to the expanded state; other headings are unchanged. */
body.boe-editorial #main #support-section.is-benefits-revealed h2#support {
  margin-bottom: clamp(12px, 2vw, 18px) !important;
}

/* Long-form text reads like the editorial descriptions in the store. */
body.boe-editorial #about-section .about-copy {
  max-width: 790px;
  margin: 0 auto;
  color: var(--brand-text);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.86;
  text-align: left;
}
body.boe-editorial #about-section .about-copy p { margin: 0 0 24px; }
body.boe-editorial #about-section .about-toggle {
  color: #d3b984;
  text-decoration-color: #ad9465;
}

/* Preserve the interactive collage without confining the scattered images. */
body.boe-editorial #watch.section {
  padding-top: 22px;
  padding-bottom: clamp(60px, 9vw, 116px);
}

/* Video and post cards become flat, gallery-like artwork panels. */
body.boe-editorial .yt-carousel { margin-top: 8px; }
body.boe-editorial .yt-carousel-viewport { border-radius: 0; }
body.boe-editorial .yt-thumb {
  border-radius: 0;
  border-color: #514635;
  background: #13110e;
}
body.boe-editorial .yt-thumb:hover { border-color: #a58a5b; }
body.boe-editorial .yt-tile { color: var(--brand-text); }
body.boe-editorial .yt-post-card {
  border-radius: 0;
  border-color: #474035;
  background: #151310;
}
body.boe-editorial .yt-post-card:hover { border-color: #a58a5b; }
body.boe-editorial .yt-carousel-arrow {
  border-color: #6b593c;
  color: #dcc8a7;
}

/* The release teaser floats freely on the page; no framed countdown panel. */
body.boe-editorial #countdown-section.section {
  padding-top: clamp(20px, 3vw, 42px);
  padding-bottom: clamp(58px, 7vw, 90px);
}
body.boe-editorial #countdown-section .next-video-countdown {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* Balanced lead copy and an unbroken closing phrase avoid an orphaned Patreon. */
body.boe-editorial #support-section .support-lead {
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--brand-text);
  line-height: 1.6;
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
body.boe-editorial #support-section .support-benefits-toggle,
body.boe-editorial #support-section .btn.primary {
  border: 1px solid #aa9061;
  border-radius: 2px;
  background: #1c1913;
  color: #ebd9b7;
  font-weight: 500;
  letter-spacing: .05em;
  box-shadow: none;
}
body.boe-editorial #support-section .support-benefits-toggle:hover,
body.boe-editorial #support-section .btn.primary:hover {
  border-color: #ddbf83;
  background: #292218;
  box-shadow: none;
  color: #f5e7ca;
}
body.boe-editorial #support-section .support-benefits {
  color: var(--brand-text);
}
/* Give the portrait some space after the revealed Patreon membership action. */
body.boe-editorial #support-section .support-hero-image {
  margin-top: clamp(42px, 5vw, 60px);
}

/* Compact, centered directory with short, understated category rules. */
body.boe-editorial #links-section .links-groups {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: start;
  gap: 22px;
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
}
body.boe-editorial #links-section .links-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  border: 0;
  text-align: center;
}
/* Category headers rely on typography, not decorative bars. */
body.boe-editorial #links-section .links-group::before {
  content: none;
  display: none;
}
body.boe-editorial #links-section .links-subheading {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.5;
  margin: 0 0 12px;
}
body.boe-editorial #links-section .links-row {
  color: var(--brand-text);
  font-size: 15px;
  line-height: 1.75;
  white-space: nowrap;
}
body.boe-editorial #links-section .links-row a {
  color: var(--brand-text);
  transition: color .25s ease;
}
body.boe-editorial #links-section .links-row a:hover,
body.boe-editorial #links-section .links-row a:focus-visible {
  color: #f0d7a5;
}

body.boe-editorial footer {
  border-top: 1px solid #544a3b;
  background: #000;
}
body.boe-editorial .foot {
  padding-top: 27px;
  padding-bottom: 30px;
  color: var(--brand-text);
  font-size: 14px;
}

@media (max-width: 680px) {
  body.boe-editorial { font-size: 16px; }
  body.boe-editorial header .bar { min-height: 62px; }
  body.boe-editorial header .brand img {
    width: clamp(170px, 65vw, 270px) !important;
  }
  body.boe-editorial .hero-ctas { margin: 15px 0 31px; gap: 9px; }
  body.boe-editorial .hero-cta {
    min-width: 0;
    flex: 1 1 0;
    padding: 12px 10px;
  }
  body.boe-editorial .collection-announcement-dialog .store-announcement {
    width: 100%;
    margin: 0;
    padding: 45px 14px 47px;
  }
  body.boe-editorial #main .section.cols {
    padding-top: 43px;
    padding-bottom: 54px;
  }
  body.boe-editorial #main .section h2 { font-size: clamp(39px, 10vw, 52px); }
  body.boe-editorial #about-section .about-copy { line-height: 1.77; }
  body.boe-editorial #links-section .links-groups {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
    gap: 29px;
  }
  body.boe-editorial #links-section .links-group {
    padding: 0 4px;
  }
  body.boe-editorial #links-section .links-row {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.boe-editorial .collection-announcement-dialog .store-announcement::before { transition: none; }
  body.boe-editorial .store-announcement,
  body.boe-editorial .hero-cta,
  body.boe-editorial .yt-post-card { transition: none; }
}
