/* nathansheldon.com: studio theme. Dark by default, light when the
   system asks for it. All colors come from the tokens below. */

:root {
	--bg: #0e0e10;
	--bg-raise: #151518;
	--surface: #1b1b1f;
	--surface-2: #232328;
	--line: #2c2c33;
	--text: #ecebe8;
	--muted: #a09fa6;
	--faint: #6d6c74;
	--accent: #f5a524;        /* amber, like a VU meter */
	--accent-strong: #ffbe4d;
	--accent-ink: #1a1102;
	--accent-soft: rgb(245 165 36 / 0.12);
	--glow: 0 0 0 1px rgb(245 165 36 / 0.35), 0 0 24px rgb(245 165 36 / 0.15);

	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 72rem;
	--gutter: clamp(16px, 4vw, 40px);

	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #f6f4ef;
		--bg-raise: #efece5;
		--surface: #ffffff;
		--surface-2: #f2efe8;
		--line: #dedad1;
		--text: #19181b;
		--muted: #5c5a62;
		--faint: #8a8790;
		--accent: #b0640a;
		--accent-strong: #8e4f05;
		--accent-ink: #ffffff;
		--accent-soft: rgb(176 100 10 / 0.1);
		--glow: 0 0 0 1px rgb(176 100 10 / 0.35);
		color-scheme: light;
	}
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.has-player { padding-bottom: 5.5rem; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; margin-top: 2.2em; }
h3 { font-size: 1.2rem; font-weight: 650; margin-top: 1.8em; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
kbd {
	padding: 0.1em 0.45em; border: 1px solid var(--line); border-bottom-width: 2px;
	border-radius: 5px; background: var(--surface); white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 44rem; }
.narrow { max-width: 48rem; }
.narrow > h2:first-child { margin-top: 0; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker, .eyebrow {
	font: 600 0.75rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 0.9rem;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Top bar ---------- */

.topbar {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand {
	display: inline-flex; align-items: center; gap: 0.6rem;
	color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem;
}
.brand:hover { color: var(--text); }
.brand__mark { display: block; width: 1.65rem; height: 1.65rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
	display: block; padding: 0.45rem 0.75rem; border-radius: 999px;
	color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 550; cursor: pointer;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav [aria-current] { color: var(--text); background: var(--surface-2); }

@media (max-width: 34rem) {
	.topbar__inner { padding-block: 0.4rem; gap: 0.2rem; }
	.nav { width: 100%; margin-inline: -0.75rem; }
	.nav a { padding-inline: 0.7rem; font-size: 0.92rem; }
}

/* ---------- Page heading ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background:
	radial-gradient(60rem 18rem at 10% -20%, var(--accent-soft), transparent 70%); }
.page-head h1 { margin-bottom: 0.35em; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font: 600 0.75rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; color: var(--faint); margin-right: 0.4rem; }
.crumbs a { color: var(--accent); text-decoration: none; }
.subnav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.subnav a {
	display: block; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
	color: var(--muted); text-decoration: none; font-size: 0.9rem;
}
.subnav a:hover { color: var(--text); border-color: var(--faint); }
.subnav [aria-current] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section > .wrap > h2:first-child, h2.section__title { margin-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__head h2 { margin: 0; }
.section__head a { font-size: 0.95rem; text-decoration: none; }

/* ---------- Home hero ---------- */

.hero {
	position: relative; overflow: hidden;
	padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
	background:
		radial-gradient(50rem 30rem at 85% 10%, var(--accent-soft), transparent 65%),
		radial-gradient(40rem 20rem at 0% 100%, rgb(120 120 140 / 0.08), transparent 70%);
	border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 0.95; margin-bottom: 0.3em; }
.hero .lede { margin-bottom: 1.6rem; }
.hero__title { display: flex; align-items: center; gap: 0.3em; font-size: clamp(2.8rem, 8vw, 5.4rem); margin-bottom: 0.3em; }
.hero__title h1 { font-size: inherit; margin: 0; }
.monogram {
	flex: none; font-size: inherit; width: 1.9em; height: 1.9em; padding: 0; border: 0; background: none;
	border-radius: 22%; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.monogram svg { display: block; width: 100%; height: 100%; }
.monogram:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.release {
	background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
	padding: 0.75rem; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
}
.release__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.release__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.release__body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.5rem 0.3rem; flex-wrap: wrap; }
.release__title { font-weight: 700; font-size: 1.15rem; margin: 0; }
.release__meta { font: 500 0.8rem/1.3 var(--mono); color: var(--muted); margin: 0.2rem 0 0; }

.led {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.led::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- Buttons and pills ---------- */

.button {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.7rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
	background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; line-height: 1.2;
}
.button:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--faint); }

.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
	display: inline-block; padding: 0.42rem 0.9rem; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface);
	color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 550;
}
.pill:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--glow); }

