/* ==========================================================================
   P&A Kalantzis · Caffè Barbera Hellas
   Tokens → base → components → sections. Light + dark via prefers-color-scheme.
   Radius rule: interactive controls are pills, media and tiles use --r-lg,
   inputs use --r-md. Nothing else.
   ========================================================================== */

:root {
	--bg: #f4f4f2;
	--surface: #fbfbfa;
	--surface-2: #e9e9e5;
	--ink: #161616;
	--ink-2: #56564f;
	--line: rgb(22 22 22 / .12);
	--accent: #b3261e;
	--accent-hover: #9c1f18;
	--on-accent: #fbfaf9;
	--scrim: rgb(14 14 13 / .62);
	--glass: rgb(244 244 242 / .72);
	--shadow: 0 1px 2px rgb(40 30 20 / .06), 0 12px 40px -12px rgb(40 30 20 / .18);

	--sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "EB Garamond", "Iowan Old Style", Georgia, serif;

	--r-lg: 18px;
	--r-md: 12px;
	--pill: 999px;

	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 48px);
	--header-h: 68px;
	--section: clamp(88px, 12vw, 168px);

	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111110;
		--surface: #1a1a18;
		--surface-2: #252522;
		--ink: #ecebe7;
		--ink-2: #a5a49d;
		--line: rgb(236 235 231 / .12);
		--accent: #cf3a2e;
		--accent-hover: #e04a3d;
		--glass: rgb(17 17 16 / .7);
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 48px -16px rgb(0 0 0 / .6);
	}
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--sans);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .skip:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--surface); padding: .6rem 1rem; border-radius: var(--pill); }
.muted { color: var(--ink-2); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */

.h2, .page-head__title, .hero__title, .story__quote p {
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -0.015em;
}

.hero__title {
	font-size: clamp(2.75rem, 5.4vw, 5.25rem);
	line-height: 1.04;
}

.h2 {
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	line-height: 1.08;
	max-width: 20ch;
}

.h3 { font: 500 1.375rem/1.2 var(--sans); letter-spacing: -0.01em; }

em { font-style: italic; }
.hero__title em, .page-head__title em, .h2 em {
	color: var(--accent);
	/* Italic descender clearance (γ, ρ, φ, ψ, χ). */
	display: inline-block;
	padding-bottom: .08em;
}

.eyebrow {
	font: 500 .8125rem/1.3 var(--sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
	margin-bottom: 1.25rem;
}

.lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 48px; padding: .8rem 1.5rem;
	border: 1px solid transparent; border-radius: var(--pill);
	font: 500 1rem/1 var(--sans); white-space: nowrap; text-decoration: none;
	cursor: pointer; user-select: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease-out;
}
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .5em;
	font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line);
	padding-bottom: .25em; transition: border-color .2s ease;
}
.link-arrow:hover { border-color: var(--ink); }
.link-arrow .icon { transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.round-btn {
	display: grid; place-items: center; width: 48px; height: 48px;
	border: 1px solid var(--line); border-radius: var(--pill); background: transparent; cursor: pointer;
	transition: border-color .2s ease, opacity .2s ease, transform .12s ease-out;
}
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }

/* ---------- Header (translucent material once content scrolls under) ---------- */

.nav-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 40;
	height: var(--header-h);
	transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
	background: var(--glass);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	backdrop-filter: blur(20px) saturate(170%);
	box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; margin-right: auto; }
/* Doubled class beats WooCommerce's `.woocommerce-page img { height: auto }`. */
.brand__barbera.brand__barbera { height: 40px; width: auto; max-width: none; flex: none; }
.brand__text { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
.brand__name { font: 500 1.25rem/1 var(--serif); letter-spacing: -0.005em; white-space: nowrap; }
.brand__sub { font: 500 .625rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: .35rem; white-space: nowrap; }
.brand__barbera.brand__barbera--lg { height: 64px; }
@media (max-width: 420px) {
	.brand { gap: 10px; }
	.brand__barbera.brand__barbera { height: 32px; }
	.brand__text { padding-left: 10px; }
	.brand__name { font-size: 1.0625rem; }
	.brand__sub { display: none; }
}
.brand__logo { max-height: 44px; width: auto; }

.nav__list { display: flex; gap: .25rem; }
.nav__list a {
	display: block; padding: .5rem .85rem; border-radius: var(--pill);
	font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
	transition: color .2s ease, background-color .2s ease;
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--ink); background: var(--surface-2); }

