/* ==========================================================================
   Copper Muse - whisky news from around the world
   1. Tokens  2. Base  3. Layout  4. Utilities  5. Brand  6. Utility bar
   7. Header & nav  8. Search  9. Buttons & forms  10. Archive basics
   11. Footer  12. Ticker  13. Cards  14. Lists & rankings  15. Section heads & chips
   16. Feed rows  17. Breadcrumbs  18. Modules (calendar, spotlight, glossary, regions)
   19. Motion & print
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
	/* Brand: copper accent, espresso ink, cream base. Copper #AC673E is decorative / large text
	   only (4.0:1 on cream); small copper text uses --copper-ink (6.1:1 on cream). */
	--copper: #AC673E;
	--copper-ink: #8A4B28;
	--copper-soft: #E7C9AE;
	--copper-light: #DDA77F; /* copper text on espresso: 7.9:1 */
	--espresso: #241B17;
	--espresso-2: #33271F;
	--cream: #FAF5ED;

	--color-primary: var(--espresso);
	--color-secondary: var(--copper-ink);
	--color-accent: var(--copper);
	--color-breaking: #A3321F;
	--color-text: #241B17;
	--color-body: #3B2F28;
	--color-muted: #6B5B4F;
	--color-bg: var(--cream);
	--color-paper: #FFFCF7;
	--color-surface: #FFFCF7;
	--color-surface-alt: #F1E7D8;
	--color-border: #E3D5C2;
	--color-border-strong: #CDB89E;
	--color-dark-panel: var(--espresso);
	--color-on-dark: #FAF5ED;
	--color-on-dark-muted: #D3C3B2;
	--color-focus: #8A4B28;

	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

	/* Fluid type scale (320px → 1440px). */
	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
	--fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	--fs-3xl: clamp(2.25rem, 1.5rem + 3vw, 4rem);

	--container: 1320px;
	--gutter: clamp(16px, 3vw, 32px);
	--gap: clamp(16px, 2vw, 28px);
	--gap-lg: clamp(28px, 4vw, 56px);
	--radius: 2px;
	--rule: 1px solid var(--color-border);
	--rule-ink: 1px solid var(--espresso);
	--header-h: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. 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);
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-body);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	overflow-x: clip; /* clip, not hidden - keeps position: sticky working */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--color-text);
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

/* Visual headings that are not document headings (widgets, sidebars, search, list items). */
.card__title, .rail__title, .side-box__title, .rank__title, .search-box__title {
	color: var(--color-text);
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
p, li { text-wrap: pretty; }

a { color: var(--copper-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--espresso); }

img, svg, video { display: block; max-width: 100%; height: auto; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

figure { margin: 0; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--rule); margin: var(--gap-lg) 0; }

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
	border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--copper-soft); color: var(--espresso); }

time, .meta { font-variant-numeric: tabular-nums; }

/* 3. Layout ------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.page-pad { padding-block: var(--gap-lg); }

.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}
.grid-12 > * { grid-column: span var(--span, 12); min-width: 0; }
@media (min-width: 768px) { .grid-12 > * { grid-column: span var(--span-md, var(--span, 12)); } }
@media (min-width: 1024px) { .grid-12 > * { grid-column: span var(--span-lg, var(--span-md, var(--span, 12))); } }

.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* 4. Utilities --------------------------------------------------------------- */
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 8px; left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--espresso);
	color: var(--cream);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--cream); }

.kicker {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.71875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cat, var(--copper-ink));
}

.meta { color: var(--color-muted); font-size: var(--fs-sm); margin: 0; }
.mono { font-family: var(--font-mono); }

/* 5. Brand ------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand picture { display: block; }
.brand__img { width: auto; height: 30px; } /* wordmark ≈ 5.7:1 */
.brand--footer .brand__img { height: 40px; }
@media (min-width: 1024px) { .brand--header .brand__img { height: 40px; } }
@media (max-width: 359.98px) { .brand--header .brand__img { height: 25px; } }
.custom-logo { width: auto; max-height: 48px; }

