/* SLYVREN · base. Page-wide pieces every module can use. Colours are theme tokens (assets/css/themes/). */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
:root[data-theme="flashbang"] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace; }
.site { position: relative; overflow: hidden; min-height: 100vh; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--title); }
img, svg { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 1px solid var(--hilite); outline-offset: 2px; }

/* the faint scanlines over everything */
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 50;
  /* screen-sized, not page-sized: a page-tall layer (6000px+) gets only partly drawn by the GPU while a video plays,
     leaving blocks without scanlines. Fixed, the page scrolls under the lines like a CRT. */
  /* line + period are snapped to whole screen pixels by core.js (--scan-line / --scan-period): at 125% scaling or browser zoom a 1px line
     is 1.25 screen pixels, which the GPU smears differently tile by tile and leaves a straight seam down the page */
  background: repeating-linear-gradient(0deg, var(--scan) 0 var(--scan-line, 1px), transparent var(--scan-line, 1px) var(--scan-period, 3px)); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.disp { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; }
.kick { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-4); }
.sechead { display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-4); }
.sechead .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), var(--line) 60%, transparent); }
.sechead b { color: var(--accent); font-weight: 400; }
.h2 { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 300; font-size: 76px; line-height: .9; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--text); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.static { background: repeating-linear-gradient(0deg, rgba(var(--text-rgb), .07) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(var(--text-rgb), .04) 0 1px, transparent 1px 3px); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sections: [01] ── header, big heading + blurb */
.sec { padding-top: 120px; }
.shd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 60px; margin-top: 40px; align-items: end; }
.shd-p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.7; color: var(--text-3); }
.h2 .acc { color: var(--accent); }
@media (max-width: 700px) { .shd { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); font-family: inherit; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
/* terminal prompt; accent wipes in from the left */
.btn-hero { background: linear-gradient(90deg, var(--accent) 50%, var(--bg) 50%) 100% 0 / 200% 100% no-repeat; border-color: var(--line); border-left: 3px solid var(--accent); color: var(--accent); transition: background-position .2s ease, color .2s, border-color .2s; }
.btn-hero .pr, .btn-hero .ar { color: var(--hilite); transition: color .2s; }
.btn-hero:hover, .btn-hero:focus-visible { background-position: 0 0; border-color: var(--accent); color: var(--accent-ink); }
.btn-hero:hover .pr, .btn-hero:hover .ar, .btn-hero:focus-visible .pr, .btn-hero:focus-visible .ar { color: var(--accent-ink); }
/* page-coloured, dim outline, fills with the accent */
.btn-default { background: var(--bg); border-color: var(--line); color: var(--accent); transition: background-color .15s, color .15s, border-color .15s; }
.btn-default:hover, .btn-default:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* solid accent on a hard shadow, presses in */
.btn-form { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 3px 3px 0 var(--dim); transition: transform .1s ease-out, box-shadow .1s ease-out; }
.btn-form:hover, .btn-form:focus-visible { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--dim); color: var(--accent-ink); }
.flw { text-decoration: none; text-underline-offset: 4px; }
.flw:hover, .flw:focus-visible { color: var(--hilite); }
.ctl { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg); color: var(--accent); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ctl:hover, .ctl:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.thsel { appearance: none; -webkit-appearance: none; min-height: 26px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 0;
  background: var(--bg-2) linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 12px) 52% / 5px 5px no-repeat;
  color: var(--text); font-family: inherit; font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.thsel:focus { outline: none; border-color: var(--accent); }

/* braille art takes the accent unless told otherwise */
.br { color: var(--accent); }
.br path { transition: opacity .4s; }

@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 900px) { .h2 { font-size: 52px; } }
.motion-respect { }
@media (prefers-reduced-motion: reduce) { .motion-respect * { animation: none !important; } }

