/* Butts Studios: shared section system (2026-10-16, Principal: "different subsets like games etc should have a front
   page and if its has subdomains it should be styled in consistent manner even if slightly different").
   Canonical copy: ~/buttsstudios/site/shared/studios-section.css. Each subdomain repo carries a copy
   (studios-section.css); re-sync with ~/buttsstudios/scripts/apply_studios_sections.py.
   One system: C5 mark, Archivo/Newsreader, ink/bone/gold. One accent per section: set data-bs-section on <html>.
   Rules: radius <= 4px, no pills, full even borders only. */
:root {
  --bs-ink: #050707;
  --bs-ink-2: #0C0C0B;
  --bs-ink-3: #121110;
  --bs-bone: #F1ECE2;
  --bs-bone-2: #D9D3C7;
  --bs-muted: #9A948A;
  --bs-line: #2B2824;
  --bs-gold: #E8B521;
  --bs-accent: var(--bs-gold);
  --bs-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bs-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --bs-gutter: clamp(16px, 4vw, 48px);
  --bs-max: 1360px;
}
/* per-section accent: the only thing that changes between sections */
[data-bs-section="books"]        { --bs-accent: #E8B521; }  /* gold: the type */
[data-bs-section="video"]        { --bs-accent: #E2553A; }  /* tally red */
[data-bs-section="games"]        { --bs-accent: #7BC47F; }  /* phosphor green */
[data-bs-section="partnerships"] { --bs-accent: #C9B98F; }  /* brass */

/* ---------- subdomain bar (always ink) ---------- */
.bs-bar {
  background: var(--bs-ink); color: var(--bs-bone);
  font: 400 14px/1.3 var(--bs-display); position: relative; z-index: 1000;
  border-bottom: 1px solid var(--bs-line);
}
.bs-bar-in, .bs-foot-in {
  max-width: var(--bs-max); margin: 0 auto; padding: 12px var(--bs-gutter);
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap;
}
.bs-bar a, .bs-foot a { color: inherit; text-decoration: none; }
.bs-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--bs-display); letter-spacing: -.01em; }
.bs-mark svg { width: 26px; height: 26px; flex: none; display: block; }
.bs-crumb { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.bs-sep { color: var(--bs-muted); font-weight: 400; }
.bs-sec { display: inline-flex; align-items: center; gap: 8px; }
.bs-dot { width: 9px; height: 9px; background: var(--bs-accent); display: inline-block; flex: none; }
.bs-here { color: var(--bs-bone-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.bs-nav a { font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-muted); }
.bs-nav a:hover, .bs-nav a[aria-current] { color: var(--bs-bone); }
.bs-nav a[aria-current]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--bs-accent); vertical-align: 1px; }
.bs-mark:hover span, .bs-sec:hover, .bs-foot a:hover { color: var(--bs-accent); }

/* ---------- subdomain footer (always ink) ---------- */
.bs-foot {
  background: var(--bs-ink); color: var(--bs-muted);
  font: 400 13px/1.5 var(--bs-display); border-top: 1px solid var(--bs-line);
}
.bs-foot-in { padding-block: 28px; justify-content: space-between; align-items: flex-start; }
.bs-foot .bs-mark { color: var(--bs-bone); }
.bs-foot-line { margin: 10px 0 0; color: var(--bs-muted); }
.bs-foot-cols { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.bs-foot-cols a { color: var(--bs-bone-2); }
.bs-foot-base {
  max-width: var(--bs-max); margin: 0 auto; padding: 14px var(--bs-gutter) 22px;
  display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--bs-line);
}
.bs-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- shared product surface helpers (subdomains) ---------- */
.bs-page { background: var(--bs-ink-2); color: var(--bs-bone); font-family: var(--bs-display); }
.bs-btn {
  display: inline-block; padding: 12px 22px; border: 1.5px solid var(--bs-accent); border-radius: 2px;
  background: var(--bs-accent); color: var(--bs-ink); font: 700 14px/1 var(--bs-display); letter-spacing: .04em; text-decoration: none;
}
.bs-btn.ghost { background: transparent; color: var(--bs-bone); border-color: var(--bs-line); }

/* ---------- main-site variant: section sub-nav under the site header ---------- */
.bs-subnav {
  display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap;
  padding-block: 12px; border-block: 1px solid var(--line, #CFC6B4);
  font: 600 12px/1.2 var(--bs-display); letter-spacing: .1em; text-transform: uppercase;
}
.bs-subnav .bs-sub-label { color: var(--muted, #6B655B); font-weight: 400; }
.bs-subnav a { text-decoration: none; color: var(--muted, #6B655B); display: inline-flex; align-items: center; gap: 8px; }
.bs-subnav a:hover, .bs-subnav a[aria-current] { color: var(--fg, #050707); }
.bs-subnav a[aria-current] .bs-dot, .bs-subnav a:hover .bs-dot { visibility: visible; }
.bs-subnav .bs-dot { visibility: hidden; }
.bs-subnav .bs-sub-hosts { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.accent { color: var(--bs-accent); }

@media (max-width: 640px) {
  .bs-nav { margin-left: 0; width: 100%; }
  .bs-here { max-width: 46vw; }
  .bs-subnav .bs-sub-hosts { margin-left: 0; width: 100%; }
}

/* defensive resets: product pages carry their own element rules (header, nav, footer, p, a) */
.bs-bar, .bs-foot { text-align: left; margin: 0; }
.bs-bar *, .bs-foot * { box-sizing: border-box; }
.bs-bar a, .bs-foot a { background: none; -webkit-text-fill-color: currentColor; }
.bs-subnav .bs-sub-hosts a { text-transform: none; letter-spacing: 0; font-weight: 400; }