.pills--sm { margin: 0; }
.pills--sm .pill { padding: 0.32rem 0.75rem; font-size: 0.82rem; }

.feature {
	padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px);
	border: 1px solid var(--line);
	background: radial-gradient(40rem 16rem at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.feature h2 { margin-top: 0; }
.feature .muted { max-width: 40rem; }
.feature > div > :last-child { margin-bottom: 0; }

/* ---------- Album covers and grid ---------- */

.albums { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
@media (max-width: 26rem) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.album-card { display: flex; flex-direction: column; gap: 0.15rem; color: var(--text); text-decoration: none; }
.album-card .cover { margin-bottom: 0.65rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.album-card:hover .cover { transform: translateY(-4px); box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.7), var(--glow); }
.album-card:hover { color: var(--text); }
.album-card__title { font-weight: 650; line-height: 1.25; }
.album-card__meta { font: 500 0.8rem/1.3 var(--mono); color: var(--muted); }

.cover {
	display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
	border-radius: var(--radius-sm); background: var(--surface-2);
	box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.6);
}
.cover--type {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
	padding: 9%; color: #f7f3ea;
	background:
		radial-gradient(120% 90% at 100% 0%, hsl(var(--hue) 70% 55% / 0.85), transparent 60%),
		radial-gradient(90% 80% at 0% 100%, hsl(calc(var(--hue) + 40) 55% 30% / 0.9), transparent 70%),
		hsl(var(--hue) 25% 10%);
}
.cover--type::after {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.04) 0 1px, transparent 1px 4px);
}
.cover__title { position: relative; z-index: 1; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.cover__year { position: relative; z-index: 1; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.15em; opacity: 0.85; }
.cover--lg .cover__title { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- Music overview and singles ---------- */

.latest { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .latest { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); } }
.latest h2 { margin: 0.6rem 0 0.2rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.latest .pills { margin: 1.2rem 0 0; }

.singles { list-style: none; margin: 0 0 2rem; padding: 0; }
.single {
	display: grid; gap: 1rem 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line);
	grid-template-columns: 6.5rem minmax(0, 1fr); scroll-margin-top: 5rem;
}
.single:first-child { padding-top: 0; }
.single h2 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.single .pills { margin: 0.8rem 0 0; }
.single__gear { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }
.single .embed { grid-column: 1 / -1; margin: 0; }
@media (min-width: 60rem) {
	.single { grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 26rem); }
	.single .embed { grid-column: auto; }
}
.single:target .single__body h2 { color: var(--accent); }

/* ---------- Album page ---------- */