/* 6. Utility bar (espresso strip) -------------------------------------------- */
.utility-bar {
	display: none;
	background: var(--espresso);
	color: var(--color-on-dark-muted);
	font-size: 12.5px;
}
.utility-bar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.utility-bar__tagline { margin: 0; color: var(--copper-light); font-family: var(--font-serif); font-size: 14px; font-style: italic; }
.utility-bar__date { color: var(--color-on-dark); font-weight: 500; letter-spacing: 0.02em; }
.utility-bar__nav { margin-left: auto; }
.utility-bar__nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.utility-bar a { color: var(--color-on-dark-muted); text-decoration: none; }
.utility-bar a:hover { color: var(--cream); text-decoration: underline; }
.utility-bar :focus-visible { outline-color: var(--copper-light); }
@media (min-width: 1024px) { .utility-bar { display: block; } }

/* 7. Header & navigation ----------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--cream);
	border-bottom: 3px double var(--espresso);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header__brand { display: flex; flex-shrink: 0; }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--radius);
	color: var(--espresso);
	cursor: pointer;
	transition: background-color 0.15s var(--ease);
}
.icon-btn:hover { background: var(--color-surface-alt); }
.icon-btn[aria-expanded="true"] { background: var(--color-surface-alt); }

.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; }

.nav-list, .nav-extra { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-list a {
	position: relative;
	display: block;
	color: var(--espresso);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.nav-extra a { color: var(--color-body); text-decoration: none; }

/* Mobile: full panel under the header. */
@media (max-width: 1023.98px) {
	.primary-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 99;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 12px var(--gutter) 40px;
		background: var(--cream);
		border-top: var(--rule);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .primary-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
	}
	.menu-open { overflow: hidden; }
	.nav-list { flex-direction: column; }
	.nav-list a {
		padding: 15px 0 15px 18px;
		font-family: var(--font-serif);
		font-size: 1.375rem;
		font-weight: 600;
		letter-spacing: -0.01em;
		text-transform: none;
		border-bottom: var(--rule);
	}
	.nav-list a::before {
		content: "";
		position: absolute;
		left: 0; top: 50%;
		width: 8px; height: 8px;
		margin-top: -4px;
		background: var(--cat, var(--copper));
		border-radius: 50%;
	}
	.nav-list a[aria-current] { color: var(--copper-ink); }
	.nav-extra { flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: var(--fs-sm); }

	/* Without JS the panel is unreachable - show the list statically instead. */
	.no-js .primary-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; border: 0; }
	.no-js .menu-toggle { display: none; }
	.no-js .site-header__inner { flex-wrap: wrap; }
	.no-js .primary-nav { order: 3; width: 100%; }
}

/* Desktop: logo · sections · search in one row. */
@media (min-width: 1024px) {
	:root { --header-h: 80px; }
	.menu-toggle, .nav-extra { display: none; }
	.site-header__inner { gap: clamp(20px, 2.5vw, 40px); }
	.primary-nav { flex: 1 1 auto; min-width: 0; }
	.nav-list { gap: 4px clamp(14px, 1.6vw, 26px); justify-content: center; flex-wrap: nowrap; }
	.nav-list a { padding: 30px 0; }
	.nav-list a::after {
		content: "";
		position: absolute;
		left: 50%; bottom: 20px;
		width: 6px; height: 6px;
		margin-left: -3px;
		background: var(--copper);
		border-radius: 50%;
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
	}
	.nav-list a:hover { color: var(--copper-ink); }
	.nav-list a:hover::after, .nav-list a[aria-current]::after { opacity: 1; transform: none; }
	.nav-list a[aria-current] { color: var(--copper-ink); }
	.site-header__actions { margin-left: 0; flex-shrink: 0; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.nav-list a { font-size: 11.5px; letter-spacing: 0.06em; }
	.brand--header .brand__img { height: 32px; }
}

/* 8. Search: trigger + overlay ----------------------------------------------- */
.search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	background: transparent;
	border: 1px solid var(--espresso);
	border-radius: 999px;
	color: var(--espresso);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.search-trigger:hover, .search-trigger[aria-expanded="true"] { background: var(--espresso); color: var(--cream); }
.search-trigger__label { display: none; }
@media (min-width: 1024px) { .search-trigger__label { display: inline; } }
@media (max-width: 1023.98px) {
	.search-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: transparent; }
}