.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.bag { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill); text-decoration: none; }
.bag:hover { background: var(--surface-2); }
.bag .icon { width: 22px; height: 22px; }
.bag__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center; border-radius: var(--pill);
	background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 600;
}
.bag__count:empty { display: none; }

.menu-toggle {
	display: none; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: var(--pill); background: transparent; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 35; padding-top: var(--header-h);
	background: var(--scrim);
	opacity: 0; transition: opacity .25s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__panel {
	margin: 8px var(--gutter); padding: 12px; border-radius: var(--r-lg);
	background: var(--surface); box-shadow: var(--shadow);
	transform-origin: top right; transform: translateY(-8px) scale(.98);
	transition: transform .35s var(--ease-out);
	display: grid; gap: 8px;
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__list a { display: block; padding: 14px 12px; font-size: 1.125rem; font-weight: 500; text-decoration: none; border-radius: var(--r-md); }
.mobile-menu__list a:active { background: var(--surface-2); }

@media (max-width: 960px) {
	.nav, .hide-sm { display: none; }
	.menu-toggle { display: grid; }
}

/* ---------- Reveal on enter (storytelling order, never decorative loops) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0; transform: translateY(18px);
		transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
		transition-delay: calc(var(--d, 0) * 80ms);
	}
	.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Hero: asymmetric split ---------- */

.hero { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero__grid {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(32px, 6vw, 96px); align-items: center;
	min-height: calc(100dvh - var(--header-h) - 112px);
}
.hero__copy { max-width: 620px; }
.hero__text { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--ink-2); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__media {
	position: relative; overflow: hidden; border-radius: var(--r-lg);
	aspect-ratio: 3 / 4; max-height: calc(100dvh - var(--header-h) - 96px);
	background: var(--surface-2); justify-self: end; width: 100%;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hero__media img { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		@keyframes hero-drift { to { transform: scale(1.08) translateY(4%); } }
	}
}

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { aspect-ratio: 4 / 5; max-height: 72dvh; justify-self: stretch; }
}

/* ---------- Story: editorial statement + facts ---------- */

.story { padding-block: var(--section); }
.story__quote p {
	font-size: clamp(1.875rem, 3.6vw, 3.25rem); line-height: 1.16;
	max-width: 26ch; margin-inline: auto; text-align: center;
}
.facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
	margin-top: clamp(64px, 8vw, 112px); padding-top: 32px; border-top: 1px solid var(--line);
}
.fact__value { font: 400 clamp(2.5rem, 4vw, 3.75rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--accent); }
.fact__label { margin-top: .9rem; color: var(--ink-2); font-size: .9688rem; max-width: 28ch; }
.story .link-arrow { margin-top: 56px; }

@media (max-width: 860px) {
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Collection: scroll-snap rail ---------- */

.collection { padding-block: 0 var(--section); }
.collection__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rail-controls { display: flex; gap: 8px; }

.rail {
	--edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(248px, 26vw, 340px);
	gap: clamp(16px, 2vw, 24px);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
	padding: 4px var(--edge) 24px;
	scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.collection > .wrap:last-child { margin-top: 24px; }

.card__link { display: block; text-decoration: none; }
.card__media {
	display: block; overflow: hidden; border-radius: var(--r-lg);
	aspect-ratio: 4 / 5; background: var(--surface-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__link:active .card__media { transform: scale(.985); transition: transform .1s ease-out; }
.card__meta { display: block; margin-top: 1rem; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); }
.card__title { display: block; margin-top: .2rem; font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.01em; }
.card__text { display: block; margin-top: .4rem; color: var(--ink-2); font-size: .9688rem; }
.card__price { display: block; margin-top: .6rem; font-weight: 500; }

@media (max-width: 640px) {
	.rail-controls { display: none; }
	.rail { grid-auto-columns: 78vw; }
}

/* ---------- Craft: sticky media, steps light up ---------- */

.craft { padding-block: var(--section); background: var(--surface); }
.craft__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.craft__media {
	position: sticky; top: calc(var(--header-h) + 24px);
	height: calc(100dvh - var(--header-h) - 48px); max-height: 820px;
	overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2);
}
.craft__media img { width: 100%; height: 100%; object-fit: cover; }
.craft__body { padding-top: 4vh; }
.steps { margin-top: 48px; counter-reset: s; }
.step {
	display: grid; grid-template-columns: 48px 1fr; column-gap: 16px;
	padding-block: clamp(28px, 7vh, 72px);
	border-top: 1px solid var(--line);
	transition: opacity .5s ease;
}
.js .step { opacity: .38; }
.js .step.is-active { opacity: 1; }
.step__n { font: 400 1.5rem/1.2 var(--serif); color: var(--accent); grid-row: span 2; }
.step__title { font: 500 1.375rem/1.25 var(--sans); letter-spacing: -0.01em; }
.step__text { margin-top: .6rem; color: var(--ink-2); max-width: 42ch; }

@media (max-width: 860px) {
	.craft__grid { grid-template-columns: 1fr; }
	.craft__media { position: relative; top: 0; height: auto; aspect-ratio: 4 / 3; }
	.js .step { opacity: 1; }
}

/* ---------- HoReCa: bento ---------- */

.horeca { padding-block: var(--section); }
.horeca__title { margin-bottom: 48px; }
.bento {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(260px, 34vh));
	gap: clamp(12px, 1.4vw, 20px); margin-bottom: 48px;
}
.tile {
	position: relative; overflow: hidden; border-radius: var(--r-lg);
	padding: clamp(20px, 2.4vw, 32px);
	display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
	background: var(--surface-2);
}
.tile h3 { font: 500 1.25rem/1.25 var(--sans); letter-spacing: -0.01em; }
.tile p { font-size: .9688rem; max-width: 40ch; }
.tile .icon { width: 28px; height: 28px; margin-bottom: auto; }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }

.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover > img { transform: scale(1.03); }
.tile--photo, .tile--texture { color: #f4f3ef; }
.tile--photo::after, .tile--texture::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgb(12 11 10 / .82) 0%, rgb(12 11 10 / .35) 45%, rgb(12 11 10 / .05) 75%);
}
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .5rem; height: 100%; justify-content: flex-end; }
.tile__body .icon { margin-bottom: auto; }
.tile--photo p, .tile--texture p { color: rgb(244 243 239 / .82); }
.tile--accent { background: var(--accent); color: var(--on-accent); }
.tile--accent p { color: rgb(251 250 249 / .86); }