.album-head { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 44rem) { .album-head { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } }
.album-head h1 { margin-bottom: 0.25em; }
.album-head .pills { margin: 1.2rem 0 0; }
.album-head .crumbs ol { margin-bottom: 0.75rem; }
.album-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .album-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.album-layout h2:first-child { margin-top: 0; }
.notes dt { font-weight: 650; margin-top: 1.1rem; }
.notes dd { margin: 0.2rem 0 0; color: var(--muted); }
.album-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.album-nav [aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Track list ---------- */

.tracks, .downloads { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.track, .dl {
	display: grid; align-items: center; gap: 0.85rem;
	grid-template-columns: 2.4rem 1.6rem minmax(0, 1fr) auto;
	padding: 0.55rem 0.25rem; border-bottom: 1px solid var(--line);
}
.track:hover, .dl:hover { background: var(--bg-raise); }
.track__num { font: 500 0.82rem/1 var(--mono); color: var(--faint); }
.track__title { font-weight: 550; overflow-wrap: anywhere; }
.track__note { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.track__dl { color: var(--faint); padding: 0.35rem; border-radius: 6px; display: inline-flex; }
.track__dl:hover { color: var(--accent); background: var(--surface); }

.track__play {
	position: relative; width: 2.2rem; height: 2.2rem; flex: none;
	display: inline-grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.track__play span {
	width: 0; height: 0; margin-left: 3px;
	border-style: solid; border-width: 0.4rem 0 0.4rem 0.65rem; border-color: transparent transparent transparent currentColor;
}
.track__play:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.track__play.is-playing, .track__play.is-paused { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track__play.is-playing span { margin: 0; width: 0.65rem; height: 0.75rem; border: 0; border-inline: 0.22rem solid currentColor; }

.dl { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
.dl__icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--faint); }
.dl__body a { font-weight: 550; text-decoration: none; overflow-wrap: anywhere; }
.dl__body a:hover { text-decoration: underline; }
.dl__desc { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }
.dl__meta { font: 500 0.75rem/1.3 var(--mono); color: var(--faint); white-space: nowrap; text-align: right; }
@media (max-width: 34rem) {
	.dl { grid-template-columns: 2.4rem minmax(0, 1fr); row-gap: 0.2rem; }
	.dl__meta { grid-column: 2; text-align: left; }
}

/* Streaming track list: number, title, length, links; notes underneath */
.tracks--stream .track { grid-template-columns: 2rem minmax(0, 1fr) auto auto; padding: 0.7rem 0.25rem; row-gap: 0.4rem; }
.track__len { font: 500 0.8rem/1 var(--mono); color: var(--faint); }
.track__links { display: flex; gap: 0.35rem; justify-content: flex-end; }
.track__notes { grid-column: 2 / -1; color: var(--muted); font-size: 0.95rem; }
.track__notes p { margin: 0 0 0.6em; }
.track__notes > :last-child { margin-bottom: 0; }
@media (max-width: 34rem) {
	.tracks--stream .track { grid-template-columns: 2rem minmax(0, 1fr) auto; }
	.track__links { grid-column: 2 / -1; justify-content: flex-start; }
}
.tag {
	display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; white-space: nowrap;
	border: 1px solid var(--line); color: var(--muted); text-decoration: none;
	font: 600 0.7rem/1.2 var(--mono); letter-spacing: 0.04em;
}
.tag:hover { color: var(--text); border-color: var(--accent); }
.tag-row { justify-content: flex-start; flex-wrap: wrap; margin-top: 0.5rem; }
.track__gear { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: -0.15rem; }
.tag--gear { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

/* Embedded players */
.embed { display: block; width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0 0 1.75rem; }
.embed--video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gear-group + .gear-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cards--gear { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }  /* all five instruments in one row on desktop */

/* Home page: the rest of the gear, one row of links per category */
.gear-index { margin: 1.75rem 0 0; }
.gear-index__row {
	display: grid; gap: 0.6rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line);
	grid-template-columns: minmax(0, 1fr); align-items: center;
}
.gear-index__row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .gear-index__row { grid-template-columns: 17.5rem minmax(0, 1fr); } }
.gear-index dt a { color: var(--text); font-weight: 600; text-decoration: none; }
.gear-index dt a:hover { color: var(--accent); }
.gear-index dd { margin: 0; }
.card {
	position: relative; display: flex; flex-direction: column; gap: 0.45rem;
	padding: 1.35rem 1.35rem 3.4rem; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
	color: var(--text); text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.card:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-2px); }
.card__kicker { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card__title { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; }
.card__body { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.card__more { position: absolute; left: 1.35rem; bottom: 1.1rem; color: var(--faint); }
a.card:hover .card__more { color: var(--accent); }

/* Hardware-panel strip used to label gear sections */
.panel {
	display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0.8rem;
	border-radius: 6px; background: #0a0d0a; color: #9fe870; border: 1px solid #222;
	font: 500 0.85rem/1.2 var(--mono); letter-spacing: 0.08em; text-shadow: 0 0 6px rgb(159 232 112 / 0.5);
}

/* ---------- Content: prose, tables, figures ---------- */

.content { padding-block: clamp(2rem, 5vw, 3.5rem); }
.content > .wrap > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.3rem; }
.lyrics { font-size: 1.15rem; }
.lyrics .pills { margin-bottom: 2rem; }
.lyrics__chorus { margin: 0 0 1.1em; padding-left: 1.25rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--muted); }
.pills li + li { margin-top: 0; }
.prose .pills { padding-left: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }
th, td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-raise); }
tbody th { font-weight: 600; color: var(--text); width: 30%; }
td .mono, td code { color: var(--accent); }