.search-panel { padding: 24px 0; background: var(--color-surface); border-top: var(--rule); }
.js .search-panel {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 400;
	padding: clamp(24px, 10vh, 120px) 0 32px;
	background: rgb(36 27 23 / 0.8);
	border: 0;
	overflow-y: auto;
}
.js .search-panel.is-open { display: block; animation: wpt-fade 0.18s var(--ease); }
@keyframes wpt-fade { from { opacity: 0; } }
.search-open { overflow: hidden; }

.search-box {
	position: relative;
	max-width: 760px;
	margin-inline: auto;
	padding: clamp(20px, 4vw, 40px);
	background: var(--cream);
	border-top: 4px solid var(--copper);
	box-shadow: 0 24px 64px rgb(20 12 8 / 0.4);
}
.search-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search-box__title { margin: 0; font-size: var(--fs-xl); }
.search-box__close { flex-shrink: 0; }
.search-box__hint { margin: 22px 0 10px; color: var(--color-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.search-form { display: flex; gap: 8px; max-width: 760px; margin-inline: auto; }
.search-form__field { position: relative; flex: 1 1 auto; min-width: 0; }
.search-form__field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.search-form__input {
	width: 100%;
	height: 56px;
	padding: 0 16px 0 48px;
	background: var(--color-paper);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius);
	color: var(--color-text);
	font-size: var(--fs-md);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-form__input::placeholder { color: #8C7B6E; }
.search-form__input:focus { outline: none; border-color: var(--copper-ink); box-shadow: 0 0 0 3px rgb(172 103 62 / 0.25); }
.search-form__submit { min-height: 56px; padding: 0 24px; }
@media (max-width: 479.98px) {
	.search-form { flex-direction: column; }
	.search-form__submit { min-height: 48px; }
}

/* 9. Buttons & forms --------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn--primary { background: var(--espresso); color: var(--cream); }
.btn--primary:hover { background: var(--copper-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-alt) 50%, var(--color-surface) 75%) 0 0 / 200% 100%;
	animation: wpt-shimmer 1.2s linear infinite;
}
@keyframes wpt-shimmer { to { background-position: -200% 0; } }

.empty-state, .error-state {
	padding: 24px;
	background: var(--color-paper);
	border: 1px dashed var(--color-border-strong);
	color: var(--color-muted);
	font-size: var(--fs-sm);
}
.error-state { border-style: solid; border-color: #E8B4A6; background: #FBEDE8; color: #8A2A17; }

/* 10. Archive basics ----------------------------------------------------------- */
.archive-head { margin-bottom: var(--gap-lg); padding-bottom: 16px; border-bottom: var(--rule-ink); }
.archive-head__title { font-size: var(--fs-2xl); margin: 0; }

.simple-list { display: grid; gap: 0; }
.simple-list__item { padding: 16px 0; border-bottom: var(--rule); }
.simple-list__title { font-size: var(--fs-lg); margin: 0 0 4px; }
.simple-list__title a { color: var(--color-text); text-decoration: none; }
.simple-list__title a:hover { color: var(--copper-ink); text-decoration: underline; }

.pagination { margin-top: var(--gap-lg); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 12px;
	border: 1px solid var(--color-border-strong);
	color: var(--color-text);
	font-weight: 600;
	text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--espresso); }
.pagination .page-numbers.current { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.pagination .page-numbers.dots { border-color: transparent; }

/* 11. Footer ------------------------------------------------------------------ */
.site-footer {
	position: relative;
	margin-top: var(--gap-lg);
	padding-top: clamp(40px, 5vw, 64px);
	background: var(--espresso);
	color: var(--color-on-dark-muted);
	font-size: var(--fs-sm);
}
.site-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--copper) 0 33%, var(--copper-light) 33% 66%, var(--copper-ink) 66%);
}
.site-footer__grid { display: grid; gap: var(--gap-lg); grid-template-columns: 1fr; padding-bottom: var(--gap-lg); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1.2fr 1.2fr; } }
.site-footer__about p { max-width: 46ch; margin-top: 18px; font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.55; color: var(--color-on-dark); }
.site-footer__about .site-footer__note { font-family: var(--font-sans); font-size: 13px; color: var(--color-on-dark-muted); }
.site-footer__title {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgb(250 245 237 / 0.16);
	color: var(--copper-light);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__sections ul, .site-footer__pages ul { columns: 2; column-gap: 24px; }
@media (min-width: 1024px) { .site-footer__sections ul { columns: 1; } }
.site-footer li { padding: 5px 0; break-inside: avoid; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--copper-light); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--copper-light); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px;
	border-top: 1px solid rgb(250 245 237 / 0.16);
	font-size: 12.5px;
}
.site-footer__bottom p { margin: 0; }

