/* Senpai Stream — shared dark editorial theme */
:root {
  color-scheme: dark;
  --primary: #E06500;
  --accent: #ff963f;
  --paper: #101114;
  --soft: #18191e;
  --surface: #202127;
  --ink: #e4e5e9;
  --heading: #f5f5f7;
  --muted: #a6a8b2;
  --line: #303138;
  --width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wrap { width: min(calc(100% - 48px), var(--width)); margin-inline: auto; }
.header { background: var(--soft); border-top: 3px solid var(--primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo { display: inline-flex; align-items: center; min-width: 0; }
.logo img { display: block; max-width: 220px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.action { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #101114; padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.action:hover { background: var(--accent); color: #101114; }
.nav { position: sticky; top: 0; z-index: 10; background: var(--soft); border-block: 1px solid var(--line); }
.nav-inner { display: flex; gap: 28px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.nav a { display: block; padding: 13px 0 11px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a[aria-current], .nav a:hover { color: var(--accent); border-bottom-color: var(--primary); }
.main { padding-block: 46px 64px; }
article { max-width: 940px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3 { color: var(--heading); line-height: 1.28; letter-spacing: -.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 780; margin: 0 0 20px; }
h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 720; margin: 0 0 18px; border-left: 3px solid var(--primary); padding-left: 14px; }
h3 { font-size: 20px; font-weight: 680; margin: 26px 0 12px; }
p { margin: 0 0 16px; }
strong { color: var(--heading); font-weight: 700; }
.lead { font-size: 19px; line-height: 1.75; color: #c4c6cf; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffb477; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 15px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; margin-top: 24px; }
.intro-links a { font-size: 14px; font-weight: 650; text-decoration: none; }
.intro-links a:hover { text-decoration: underline; }
section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
section p:last-child { margin-bottom: 0; }
ul { padding-left: 23px; margin: 14px 0 20px; }
li { margin-bottom: 9px; padding-left: 3px; }
li::marker { color: var(--primary); }
details { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; padding: 14px 18px; }
summary { color: var(--heading); font-weight: 650; cursor: pointer; }
summary::marker { color: var(--accent); }
details[open] summary { color: var(--accent); }
details p { margin: 12px 0 0; color: var(--ink); }
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer p { margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.skip { position: absolute; z-index: 30; left: 10px; top: -100px; background: var(--surface); padding: 10px; }
.skip:focus { top: 10px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--primary); color: #101114; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 12px; }
  .logo img { max-width: 145px; max-height: 42px; }
  .action { font-size: 12px; padding: 8px 10px; }
  .nav-inner { gap: 20px; }
  .main { padding-block: 28px 42px; }
  .lead { font-size: 17px; }
  section { margin-top: 27px; padding-top: 24px; }
  .intro-links { padding: 12px; }
  details { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
