/**
 * Oldspeak — components.
 *
 * The spine shelf is the signature. Everything else stays quiet around it.
 */

/* ===============================================================
 * ANNOUNCEMENT BAR
 * Dismissible, remembers its state, and does not shift layout when
 * it closes (the source site's bar causes a jump).
 * =============================================================== */
.os-announce {
	background: var(--os-ink);
	color: var(--os-paper);
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
}

.os-announce[hidden] {
	display: none;
}

.os-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--os-space-s);
	min-block-size: 2.75rem;
	padding-block: var(--os-space-3xs);
	text-align: center;
}

.os-announce__text {
	margin: 0;
}

.os-announce a {
	color: var(--os-brass-bright);
	font-weight: 600;
}

.os-announce__close {
	position: absolute;
	inset-inline-end: var(--os-gutter);
	background: none;
	border: 0;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	padding: var(--os-space-3xs);
	cursor: pointer;
	opacity: 0.7;
}

.os-announce__close:hover {
	opacity: 1;
}

.os-announce__inner {
	position: relative;
}

/* ===============================================================
 * HEADER
 * Sticky, condenses on scroll. The source site's header is static
 * and the cart is three unlabelled icons.
 * =============================================================== */
.os-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: var(--os-shelf);
	color: var(--os-shelf-fg);
	border-block-end: 1px solid var(--os-shelf-rule);
	transition: padding var(--os-dur) var(--os-ease),
		box-shadow var(--os-dur) var(--os-ease);
}

.os-header__inner {
	display: flex;
	align-items: center;
	gap: var(--os-space-m);
	padding-block: var(--os-space-m);
	transition: padding-block var(--os-dur) var(--os-ease);
}

.os-header.is-condensed {
	box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.7);
}

.os-header.is-condensed .os-header__inner {
	padding-block: var(--os-space-2xs);
}

.os-header.is-condensed .os-brand__mark {
	block-size: 2rem;
}

.os-header.is-condensed .os-brand__strap {
	opacity: 0;
	block-size: 0;
	margin: 0;
}

/* Brand */
.os-brand {
	display: flex;
	align-items: center;
	gap: var(--os-space-xs);
	margin-inline-end: auto;
	text-decoration: none;
	color: inherit;
}

.os-brand__mark {
	block-size: 2.9rem;
	inline-size: auto;
	flex: none;
	transition: block-size var(--os-dur) var(--os-ease);
}

.os-brand__name {
	display: block;
	font-family: var(--os-font-display);
	font-size: var(--os-step-1);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.os-brand__strap {
	display: block;
	font-family: var(--os-font-ui);
	font-size: 0.7rem;
	letter-spacing: var(--os-tracking-label);
	text-transform: uppercase;
	color: var(--os-brass);
	overflow: hidden;
	transition: opacity var(--os-dur) var(--os-ease);
}

/* Primary nav */
.os-nav {
	font-family: var(--os-font-ui);
}

.os-nav ul {
	display: flex;
	align-items: center;
	gap: var(--os-space-m);
	list-style: none;
	margin: 0;
	padding: 0;
}

.os-nav a {
	position: relative;
	display: block;
	padding-block: var(--os-space-3xs);
	color: var(--os-shelf-fg);
	font-size: var(--os-step--1);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

/* Underline grows from the left — reads as a page being marked */
.os-nav a::after {
	content: "";
	position: absolute;
	inset-block-end: -2px;
	inset-inline-start: 0;
	inline-size: 0;
	block-size: 2px;
	background: var(--os-brass);
	transition: inline-size var(--os-dur) var(--os-ease);
}

.os-nav a:hover::after,
.os-nav .current-menu-item > a::after,
.os-nav a[aria-current="page"]::after {
	inline-size: 100%;
}

/* Header tools — labelled, unlike the source */
.os-tools {
	display: flex;
	align-items: center;
	gap: var(--os-space-2xs);
}

.os-tools__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--os-space-3xs);
	padding: var(--os-space-2xs);
	background: none;
	border: 0;
	color: var(--os-shelf-fg);
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	text-decoration: none;
	cursor: pointer;
	border-radius: var(--os-radius-sm);
}