/* 12. Breaking ticker --------------------------------------------------------- */
.ticker { background: var(--color-surface-alt); border-bottom: var(--rule); font-size: var(--fs-sm); }
.ticker__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ticker__label {
	flex-shrink: 0;
	padding: 3px 8px;
	background: var(--color-breaking);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ticker__list { display: flex; flex: 1 1 auto; gap: 32px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ticker__item { display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; }
.ticker__item a { overflow: hidden; color: var(--color-text); font-weight: 600; text-decoration: none; text-overflow: ellipsis; }
.ticker__item a:hover { text-decoration: underline; }
.ticker__item time { flex-shrink: 0; color: var(--color-muted); font-size: 12px; }
.ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker.is-marquee .ticker__list { width: max-content; gap: 0; overflow: visible; animation: wpt-marquee var(--ticker-dur, 30s) linear infinite; }
.ticker.is-marquee .ticker__item { padding-right: 28px; }
.ticker.is-marquee .ticker__item::after { content: ""; align-self: center; width: 6px; height: 6px; margin-left: 18px; background: var(--copper); border-radius: 50%; }
.ticker.is-marquee .ticker__item a { overflow: visible; }
.ticker.is-paused .ticker__list, .ticker.is-marquee:hover .ticker__list, .ticker.is-marquee:focus-within .ticker__list { animation-play-state: paused; }
@keyframes wpt-marquee { to { transform: translateX(-50%); } }
.ticker__pause {
	flex-shrink: 0;
	min-height: 32px;
	padding: 0 10px;
	background: none;
	border: 1px solid var(--color-border-strong);
	color: var(--color-muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.ticker__pause:hover { color: var(--color-text); border-color: var(--espresso); }
.no-js .ticker__pause { display: none; }
@media (max-width: 767.98px) { .ticker__item time { display: none; } }

/* 13. Cards ------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--color-surface-alt);
}
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s var(--ease); }
.card:hover .card__img { transform: scale(1.035); }
.card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 30%, rgb(221 167 127 / 0.35), transparent 60%),
		linear-gradient(135deg, var(--copper), var(--espresso));
}
.card__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.card__badge { position: relative; z-index: 2; align-self: flex-start; text-decoration: none; }
.card__badge:hover { text-decoration: underline; }
.card__title { margin: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.22; }
.card__link { color: var(--color-text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.card:hover .card__link { color: var(--copper-ink); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.card__excerpt { margin: 0; color: var(--color-body); font-size: 15px; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; }
.card__read::before { content: "\00B7"; margin-right: 12px; }
.card__num { font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1; color: var(--copper); }
.badge-demo {
	position: relative;
	z-index: 2;
	padding: 0 6px;
	background: #FFF4DF;
	border: 1px solid #C98A2E;
	color: #7A4A0E;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.6;
	text-transform: uppercase;
}

/* Overlay: headline over the image. */
.card--overlay { display: grid; overflow: hidden; isolation: isolate; background: var(--espresso); }
.card--overlay > .card__media, .card--overlay > .card__body { grid-area: 1 / 1; }
.card--overlay .card__media { align-self: stretch; justify-self: stretch; }
.card--overlay .ratio-fill { position: absolute; inset: 0; aspect-ratio: auto; }
.card--overlay .card__body {
	position: relative;
	align-self: end;
	padding: 64px 22px 20px;
	background: linear-gradient(to top, rgb(24 17 13 / 0.94) 0%, rgb(24 17 13 / 0.6) 55%, transparent 100%);
}
.card--overlay .card__link, .card--overlay .card__excerpt { color: var(--cream); }
.card--overlay .card__meta { color: rgb(250 245 237 / 0.82); }
.card--overlay .kicker { color: var(--copper-light); }

/* Row: image left. */
.card--row { flex-direction: row; align-items: flex-start; gap: 16px; }
.card--row .card__media { flex: 0 0 112px; }
.card--row .card__title { font-size: var(--fs-base); }

/* Text-only and mini. */
.card--text .card__title { font-size: var(--fs-md); }
.card--mini { gap: 0; }
.card--mini .card__title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.card--mini .card__meta { order: -1; margin-bottom: 2px; font-size: 11.5px; letter-spacing: 0.04em; }
.card--mini:has(.card__num) .card__body { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; row-gap: 2px; }
.card--mini:has(.card__num) .card__num { grid-row: 1 / span 3; font-size: 26px; }
.card--mini:has(.card__num) .card__body > :not(.card__num) { grid-column: 2; }

/* 14. Lists & rankings ---------------------------------------------------------- */
.mini-list, .headline-list, .rank__list, .rank-row, .timeline, .latest-list { margin: 0; padding: 0; list-style: none; }
.mini-list > li, .headline-list > li, .rank__list > li, .latest-list > li { padding: 13px 0; border-bottom: var(--rule); }
.mini-list > li:first-child, .rank__list > li:first-child, .latest-list > li:first-child { padding-top: 4px; }
.mini-list > li:last-child, .headline-list > li:last-child, .rank__list > li:last-child, .latest-list > li:last-child { border-bottom: 0; }

.rank { padding: 18px 20px; background: var(--color-paper); border-top: 3px solid var(--copper); }
.rank__title { margin: 0 0 2px; font-size: var(--fs-lg); }
.rank__note { margin: 0 0 12px; color: var(--color-muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; margin: 8px 0 12px; border-bottom: var(--rule); }
.tabs__btn { padding: 8px 10px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--color-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs__btn[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--copper); }
.tabs__btn:hover { color: var(--color-text); }
.no-js .tabs { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: 16px; }

/* 15. Section heads + chips: "Kicker / Title ——— All in →" ------------------- */
.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
	margin-bottom: clamp(18px, 2.4vw, 30px);
}
.sec-head__kicker { flex-basis: 100%; }
.sec-head__title { margin: 0; font-size: var(--fs-xl); }
.sec-head::after {
	content: "";
	flex: 1 1 40px;
	order: 2;
	align-self: center;
	height: 1px;
	background: var(--espresso);
	opacity: 0.35;
}
.sec-head__title { order: 1; }
.sec-head__more {
	order: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--espresso);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}
.sec-head__more:hover { color: var(--copper-ink); }
.sec-head__more .icon { transition: transform 0.2s var(--ease); }
.sec-head__more:hover .icon { transform: translateX(3px); }
.sec-head--on-dark .sec-head__title { color: var(--cream); }
.sec-head--on-dark .kicker { color: var(--copper-light); }
.sec-head--on-dark::after { background: var(--cream); }

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--color-border-strong);
	border-radius: 999px;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { border-color: var(--espresso); background: var(--espresso); color: var(--cream); }
.chips { margin: 0; }
.chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip[aria-current] { background: var(--copper-ink); border-color: var(--copper-ink); color: #fff; }

/* 16. Feed rows (list archives, search) ----------------------------------------- */
.feed > .card { padding-block: 18px; border-bottom: var(--rule); }
.feed > .card:first-child { padding-top: 0; }
.card--feed .card__media { flex-basis: 112px; }
.card--feed .card__excerpt { display: none; }
@container (min-width: 560px) {
	.card--feed { gap: var(--gap); }
	.card--feed .card__media { flex-basis: 200px; }
	.card--feed .card__title { font-size: var(--fs-lg); }
	.card--feed .card__excerpt { display: block; }
}

/* 17. Breadcrumbs -------------------------------------------------------------- */
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	color: var(--color-muted);
	font-size: 12.5px;
}
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--copper); }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-text); }
.breadcrumbs li:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar titles shared by article and archives. */
.rail__title, .side-box__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	font-size: var(--fs-lg);
}
.rail__title::after, .side-box__title::after { content: ""; flex: 1; height: 1px; background: var(--espresso); opacity: 0.3; }
.rail-widgets .rail-box + .rail-box { margin-top: 32px; }

