/* Exploding, Plastic & Inevitable: shared stylesheet for the archive pages. */

*, *::before, *::after { box-sizing: border-box; }

:root {
	--fg: #111;
	--muted: #444;
	--dim: #777;
	--rule: #cfcfcf;
	--link: #0033cc;
	--max: 880px;
}

body {
	margin: 0;
	color: var(--fg);
	background: #fff url(../images/head.gif) no-repeat right -60px top;
	font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: #000; }
:focus-visible { outline: 2px solid #0033cc; outline-offset: 3px; }

.masthead { max-width: var(--max); margin: 0 auto; padding: 14px 1rem 0; min-height: 176px; }
.masthead .title { display: inline-block; }
.masthead .title img { display: block; max-width: 100%; height: auto; }

.panel {
	max-width: var(--max);
	margin: 0 auto 5rem;
	padding: 1rem 1.4rem 1.6rem;
	border: 1px dotted #666;
	background: rgba(255, 255, 255, .92);
	position: relative;
}
@media (min-width: 920px) {
	.panel { margin-bottom: 5rem; }
}

.sections { display: flex; justify-content: flex-end; gap: 1.1rem; margin: 0 0 .4rem; }
.sections a { display: block; padding-bottom: 4px; border-bottom: 3px solid transparent; line-height: 0; }
.sections a.here { border-bottom-color: var(--fg); }
.sections a:not(.here) img { opacity: .75; }
.sections a:hover img { opacity: 1; }
.sections img { display: block; max-width: 100%; height: auto; }

h1 { margin: 0 0 .8rem; font: bold 24px/1.2 Arial, Helvetica, sans-serif; }
h2 { margin: 2.2rem 0 .3rem; font: bold 16px/1.3 Arial, Helvetica, sans-serif; }
section:first-of-type h2 { margin-top: 1.4rem; }

.lede { margin: 0 0 1rem; color: var(--muted); }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose .note { color: var(--dim); font-size: .9rem; }
.credits p { font-size: .9rem; }

/* ---- home page ---- */
ul.events { list-style: none; margin: 0 0 1.6rem; padding: 0; }
ul.events li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 .8rem; padding: .22rem 0; font-size: .92rem; border-bottom: 1px solid #eee; }
ul.events .date { font-weight: 700; }

blockquote.quote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--fg); }
blockquote.quote p { margin: 0 0 .5rem; color: var(--muted); }
blockquote.quote footer { font-weight: 700; font-size: .9rem; }

/* ---- galleries ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: .9rem; }
.gallery a { display: block; line-height: 0; border: 1px solid var(--rule); background: #ddd; }
.gallery a:hover { border-color: var(--fg); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery.strip { grid-template-columns: repeat(5, 1fr); margin-top: 1.4rem; }

.set .meta { margin: 0; color: var(--dim); font-size: .88rem; }
.jump { margin: 0 0 .5rem; color: var(--dim); font-size: .85rem; line-height: 1.9; }

/* ---- videos ---- */
ul.videos { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
a.vid { display: flex; gap: .9rem; align-items: flex-start; padding: .6rem; border: 1px solid var(--rule); text-decoration: none; color: inherit; height: 100%; }
a.vid:hover { border-color: var(--fg); }
a.vid img { flex: 0 0 auto; display: block; width: 120px; height: 80px; object-fit: cover; background: #ddd; }
a.vid .txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
a.vid .vt { font-weight: 700; font-size: .92rem; line-height: 1.35; }
a.vid .who, a.vid .extra { font-size: .82rem; color: var(--muted); line-height: 1.4; }
a.vid .meta { font-size: .8rem; color: var(--dim); margin-top: .1rem; }

/* ---- sounds ---- */
ul.tracks { list-style: none; margin: .5rem 0 0; padding: 0; }
a.track { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .5rem .55rem; margin: 0 -.55rem; border-bottom: 1px dotted var(--rule); text-decoration: none; color: var(--fg); }
a.track:hover { background: #f2f2f2; }
a.track.playing { background: var(--fg); color: #fff; }
a.track .tt { min-width: 0; }
a.track .meta { flex: 0 0 auto; font-size: .82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
a.track.playing .meta { color: #ccc; }

/* ---- mini player ---- */
#player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; gap: .9rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
#player.on { display: flex; }
#player .now { flex: 0 1 18rem; min-width: 0; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player audio { flex: 1 1 auto; min-width: 0; height: 36px; }
#player a, #player button { color: #fff; font: inherit; font-size: .78rem; }
#player button { background: transparent; border: 1px solid #666; border-radius: 3px; padding: .3rem .6rem; cursor: pointer; }
#player button:hover { border-color: #fff; }

/* ---- lightbox + video overlay ---- */
.tb-overlay { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 2rem 1rem; background: rgba(0,0,0,.93); z-index: 999; }
.tb-overlay.open { display: flex; }
.tb-overlay img { display: block; max-width: 100%; max-height: 80vh; border: 2px solid #fff; }
.tb-overlay video { display: block; max-width: 100%; max-height: 78vh; background: #000; border: 2px solid #fff; }
.tb-overlay .tb-cap { max-width: 90ch; color: #eee; font-size: .92rem; text-align: center; min-height: 1.4em; }
.tb-overlay .tb-cap a { color: #9bb8ff; }
.tb-overlay button { position: absolute; background: rgba(20,20,20,.85); color: #fff; border: 1px solid #555; border-radius: 4px; font: inherit; font-size: 1.5rem; line-height: 1; padding: .45rem .85rem; cursor: pointer; }
.tb-overlay .tb-close { top: 1rem; right: 1.2rem; }
.tb-overlay .tb-nav { top: 50%; transform: translateY(-50%); }
.tb-overlay .tb-prev { left: 1rem; }
.tb-overlay .tb-next { right: 1rem; }

/* ---- narrow screens ---- */
@media (max-width: 920px) {
	body { background-image: none; }
}
@media (max-width: 640px) {
	.masthead { min-height: 0; padding-bottom: .8rem; }
	.panel { border-left: 0; border-right: 0; padding: 1rem 1rem 1.4rem; }
	ul.events li { grid-template-columns: 1fr; padding: .35rem 0; }
	.gallery.strip { grid-template-columns: repeat(2, 1fr); }
	ul.videos { grid-template-columns: 1fr; }
	a.track { flex-direction: column; gap: .1rem; }
	#player { flex-wrap: wrap; }
	#player .now { flex: 1 1 100%; }
	#player audio { flex: 1 1 60%; }
	.sections img { height: 34px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