.os-tools__btn:hover {
	color: var(--os-brass-bright);
	background: rgba(255, 255, 255, 0.06);
}

.os-tools__btn svg {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.os-tools__count {
	display: inline-grid;
	place-items: center;
	min-inline-size: 1.25rem;
	block-size: 1.25rem;
	padding-inline: 0.3em;
	border-radius: var(--os-radius-pill);
	background: var(--os-oxide);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.os-tools__count:empty,
.os-tools__count[data-count="0"] {
	display: none;
}

/* Mobile toggle */
.os-nav-toggle {
	display: none;
}

@media (max-width: 60rem) {
	.os-nav-toggle {
		display: inline-flex;
	}

	.os-nav {
		position: fixed;
		inset: 0;
		z-index: 200;
		display: grid;
		place-items: center;
		background: var(--os-shelf-deep);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--os-dur) var(--os-ease), visibility var(--os-dur);
	}

	.os-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.os-nav ul {
		flex-direction: column;
		gap: var(--os-space-m);
	}

	.os-nav a {
		font-size: var(--os-step-2);
		font-family: var(--os-font-display);
		text-transform: none;
		letter-spacing: 0;
	}
}

/* ===============================================================
 * HERO
 * Green ground. Headline is the thesis; the spine stack sits beside
 * it so the first thing you see is books, not a stock photo.
 * =============================================================== */
.os-hero {
	position: relative;
	overflow: hidden;
	background: var(--os-shelf);
	color: var(--os-shelf-fg);
	--os-fg: var(--os-shelf-fg);
	--os-muted: var(--os-shelf-muted);
}

.os-hero__inner {
	display: grid;
	gap: var(--os-space-xl);
	align-items: center;
	padding-block: clamp(3.5rem, 2rem + 7vw, 8rem);
}

@media (min-width: 62rem) {
	.os-hero--split .os-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}
}

.os-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--os-space-xs);
	margin-block-end: var(--os-space-m);
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	letter-spacing: var(--os-tracking-label);
	text-transform: uppercase;
	color: var(--os-brass);
}

/* Live open/closed dot, driven by the opening-hours block.
 * The eyebrow and the status are two separate facts, so they get a rule
 * between them rather than running together as one phrase. */
.os-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.os-hero__eyebrow > * + .os-hero__status::before {
	content: "";
	display: inline-block;
	inline-size: 1px;
	block-size: 1em;
	margin-inline-end: var(--os-space-xs);
	background: currentColor;
	opacity: 0.4;
	vertical-align: middle;
}

.os-hero__status::before {
	content: "";
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--os-muted-light);
}

.os-hero__status[data-open="1"]::before {
	background: #6fb37f;
	box-shadow: 0 0 0 3px rgba(111, 179, 127, 0.22);
}

.os-hero__title {
	margin-block-end: var(--os-space-m);
}

.os-hero__lede {
	max-inline-size: 34rem;
	font-size: var(--os-step-1);
	line-height: 1.5;
	color: var(--os-muted);
}

.os-hero--centred {
	text-align: center;
}

.os-hero--centred .os-hero__lede {
	margin-inline: auto;
}

.os-hero--centred .os-btn-row {
	justify-content: center;
}

/* Optional background image, kept behind a scrim so text stays legible */
.os-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.os-hero__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.os-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(43, 58, 52, var(--os-hero-scrim, 0.88)) 0%,
		rgba(43, 58, 52, calc(var(--os-hero-scrim, 0.88) * 0.7)) 100%
	);
}

.os-hero__inner {
	position: relative;
	z-index: 1;
}

/* ===============================================================
 * SIGNATURE — THE SPINE SHELF
 *
 * Categories drawn as book spines on a brass rail. Titles are set
 * vertically with writing-mode, so they remain real, selectable,
 * searchable text — not images. Scrolls horizontally like a shelf.
 * =============================================================== */
.os-shelf {
	position: relative;
}

.os-shelf__rail {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 3px;
	padding: var(--os-space-m) var(--os-gutter) 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--os-brass) transparent;
}

.os-shelf__rail::-webkit-scrollbar {
	block-size: 6px;
}

.os-shelf__rail::-webkit-scrollbar-thumb {
	background: var(--os-brass);
	border-radius: var(--os-radius-pill);
}