/* 18. Modules ------------------------------------------------------------------- */
.module { position: relative; padding: 20px 20px 18px; background: var(--color-paper); border: var(--rule); border-top: 3px solid var(--copper); }
.module + .module, .module + .side-box, .side-box + .module, .module + .rail-box, .rail-box + .module, .side-box + .side-box, .side-box + .rail-widgets, .module + .rail-widgets { margin-top: 28px; }
.module__head { margin-bottom: 12px; }
.module__kicker { margin: 0 0 2px; color: var(--copper-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.module__title { margin: 0; font-size: 1.375rem; line-height: 1.15; }
.module__title a { color: inherit; text-decoration: none; }
.module__title a:hover { color: var(--copper-ink); text-decoration: underline; }
.module__note { margin: 12px 0 0; color: var(--color-muted); font-size: 12px; line-height: 1.45; }
.module__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; }
.module__more { display: inline-flex; align-items: center; gap: 6px; color: var(--espresso); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; }
.module__more:hover { color: var(--copper-ink); text-decoration: underline; }

/* Release Calendar. */
.release-cal__list { margin: 0; padding: 0; list-style: none; counter-reset: rel; }
.release-cal__item { display: grid; gap: 2px; padding: 12px 0; border-bottom: var(--rule); }
.release-cal__item:first-child { padding-top: 0; }
.release-cal__item:last-child { border-bottom: 0; padding-bottom: 0; }
.release-cal__item p { margin: 0; }
.release-cal__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--copper-ink); font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 700; }
.release-cal__flag { padding: 0 6px; border: 1px solid var(--color-border-strong); color: var(--color-muted); font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.7; text-transform: uppercase; }
.release-cal__flag--prov { border-color: #C98A2E; background: #FFF4DF; color: #7A4A0E; }
.release-cal__name { font-weight: 600; line-height: 1.3; }
.release-cal__name a { color: var(--color-text); text-decoration: none; }
.release-cal__name a:hover { color: var(--copper-ink); text-decoration: underline; }
.release-cal__meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--color-muted); font-size: 13px; }
.release-cal__meta span + span::before { content: "\00B7"; margin-right: 12px; }