@media (max-width: 960px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(240px, auto); }
	.tile--lg { grid-column: span 2; grid-row: span 1; min-height: 360px; }
	.tile--tall { grid-row: span 2; }
}
@media (max-width: 600px) {
	.bento { grid-template-columns: 1fr; }
	.tile--lg, .tile--tall { grid-column: auto; grid-row: auto; min-height: 320px; }
}

/* ---------- Origins: the one marquee ---------- */

.origins { padding-block: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); overflow: hidden; }
.origins__lead { color: var(--ink-2); margin-bottom: 24px; }
.marquee { display: flex; width: max-content; }
.marquee__track { display: flex; flex: none; gap: clamp(32px, 4vw, 64px); padding-right: clamp(32px, 4vw, 64px); }
.marquee__track li { font: italic 400 clamp(2.5rem, 6vw, 5.5rem)/1.1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; padding-bottom: .08em; }
.marquee__track li:nth-child(even) { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
	.marquee { animation: marquee 48s linear infinite; }
	.origins:hover .marquee { animation-play-state: paused; }
	@keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
	.marquee { width: auto; flex-wrap: wrap; padding-inline: var(--gutter); }
	.marquee__track[aria-hidden] { display: none; }
	.marquee__track { flex: 1 1 100%; flex-wrap: wrap; row-gap: 0; }
}

