@font-face { font-family: Tektur; src: url( assets/fonts/Tektur-Black.ttf ); font-display: swap; }
@font-face { font-family: Departure; src: url( assets/fonts/DepartureMono-Regular.otf ); font-display: swap; }
@font-face { font-family: DSEG7; src: url( assets/fonts/DSEG7Classic-Bold.ttf ); font-display: swap; }

:root {
	--screen: #1a2410;
	--frame: #3a4428;
	--lit: #9fd04a;
	--dim: #6f8f3a;
	--caption: #d6dcc0;
	--warn: #e0b02a;
	--black: #080b05;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--black);
	color: var(--caption);
	font: 15px/1.6 Departure, ui-monospace, monospace;
	background-image: repeating-linear-gradient( 0deg, rgba( 159, 208, 74, .035 ) 0 1px, transparent 1px 3px );
}

h1, h2, h3 { font-family: Tektur, Departure, sans-serif; letter-spacing: .06em; margin: 0; }

a { color: var(--lit); }

section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; border-bottom: 1px solid var(--frame); }

section > h2 { font-size: 22px; color: var(--lit); margin-bottom: 28px; }
section > h2::after { content: ""; display: block; height: 1px; background: var(--frame); margin-top: 12px; }

.bar {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
	padding: 14px 24px; border-bottom: 1px solid var(--frame);
	font-size: 12px; letter-spacing: .18em; color: var(--dim);
	position: sticky; top: 0; background: rgba( 8, 11, 5, .94 ); z-index: 2;
}
footer.bar { position: static; border: 0; border-top: 1px solid var(--frame); }
.bar .mark { color: var(--lit); text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 18px; }
.bar a { text-decoration: none; color: var(--dim); }
.bar a:hover { color: var(--lit); }
.bar nav a[aria-current] { color: var(--lit); border-bottom: 1px solid var(--lit); }
.page main { min-height: calc( 100vh - 120px ); }
.next { display: flex; justify-content: flex-end; border-bottom: 0; padding-top: 32px; }
.next .button { margin: 0; }
section:has( + .next ) { border-bottom: 0; padding-bottom: 32px; }
.card { display: block; border: 1px solid var(--frame); background: var(--screen); padding: 20px; text-decoration: none; color: var(--caption); transition: border-color .15s; }
.card:hover { border-color: var(--lit); }
.card h3 { color: var(--lit); font-size: 14px; margin-bottom: 8px; }
.card p { margin: 0; }

.hero { position: relative; max-width: none; padding: 0; border-bottom: 1px solid var(--frame); }
.hero img, .hero video { width: 100%; height: clamp( 320px, 62vh, 620px ); object-fit: cover; image-rendering: pixelated; opacity: .8; display: block; }
.hero-text { position: absolute; inset: 0; max-width: 1100px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: linear-gradient( 90deg, rgba( 8, 11, 5, .92 ) 35%, transparent ); }
.hero h1 { font-size: clamp( 48px, 11vw, 104px ); color: var(--caption); text-shadow: 0 3px 0 #000, 0 0 26px rgba( 159, 208, 74, .35 ); }
.tagline { color: var(--lit); letter-spacing: .3em; margin: 0; font-size: 13px; }
.lead { max-width: 52ch; margin: 0; }

.button {
	align-self: flex-start; margin-top: 10px; padding: 12px 22px;
	border: 1px solid var(--lit); color: var(--lit); text-decoration: none;
	letter-spacing: .2em; font-size: 13px; background: rgba( 159, 208, 74, .07 );
}
.button:hover { background: var(--lit); color: var(--black); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--frame); border: 1px solid var(--frame); }
.steps li { background: var(--screen); padding: 20px 24px; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; }
.steps .num { font-family: DSEG7, Departure, monospace; color: var(--dim); grid-row: span 2; font-size: 22px; }
.steps h3 { color: var(--lit); font-size: 15px; }
.steps p { margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) ); }
.grid article { border: 1px solid var(--frame); background: var(--screen); padding: 20px; }
.grid h3 { color: var(--lit); font-size: 14px; margin-bottom: 8px; }
.grid p { margin: 0; }