/* Distillery Spotlight. */
.spotlight__region { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--color-muted); font-size: 13px; font-weight: 600; }
.spotlight__region .icon { color: var(--copper); }
.spotlight__profile { margin: 0; font-family: var(--font-serif); font-size: 1.03rem; line-height: 1.55; color: var(--color-body); }
.spotlight__sub { margin: 14px 0 4px; color: var(--color-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.spotlight__news { margin: 0; padding: 0; list-style: none; }
.spotlight__news li { padding: 8px 0; border-top: var(--rule); font-weight: 600; line-height: 1.35; }
.spotlight__news a { color: var(--color-text); text-decoration: none; }
.spotlight__news a:hover { color: var(--copper-ink); text-decoration: underline; }

/* Whisky Glossary. */
.glossary__list { margin: 0; }
.glossary__item { padding: 10px 0; border-bottom: var(--rule); }
.glossary__item:first-child { padding-top: 0; }
.glossary__item:last-child { border-bottom: 0; }
.glossary__item dt { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; }
.glossary__item dt a { color: var(--color-text); text-decoration: none; }
.glossary__item dt a:hover { color: var(--copper-ink); text-decoration: underline; }
.glossary__item dd { margin: 2px 0 0; color: var(--color-body); font-size: 14.5px; line-height: 1.5; }

/* Explore by Region. */
.regions__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.regions__link {
	display: inline-flex;
	flex-direction: column;
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid var(--color-border-strong);
	color: var(--color-text);
	text-decoration: none;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.regions__name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.regions__count { color: var(--color-muted); font-size: 11.5px; }
.regions__link:hover, .regions__link[aria-current] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.regions__link:hover .regions__count, .regions__link[aria-current] .regions__count { color: var(--color-on-dark-muted); }

/* 19. Motion & print ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.utility-bar, .site-header__actions, .primary-nav, .search-panel, .site-footer__sections, .share, .article__rail { display: none !important; }
	.site-header { position: static; border: 0; }
	a { color: inherit; }
}