/* The rail itself — a brass strip the spines stand on */
.os-shelf::after {
	content: "";
	display: block;
	block-size: 6px;
	background: linear-gradient(
		180deg,
		var(--os-brass-bright) 0%,
		var(--os-brass) 45%,
		#7d6229 100%
	);
	box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.45);
}

.os-spine {
	position: relative;
	flex: none;
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	inline-size: clamp(3rem, 4.2vw, 4.25rem);
	block-size: var(--os-spine-h, 16rem);
	padding-block: var(--os-space-s);
	border-radius: 2px 2px 0 0;
	background: var(--os-spine-bg, var(--os-shelf-raised));
	color: var(--os-spine-fg, var(--os-paper-white));
	text-decoration: none;
	box-shadow: var(--os-shadow-spine);
	transform-origin: bottom center;
	transition: transform var(--os-dur) var(--os-ease),
		block-size var(--os-dur) var(--os-ease),
		filter var(--os-dur) var(--os-ease);
}

/* Head and tail bands — the raised ridges on a bound spine */
.os-spine::before,
.os-spine::after {
	content: "";
	position: absolute;
	inset-inline: 0.35rem;
	block-size: 1px;
	background: currentColor;
	opacity: 0.45;
}

.os-spine::before {
	inset-block-start: 2.1rem;
}

.os-spine::after {
	inset-block-end: 2.1rem;
}

/* Pull a book part-way off the shelf on hover — the real gesture */
.os-spine:hover,
.os-spine:focus-visible {
	transform: translateY(-14px);
	filter: brightness(1.1);
}

.os-spine__title {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	margin: 0;
	font-family: var(--os-font-display);
	font-size: clamp(0.85rem, 1.05vw, 1.02rem);
	letter-spacing: 0.01em;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-block-size: 100%;
}

/* Shelf mark, foil-blocked at the tail */
.os-spine__mark {
	font-family: var(--os-font-ui);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--os-brass-bright);
	writing-mode: vertical-rl;
}

.os-spine__count {
	position: absolute;
	inset-block-start: 0.6rem;
	font-family: var(--os-font-ui);
	font-size: 0.6rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}

/* Vary the heights so the shelf reads as real books, not a bar chart.
 * Applied by nth-child so it survives any category ordering. */
.os-spine:nth-child(5n + 1) { --os-spine-h: 16.5rem; }
.os-spine:nth-child(5n + 2) { --os-spine-h: 14.75rem; }
.os-spine:nth-child(5n + 3) { --os-spine-h: 17.5rem; }
.os-spine:nth-child(5n + 4) { --os-spine-h: 15.5rem; }
.os-spine:nth-child(5n + 5) { --os-spine-h: 16rem; }

/* Mobile — vertical type at small sizes is a genuine readability risk,
 * so below 40rem the shelf degrades to horizontal shelf-edge labels. */
@media (max-width: 40rem) {
	.os-shelf__rail {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--os-space-2xs);
		overflow: visible;
		padding-block-end: var(--os-space-m);
	}

	.os-shelf::after {
		display: none;
	}

	.os-spine {
		inline-size: auto;
		block-size: auto;
		flex-direction: row;
		justify-content: space-between;
		padding: var(--os-space-xs) var(--os-space-s);
		border-radius: var(--os-radius);
		border-inline-start: 4px solid var(--os-brass);
		box-shadow: none;
	}

	.os-spine::before,
	.os-spine::after,
	.os-spine__count {
		display: none;
	}

	.os-spine__title,
	.os-spine__mark {
		writing-mode: horizontal-tb;
	}

	.os-spine:hover,
	.os-spine:focus-visible {
		transform: none;
	}
}

/* ===============================================================
 * BOOK CARD
 * 2:3 covers. The single biggest fix over the source, which squares
 * every cover off and crops the title block.
 * =============================================================== */
.os-books {
	display: grid;
	gap: var(--os-space-m) var(--os-space-s);
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.os-books--roomy {
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--os-space-l) var(--os-space-m);
}

.os-book {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--os-space-2xs);
}