.gear-photo { margin: 0 0 2.5rem; }
.gear-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 26rem; margin-inline: auto; }  /* never upscaled past the file's own size */

figure.diagram {
	margin: 1.5rem 0 2rem; padding: 1rem; border-radius: var(--radius);
	background: #ffffff; border: 1px solid var(--line); text-align: center;
}
figure.diagram img { display: block; margin-inline: auto; image-rendering: auto; }
figure.diagram figcaption { color: #555; font-size: 0.85rem; margin-top: 0.6rem; }
figure.lcd { background: #0a0d0a; }

.callout {
	padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line);
	background: var(--bg-raise); margin: 0 0 1.5rem;
}
.callout > :last-child { margin-bottom: 0; }

.notice {
	max-width: 40rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 4px);
	background: var(--surface); border: 1px solid var(--line);
}
.notice__title { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.4rem; }
.notice > :last-child { margin-bottom: 0; }

details.changelog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 1.5rem; }
details.changelog > summary { padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 600; }
details.changelog[open] > summary { border-bottom: 1px solid var(--line); }
details.changelog > :not(summary) { margin: 1rem 1.1rem; }

/* Two-column layout with a sticky sidebar (guides, plugin pages) */
.with-aside { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .with-aside { grid-template-columns: minmax(0, 1fr) 16rem; } .with-aside--wide { grid-template-columns: minmax(0, 1fr) 22rem; } }
.aside { font-size: 0.93rem; }
@media (min-width: 60rem) { .aside > div { position: sticky; top: 5rem; } }
.aside h2 { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.aside ol, .aside ul { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 1px solid var(--line); }
.aside li a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.aside li a:hover { color: var(--text); }
.aside li a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.aside .pills { border-left: 0; }
.aside .pills a { padding: 0.35rem 0.8rem; margin: 0; border: 1px solid var(--line); color: var(--text); }
.aside .pills a[aria-current] { border-color: var(--accent); color: var(--accent-ink); }
.aside .embed + h2 { margin-top: 0; }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; text-decoration: none; max-width: 48%; }
.pager a span { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pager .next { text-align: right; margin-left: auto; }

/* Thumbnail grid for photo folders */
.thumbs { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); list-style: none; padding: 0; }
.thumbs a { display: block; text-decoration: none; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs span { display: block; padding: 0.4rem 0.6rem; font-size: 0.85rem; color: var(--muted); background: var(--surface); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-raise); padding: 2.5rem 0; margin-top: clamp(2rem, 6vw, 4rem); }
.footer__inner { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.footer__name { font-weight: 700; margin: 0 0 0.3rem; }
.footer__small { color: var(--faint); font-size: 0.85rem; margin: 0; max-width: 30rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.92rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Sticky player ---------- */

.player {
	position: fixed; inset: auto 0 0 0; z-index: 60;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(0 0 0 / 0.3);
}
.player[hidden] { display: none; }
.player__inner { display: flex; align-items: center; gap: 0.9rem; min-height: 4.5rem; }
.player__toggle, .player__close {
	flex: none; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.player__toggle { width: 2.75rem; height: 2.75rem; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.player__close { width: 2.2rem; height: 2.2rem; color: var(--muted); }
.player__info { min-width: 0; flex: 0 1 16rem; display: flex; flex-direction: column; }
.player__title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__album { font: 500 0.75rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__audio { flex: 1 1 auto; min-width: 0; height: 2.5rem; }
@media (max-width: 40rem) {
	.player__inner { flex-wrap: wrap; gap: 0.4rem 0.75rem; padding-block: 0.6rem; }
	.player__info { flex: 1 1 0; }
	.player__audio { order: 3; flex-basis: 100%; }
	body.has-player { padding-bottom: 8rem; }
}

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