/* ---------- Contact ---------- */

.contact { padding-block: var(--section); }
.page-template-template-contact .contact { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin-top: 1.25rem; }
.contact__details { margin-top: 2.5rem; display: grid; gap: 1rem; }
.contact__details li { display: flex; align-items: flex-start; gap: .75rem; }
.contact__details .icon { margin-top: .2em; color: var(--accent); }
.contact__details a { text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }

.form {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(20px, 3vw, 40px); display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .9375rem; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field input, .field textarea {
	width: 100%; min-height: 48px; padding: .75rem .9rem;
	font: inherit; font-size: 1rem; /* ≥16px: no iOS zoom */
	color: var(--ink); background: var(--bg);
	border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--r-md);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field__hint { font-size: .875rem; color: var(--ink-2); }
.field__error { font-size: .875rem; color: var(--accent); font-weight: 500; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
	display: inline-flex; align-items: center; min-height: 40px; padding: .5rem 1rem;
	border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--pill);
	font-size: .9375rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__status { font-weight: 500; min-height: 1.5em; }
.form__status.is-error { color: var(--accent); }

@media (max-width: 860px) {
	.contact__grid { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */

.page-head { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head__grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-head--media .page-head__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-head__title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; max-width: 16ch; }
.page-head .lead { margin-top: 1.5rem; }
.page-head__media { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--surface-2); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media--poster { aspect-ratio: 581 / 714; max-width: 460px; justify-self: end; background: #0e0e0d; }
@media (max-width: 860px) { .page-head--media .page-head__grid { grid-template-columns: 1fr; } }

.prose { max-width: 760px; padding-bottom: var(--section); }
.prose:empty, .prose:not(:has(*)) { display: none; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font: 400 2rem/1.15 var(--serif); margin-top: 2em; }
.prose h3 { font: 500 1.25rem/1.3 var(--sans); margin-top: 1.75em; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.25em; }
.prose img { border-radius: var(--r-lg); }
.prose a { color: var(--accent); }

.catalog { padding-bottom: 72px; }
.catalog .h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; padding-bottom: var(--section); }
.post-card a { text-decoration: none; display: grid; gap: .5rem; }
.post-card__media { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { font: 400 1.625rem/1.2 var(--serif); }
.empty { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: var(--section); }
.empty p { width: 100%; color: var(--ink-2); }
.nav-links { display: flex; gap: 8px; padding-bottom: var(--section); }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--bg); }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 72px; font-size: .9688rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer__brand p { margin-top: 1rem; color: var(--ink-2); max-width: 34ch; }
.site-footer__brand .brand__name { color: var(--ink); }
.site-footer__brand .site-footer__tagline { font: italic 400 1.25rem/1.3 var(--serif); color: var(--ink); max-width: none; }
.phones { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-list, .site-footer .nav__list { display: grid; gap: .6rem; }
.footer-list a, .site-footer .nav__list a { text-decoration: none; color: var(--ink-2); padding: 0; background: none; }
.footer-list a:hover, .site-footer .nav__list a:hover { color: var(--ink); background: none; }
.site-footer__contact { display: grid; gap: .75rem; align-content: start; }
.site-footer__contact > a, .site-footer__contact > span { display: flex; gap: .6rem; align-items: flex-start; text-decoration: none; color: var(--ink-2); }
.site-footer__contact > a:hover { color: var(--ink); }
.site-footer__contact .icon { margin-top: .2em; }
.social { display: flex; gap: 4px; margin-top: .5rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line); }
.social a:hover { border-color: var(--ink); }
.social:empty { display: none; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-block: 24px calc(24px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { color: var(--ink-2); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-note { width: 100%; }
.company-details { list-style: none !important; padding: 0 !important; }

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-transparency: reduce) {
	.site-header.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
	:root { --line: color-mix(in srgb, var(--ink) 45%, transparent); --ink-2: var(--ink); }
}
@media (hover: none) {
	.card__link:hover .card__media img, .tile:hover > img { transform: none; }
}