.os-book__cover {
	position: relative;
	display: block;
	aspect-ratio: var(--os-cover-ratio);
	overflow: hidden;
	border-radius: var(--os-radius-sm);
	background: var(--os-shelf-raised);
	box-shadow: var(--os-shadow-card);
	transition: box-shadow var(--os-dur) var(--os-ease),
		transform var(--os-dur) var(--os-ease);
}

.os-book__cover img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* The gutter shadow down the binding edge — makes a flat JPEG read
 * as a physical object without needing a mockup image. */
.os-book__cover::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 9%;
	background: linear-gradient(
		90deg,
		rgba(20, 22, 26, 0.3) 0%,
		rgba(20, 22, 26, 0.06) 55%,
		rgba(255, 255, 255, 0.1) 100%
	);
	pointer-events: none;
}

.os-book:hover .os-book__cover {
	transform: translateY(-3px);
	box-shadow: var(--os-shadow-lift);
}

.os-book__title {
	margin: 0;
	font-family: var(--os-font-display);
	font-size: var(--os-step-0);
	line-height: 1.25;
}

.os-book__title a {
	color: var(--os-fg);
	text-decoration: none;
}

.os-book__title a:hover {
	color: var(--os-oxide);
	text-decoration: underline;
}

/* Author is a real taxonomy link, not a line of the title */
.os-book__author {
	margin: 0;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	letter-spacing: 0.02em;
	color: var(--os-muted);
}

.os-book__author a {
	color: inherit;
	text-decoration: none;
}

.os-book__author a:hover {
	color: var(--os-oxide);
	text-decoration: underline;
}

.os-book__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--os-space-2xs);
	margin-block-start: auto;
	padding-block-start: var(--os-space-3xs);
}

.os-book__price {
	font-family: var(--os-font-ui);
	font-size: var(--os-step-0);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--os-fg);
}

.os-book__price del {
	margin-inline-end: 0.35em;
	font-weight: 400;
	color: var(--os-muted);
}

/* Badges — NEW, Signed, Pre-order, Sold out */
.os-badge {
	position: absolute;
	inset-block-start: var(--os-space-2xs);
	inset-inline-start: var(--os-space-2xs);
	z-index: 2;
	padding: 0.25em 0.6em;
	border-radius: var(--os-radius-sm);
	font-family: var(--os-font-ui);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	background: var(--os-ink);
	color: #fff;
}

.os-badge--new { background: var(--os-oxide); }
.os-badge--signed { background: var(--os-brass); color: var(--os-ink); }
.os-badge--preorder { background: var(--os-shelf); }
.os-badge--soldout { background: #5c5c5c; }

.os-book__format {
	font-family: var(--os-font-ui);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--os-muted);
}

/* ===============================================================
 * TESTIMONIAL
 * Single spotlight rather than a wall — one quote read properly
 * beats nine skimmed. Rotates only if the shopkeeper enables it.
 * =============================================================== */
.os-quote {
	max-inline-size: 46rem;
	margin-inline: auto;
	text-align: center;
}

.os-quote__mark {
	font-family: var(--os-font-display);
	font-size: 4rem;
	line-height: 0.6;
	color: var(--os-brass);
	opacity: 0.55;
}

.os-quote__text {
	font-family: var(--os-font-display);
	font-size: var(--os-step-2);
	line-height: 1.42;
	letter-spacing: -0.012em;
	margin-block: var(--os-space-m);
}

.os-quote__cite {
	display: block;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	font-style: normal;
	letter-spacing: var(--os-tracking-label);
	text-transform: uppercase;
	color: var(--os-muted);
}

.os-quote__nav {
	display: flex;
	justify-content: center;
	gap: var(--os-space-2xs);
	margin-block-start: var(--os-space-l);
}

.os-quote__dot {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.3;
	cursor: pointer;
	transition: opacity var(--os-dur-fast) var(--os-ease);
}

.os-quote__dot[aria-selected="true"] {
	opacity: 1;
	background: var(--os-brass);
}

/* ===============================================================
 * EVENT CARD
 * =============================================================== */