.shots { display: grid; gap: 12px; grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) ); }
.reel { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--frame); background: var(--black); margin-bottom: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--frame); display: block; }
.shots a:hover img { border-color: var(--lit); }
.shots figcaption { font-size: 12px; color: var(--dim); margin-top: 6px; }

.readout { display: grid; gap: 1px; grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) ); background: var(--frame); border: 1px solid var(--frame); }
.cell { background: var(--screen); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.lcd { font-family: DSEG7, Departure, monospace; font-size: 26px; color: var(--lit); text-shadow: 0 0 14px rgba( 159, 208, 74, .45 ); word-break: break-all; }
.offline { grid-column: 1 / -1; background: var(--screen); margin: 0; padding: 22px; color: var(--warn); letter-spacing: .06em; }

dl { display: grid; grid-template-columns: minmax( 160px, 220px ) 1fr; gap: 12px 24px; margin: 0; }
dt { color: var(--dim); font-size: 12px; letter-spacing: .16em; }
dd { margin: 0; }
.names { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.names span { border: 1px solid var(--frame); padding: 2px 8px; font-size: 12px; }

button { font: inherit; cursor: pointer; }
.button:disabled { opacity: .5; cursor: wait; }
.intro { max-width: 70ch; margin: 0 0 24px; }
.note { color: var(--dim); font-size: 13px; margin: 18px 0 0; }
h4 { font-size: 12px; letter-spacing: .18em; color: var(--dim); margin: 24px 0 10px; }

.listen { border: 1px solid var(--frame); background: var(--screen); display: grid; gap: 18px; padding: 22px; }
.meter { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.meter .lcd { position: relative; font-size: 44px; }
.meter .ghost { position: absolute; left: 0; color: rgba( 159, 208, 74, .08 ); text-shadow: none; }
.meter .reading { position: relative; }
.meter .unit { color: var(--dim); font-size: 13px; }
.corridor {
	--x: .5; --hot: 0;
	position: relative; height: 140px; border: 1px solid var(--frame); cursor: crosshair; touch-action: none; overflow: hidden; outline: none;
	background:
		linear-gradient( 180deg, rgba( 8, 11, 5, .7 ), transparent 30%, transparent 70%, rgba( 8, 11, 5, .8 ) ),
		repeating-linear-gradient( 90deg, transparent 0 11%, rgba( 58, 68, 40, .9 ) 11% 11.6%, rgba( 30, 36, 20, .9 ) 11.6% 16%, rgba( 58, 68, 40, .9 ) 16% 16.6%, transparent 16.6% 25% ),
		#0d1208;
}
.corridor:focus-visible { border-color: var(--lit); }
.corridor::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc( var(--hot) * .55 );
	background: repeating-linear-gradient( 0deg, rgba( 214, 220, 192, .5 ) 0 1px, transparent 1px 3px ), repeating-linear-gradient( 90deg, rgba( 159, 208, 74, .25 ) 0 1px, transparent 1px 4px );
	mix-blend-mode: screen;
}
.corridor.tick::after { animation: tick .06s steps( 1 ); }
@keyframes tick { 0% { opacity: calc( var(--hot) * .55 + .12 ); } }
.probe { position: absolute; top: 0; bottom: 0; left: calc( var(--x) * 100% ); width: 2px; margin-left: -1px; background: var(--lit); box-shadow: 0 0 calc( 6px + var(--hot) * 30px ) rgba( 159, 208, 74, calc( .3 + var(--hot) * .6 ) ); opacity: 0; transition: opacity .3s; }
.listen.on .probe { opacity: 1; }
.hit { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--lit); border-radius: 50%; opacity: 0; }
.hit.show { animation: found 1.6s ease-out; }
@keyframes found { 0% { opacity: 1; transform: scale( .6 ); } 100% { opacity: 0; transform: scale( 2.4 ); } }
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.controls .button { margin: 0; }
.line { flex: 1; min-width: 200px; letter-spacing: .08em; font-size: 13px; }
.line[data-tone="lit"] { color: var(--lit); }
.line[data-tone="warn"] { color: var(--warn); }
.tally { color: var(--dim); font-size: 12px; letter-spacing: .16em; }
.tally b { font: 18px DSEG7, Departure, monospace; color: var(--lit); letter-spacing: 0; margin-left: 6px; }

.lightbox { border: 1px solid var(--frame); background: var(--black); color: var(--caption); padding: 0; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba( 4, 6, 2, .9 ); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 96vw; max-height: calc( 96vh - 48px ); width: auto; height: auto; image-rendering: pixelated; }
.lightbox figcaption { padding: 12px 64px 12px 16px; font-size: 13px; color: var(--caption); min-height: 48px; }
.lightbox button { position: absolute; background: rgba( 8, 11, 5, .8 ); color: var(--lit); border: 1px solid var(--frame); width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: var(--lit); color: var(--black); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: calc( 50% - 46px ); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; right: 16px; bottom: 14px; font-size: 12px; color: var(--dim); letter-spacing: .14em; }

.order { display: grid; gap: 16px; grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) ); margin-top: 16px; }
.panel { border: 1px solid var(--frame); background: var(--screen); padding: 18px 20px; }
.panel h3 { font-size: 13px; color: var(--lit); margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: minmax( 90px, auto ) 1fr 28px; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .08em; padding: 3px 0; }
.bar-row > :last-child { text-align: right; color: var(--lit); }
.fill { height: 8px; background: linear-gradient( 90deg, var(--lit) calc( var(--share) * 100% ), rgba( 159, 208, 74, .08 ) 0 ); }
.recent { list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .06em; }
.recent li { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--frame); }
.recent li > :last-child { color: var(--dim); }

.filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.filter input { font: inherit; color: var(--caption); background: var(--screen); border: 1px solid var(--frame); padding: 10px 14px; max-width: 420px; }
.filter input:focus { outline: none; border-color: var(--lit); }
.release > h3 { color: var(--lit); font-size: 16px; margin-bottom: 10px; }
.entries { columns: 2 380px; column-gap: 16px; }
.entry { break-inside: avoid; margin: 0 0 16px; border: 1px solid var(--frame); border-left: 3px solid var(--dim); background: var(--screen); padding: 16px 18px; }
.entry[hidden] { display: none; }
.entry h5 { font: 13px/1.3 Tektur, Departure, sans-serif; letter-spacing: .06em; color: var(--lit); margin: 0 0 8px; text-transform: uppercase; }
.entry p { margin: 0; font-size: 14px; }
.entry summary { cursor: pointer; list-style: none; display: block; }
.entry summary::-webkit-details-marker { display: none; }
.entry:not([open]) summary p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry .more { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.entry .more::before { content: "+ READ MORE"; }
.entry[open] .more::before { content: "- LESS"; }
.entry summary:hover .more, .entry summary:hover h5 { color: var(--caption); }
details.entry[open] { border-left-color: var(--lit); }
.entry ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--caption); }
.entry li { padding: 6px 0 6px 14px; border-top: 1px solid var(--frame); position: relative; }
.entry li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; background: var(--dim); }

@media ( max-width: 640px ) {
	.meter .lcd { font-size: 34px; }
	.lb-prev, .lb-next { top: auto; bottom: 56px; }
	.hero-text { background: rgba( 8, 11, 5, .82 ); }
	.steps li { grid-template-columns: 1fr; }
	.steps .num { grid-row: auto; }
	dl { grid-template-columns: 1fr; gap: 4px; }
	dd { margin-bottom: 12px; }
}
