@font-face { font-family: 'VT323'; src: url(/fonts/vt323.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(/fonts/plex-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(/fonts/plex-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(/fonts/plex-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root { --amber: #ffb340; --amber-hi: #ffd88a; --amber-dim: #9c6a2a; --ink: #0a0603; --glow: 0 0 6px rgba(255,170,50,.45), 0 0 18px rgba(255,140,30,.18); }
* { box-sizing: border-box; }
html { background: #050304; }
body { margin: 0; min-height: 100vh; color: var(--amber); font-family: 'Plex Mono', ui-monospace, monospace; font-size: 16px; line-height: 1.7; background: radial-gradient(ellipse at 50% 40%, #1a0f06 0%, #0a0603 55%, #030202 100%); animation: on .5s ease-out both; }
@keyframes on { from { filter: brightness(3) saturate(0); transform: scaleY(.02); } 60% { transform: scaleY(1); filter: brightness(1.6); } to { filter: none; transform: none; } }

/* scanlines + vignette + flicker live in pseudo-elements so content stays crisp and selectable */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 10; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.28) 3px, rgba(0,0,0,0) 4px); mix-blend-mode: multiply; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 11; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); animation: flicker 4s infinite steps(1); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .9; } 48% { opacity: 1; } 81% { opacity: .94; } }

.crt { max-width: 960px; margin: 0 auto; padding: 22px 28px 60px; text-shadow: var(--glow); }
a { color: var(--amber-hi); text-decoration: none; border-bottom: 1px dashed rgba(255,190,90,.35); }
a:hover, a:focus-visible { background: var(--amber); color: var(--ink); text-shadow: none; border-bottom-color: transparent; outline: none; }

.bar { display: flex; justify-content: space-between; align-items: baseline; font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .12em; border-bottom: 2px solid var(--amber-dim); padding-bottom: 6px; text-transform: uppercase; }
.bar a { border: 0; }
.bar .path { color: var(--amber-dim); }

.kicker { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .12em; margin: 40px 0 0; color: var(--amber-dim); }
.kicker .num { color: var(--amber); }
.status { margin-left: 10px; padding: 0 8px; border: 1px solid var(--amber-dim); color: var(--amber-hi); }
h1 { font-family: 'VT323', monospace; font-weight: 400; font-size: clamp(48px, 9vw, 92px); line-height: .95; margin: 6px 0 10px; letter-spacing: .03em; color: var(--amber-hi); text-transform: uppercase; }
.oneliner { font-size: 19px; margin: 0 0 28px; color: #f3c98a; }
.oneliner::before { content: '> '; color: var(--amber-dim); }

.frame { position: relative; border: 2px solid var(--amber-dim); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 6px #000, 0 0 40px rgba(255,140,30,.12); }
.frame.play { aspect-ratio: 16 / 10; }
.frame.img { aspect-ratio: auto; }
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame img { display: block; width: 100%; height: auto; }
.under { text-align: right; margin: 10px 0 0; }
.btn { font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .1em; border: 1px solid var(--amber); padding: 2px 12px; }

.body { margin-top: 32px; max-width: 70ch; }
.body h2, .body h3 { font-family: 'VT323', monospace; font-weight: 400; font-size: 30px; letter-spacing: .08em; margin: 36px 0 4px; color: var(--amber-hi); }
.body p { margin: 0 0 18px; color: #f0c486; }
.body strong { color: var(--amber-hi); font-weight: 600; }
.body em { color: #ffe1a8; }
.body blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--amber-dim); font-style: italic; color: #e8bf86; }
.body code { background: rgba(255,179,64,.12); padding: 0 4px; }
.body ul { padding-left: 1.2em; color: #f0c486; }
.body ul li::marker { content: '∴  '; color: var(--amber-dim); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 32px 0; align-items: start; }
.gallery a { border: 1px solid var(--amber-dim); display: block; line-height: 0; }
.gallery a:hover { background: none; border-color: var(--amber); }
.gallery img { width: 100%; height: auto; filter: sepia(.25) saturate(1.1); transition: filter .3s; }
.gallery a:hover img { filter: none; }
.links { list-style: none; padding: 0; margin: 28px 0; font-family: 'VT323', monospace; font-size: 22px; letter-spacing: .06em; }

.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 10px; border-top: 2px solid var(--amber-dim); font-family: 'VT323', monospace; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.foot a { border: 0; }
.foot .desk { color: var(--amber-dim); }
@media (max-width: 640px) { .crt { padding: 16px; } .foot { flex-wrap: wrap; } .foot .desk { order: 3; width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { body, body::after { animation: none; } }

/* in-page image viewer */
#viewer { padding: 0; border: 2px solid var(--amber-dim); background: #000; max-width: 92vw; max-height: 90vh; overflow: visible; box-shadow: 0 0 0 6px #000, 0 0 60px rgba(255,140,30,.25); }
#viewer[open] { animation: pop .22s ease-out; }
@keyframes pop { from { transform: scaleY(.04); filter: brightness(3); } to { transform: none; filter: none; } }
#viewer::backdrop { background: rgba(5,3,2,.88); backdrop-filter: blur(2px); }
#viewer img { display: block; max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
#viewer button { position: absolute; background: rgba(10,6,3,.8); color: var(--amber-hi); border: 1px solid var(--amber-dim); font-family: 'VT323', monospace; font-size: 26px; line-height: 1; padding: 6px 12px; cursor: pointer; text-shadow: var(--glow); }
#viewer button:hover, #viewer button:focus-visible { background: var(--amber); color: var(--ink); text-shadow: none; outline: none; }
#viewer .vx { top: -18px; right: -18px; }
#viewer .vp { left: 10px; top: 50%; transform: translateY(-50%); }
#viewer .vn { right: 10px; top: 50%; transform: translateY(-50%); }
#viewer .vc { position: absolute; left: 0; right: 0; bottom: -40px; margin: 0; text-align: center; font-family: 'VT323', monospace; font-size: 20px; letter-spacing: .12em; color: var(--amber-dim); }
#viewer.single .vp, #viewer.single .vn, #viewer.single .vc { display: none; }
.gallery a { cursor: zoom-in; }
.gallery.justified { display: flex; flex-direction: column; gap: 12px; }
.gallery.justified .grow { display: flex; gap: 12px; justify-content: center; }
.gallery.justified a { flex: none; }
.gallery.justified img { width: 100%; height: 100%; object-fit: cover; }