.os-events {
	display: grid;
	gap: var(--os-space-m);
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.os-event {
	display: flex;
	flex-direction: column;
	background: var(--os-paper-white);
	border: 1px solid var(--os-rule);
	border-radius: var(--os-radius);
	overflow: hidden;
}

.os-band--shelf .os-event,
.os-band--ink .os-event {
	background: var(--os-shelf-raised);
}

.os-event__media {
	aspect-ratio: 3 / 2;
	background: var(--os-shelf-raised);
}

.os-event__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.os-event__body {
	display: flex;
	flex-direction: column;
	gap: var(--os-space-2xs);
	padding: var(--os-space-m);
	flex: 1;
}

/* Date as a torn ticket stub */
.os-event__date {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4em;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--os-oxide);
}

.os-band--shelf .os-event__date {
	color: var(--os-brass-bright);
}

.os-event__title {
	margin: 0;
	font-size: var(--os-step-1);
}

.os-event__title a {
	color: inherit;
	text-decoration: none;
}

.os-event__title a:hover {
	text-decoration: underline;
}

.os-event__excerpt {
	color: var(--os-muted);
	font-size: var(--os-step--1);
}

.os-event__foot {
	margin-block-start: auto;
	padding-block-start: var(--os-space-s);
}

.os-event--past {
	opacity: 0.78;
}

/* ===============================================================
 * OPENING HOURS
 * =============================================================== */
.os-hours {
	margin: 0;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
}

.os-hours__row {
	display: flex;
	justify-content: space-between;
	gap: var(--os-space-s);
	padding-block: var(--os-space-3xs);
	border-block-end: 1px dotted var(--os-rule);
}

.os-hours__row:last-child {
	border-block-end: 0;
}

.os-hours__row.is-today {
	font-weight: 700;
	color: var(--os-brass);
}

.os-hours__day {
	margin: 0;
}

.os-hours__time {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.os-hours__closed {
	color: var(--os-muted);
}

/* ===============================================================
 * PUBLISHER ROW — letterpress-style wordmarks
 * =============================================================== */
.os-publishers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--os-space-2xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

.os-publisher {
	display: inline-flex;
	align-items: center;
	padding: 0.5em 1em;
	border: 1px solid var(--os-rule);
	border-radius: var(--os-radius-pill);
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	letter-spacing: 0.03em;
	color: var(--os-fg);
	text-decoration: none;
	transition: background-color var(--os-dur-fast) var(--os-ease),
		border-color var(--os-dur-fast) var(--os-ease);
}

.os-publisher:hover {
	background: var(--os-fg);
	border-color: var(--os-fg);
	color: var(--os-bg);
}

/* ===============================================================
 * VIDEO FACADE
 * The source site loads three autoplaying YouTube iframes on the
 * homepage. This swaps them for a poster that only loads the iframe
 * on click — a very large LCP and data saving.
 * =============================================================== */
.os-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--os-radius);
	background: var(--os-ink);
	cursor: pointer;
	border: 0;
	padding: 0;
	inline-size: 100%;
	display: block;
}

.os-embed img,
.os-embed iframe {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border: 0;
	display: block;
}

.os-embed__play {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	translate: -50% -50%;
	inline-size: 4.25rem;
	block-size: 4.25rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(143, 55, 34, 0.94);
	color: #fff;
	pointer-events: none;
	transition: transform var(--os-dur) var(--os-ease),
		background-color var(--os-dur) var(--os-ease);
}

.os-embed:hover .os-embed__play {
	transform: scale(1.08);
	background: var(--os-oxide-bright);
}

.os-embed__play svg {
	inline-size: 1.6rem;
	block-size: 1.6rem;
	fill: currentColor;
	margin-inline-start: 3px;
}

.os-embed__label {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	padding: var(--os-space-m) var(--os-space-s) var(--os-space-s);
	background: linear-gradient(transparent, rgba(20, 22, 26, 0.88));
	color: #fff;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	text-align: start;
}

/* ===============================================================
 * NEWSLETTER
 * =============================================================== */
.os-signup {
	display: grid;
	gap: var(--os-space-2xs);
	max-inline-size: 30rem;
}

.os-signup__row {
	display: flex;
	gap: var(--os-space-2xs);
	flex-wrap: wrap;
}

.os-field {
	flex: 1 1 12rem;
	min-inline-size: 0;
	padding: 0.72em 0.9em;
	border: 1px solid var(--os-rule);
	border-radius: var(--os-radius);
	background: var(--os-paper-white);
	color: var(--os-ink);
	font-family: var(--os-font-ui);
	font-size: var(--os-step-0);
}

.os-field:focus {
	border-color: var(--os-brass);
}

.os-field--invalid {
	border-color: var(--os-danger);
}

.os-signup__note {
	font-family: var(--os-font-ui);
	font-size: 0.72rem;
	color: var(--os-muted);
}

.os-signup__msg {
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	padding: var(--os-space-2xs) 0;
}

.os-signup__msg[data-state="ok"] { color: var(--os-success); }
.os-signup__msg[data-state="error"] { color: var(--os-danger); }

.os-band--shelf .os-signup__msg[data-state="ok"] { color: #8fd0a1; }
.os-band--shelf .os-signup__msg[data-state="error"] { color: #e79b91; }

/* Honeypot */
.os-hp {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* ===============================================================
 * EXPANDABLE CARDS (About page — Our Logo / Our Name / Western Core)
 * The source truncates with a "Read More" that navigates away.
 * These expand in place with a real <details>, no JS required.
 * =============================================================== */
.os-cards {
	display: grid;
	gap: var(--os-space-m);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.os-card {
	border: 1px solid var(--os-rule);
	border-radius: var(--os-radius);
	background: var(--os-paper-white);
	overflow: hidden;
}

.os-band--shelf .os-card {
	background: var(--os-shelf-raised);
}

.os-card__media {
	aspect-ratio: 4 / 3;
	background: var(--os-shelf-raised);
}

.os-card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.os-card__body {
	padding: var(--os-space-m);
}

.os-card details > summary {
	list-style: none;
	cursor: pointer;
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--os-oxide);
	padding-block-start: var(--os-space-2xs);
}

.os-band--shelf .os-card details > summary {
	color: var(--os-brass-bright);
}

.os-card details > summary::-webkit-details-marker {
	display: none;
}

.os-card details > summary::after {
	content: " \2193";
}

.os-card details[open] > summary::after {
	content: " \2191";
}

.os-card details[open] > summary {
	margin-block-end: var(--os-space-2xs);
}

/* ===============================================================
 * FOOTER
 * =============================================================== */
.os-footer {
	background: var(--os-shelf-deep);
	color: var(--os-shelf-fg);
	--os-fg: var(--os-shelf-fg);
	--os-muted: var(--os-shelf-muted);
	--os-rule: var(--os-shelf-rule);
	padding-block: var(--os-space-2xl) var(--os-space-l);
}

.os-footer__grid {
	display: grid;
	gap: var(--os-space-xl);
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	padding-block-end: var(--os-space-xl);
	border-block-end: 1px solid var(--os-rule-dark);
}

.os-footer__title {
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
	font-weight: 600;
	letter-spacing: var(--os-tracking-label);
	text-transform: uppercase;
	color: var(--os-brass);
	margin-block-end: var(--os-space-s);
}

.os-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--os-space-2xs);
}

.os-footer a {
	color: var(--os-fg);
	text-decoration: none;
	font-size: var(--os-step--1);
}

.os-footer a:hover {
	color: var(--os-brass-bright);
	text-decoration: underline;
}

.os-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--os-space-s);
	padding-block-start: var(--os-space-l);
	font-family: var(--os-font-ui);
	font-size: 0.75rem;
	color: var(--os-muted-light);
}

/* ===============================================================
 * EMPTY STATES
 *
 * Shown only to logged-in editors. Visitors get nothing, and the
 * surrounding band collapses to no height.
 * =============================================================== */
.os-empty {
	padding: var(--os-space-m);
	border: 1px dashed var(--os-rule);
	border-radius: var(--os-radius);
	background: color-mix(in srgb, var(--os-brass) 7%, transparent);
	font-family: var(--os-font-ui);
	font-size: var(--os-step--1);
}

.os-empty__text {
	margin: 0 0 var(--os-space-2xs);
	font-weight: 600;
}

.os-empty__note {
	margin: var(--os-space-2xs) 0 0;
	color: var(--os-muted);
	font-size: 0.75rem;
}
