/*
 * The Nova Cafe - global styles: tokens, base, header, footer, cards, sidebars, coffee widgets,
 * forms, pagination, ticker. Page-type styles: home.css, article.css, archive.css.
 *
 * Palette: espresso #3B241A (text, nav, footer), coffee #79513A (secondary brand), warm yellow
 * #E8B83F (accents only - always with espresso text on it, never as small text on white),
 * cream #FFF8EC (page) and white #FFFFFF (surfaces).
 */

:root {
	--espresso: #3b241a;
	--coffee: #79513a;
	--yellow: #e8b83f;
	--cream: #fff8ec;
	--white: #fff;
	--latte: #f3e4cf;
	--foam: #fbf1e0;
	--ink: #3b241a;
	--ink-soft: #5c4334;
	--line: rgba(59, 36, 26, .16);
	--line-strong: rgba(59, 36, 26, .55);
	--yellow-deep: #c9971f;
	--shadow: 0 1px 0 rgba(59, 36, 26, .08), 0 10px 28px -18px rgba(59, 36, 26, .45);

	--font-head: "Platypi", Georgia, "Times New Roman", serif;
	--font-text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--radius-lg: 14px;
	--social-bg: var(--white);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font-text);
	font-stretch: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration-color: rgba(59, 36, 26, .35); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--yellow-deep); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 650; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; overflow-wrap: anywhere; }

p { margin: 0 0 1em; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--espresso); border-radius: 2px; }

.sr-only,
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--yellow); color: var(--espresso); padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

.meta { font-size: .8125rem; color: var(--ink-soft); letter-spacing: .01em; }
.meta time { font-variant-numeric: tabular-nums; }

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .6em 1.25em; border-radius: 999px; border: 2px solid var(--espresso);
	font-weight: 650; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--espresso); color: var(--cream); }
.btn--primary:hover { background: var(--coffee); border-color: var(--coffee); }
.btn--accent { background: var(--yellow); color: var(--espresso); border-color: var(--yellow); }
.btn--accent:hover { background: #f0c95c; }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); }

/* Edition bar ------------------------------------------------------------- */
.edition-bar { background: var(--espresso); color: var(--cream); font-size: .8125rem; }
.edition-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.edition-bar__date { margin: 0; display: flex; flex-wrap: wrap; gap: .25em .9em; align-items: center; }
.edition-bar__label { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.edition-bar__tz { opacity: .8; }
.edition-bar__nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.edition-bar__nav a { text-decoration: none; }
.edition-bar__nav a:hover { color: var(--yellow); }

/* Masthead -------------------------------------------------------------- */
.masthead { background: var(--cream); position: relative; z-index: 40; }
.masthead__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
	padding-block: 18px 14px;
}
.masthead__brand { text-align: center; }
.masthead__title { margin: 0; font-size: inherit; line-height: 1; }
.brand { display: inline-block; text-decoration: none; }
.brand__img { width: clamp(190px, 26vw, 330px); height: auto; margin-inline: auto; }
.brand--text { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--espresso); }
.masthead__tagline {
	margin: 8px 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coffee);
}
.masthead__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer;
	font-weight: 600; font-size: .875rem; color: var(--espresso);
}
.masthead__btn:hover { border-color: var(--espresso); background: var(--white); }
.masthead__btn[aria-expanded="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.menu-toggle { justify-self: start; }
.search-toggle { justify-self: end; }

/* Section bar (desktop) / drawer (mobile) -------------------------------- */
.section-bar { border-top: 1px solid var(--espresso); border-bottom: 4px double var(--espresso); background: var(--cream); }
.section-drawer__head,
.section-drawer__utility { display: none; }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-list a {
	position: relative; display: block; padding: 13px 10px; text-decoration: none;
	font-weight: 650; font-size: .875rem; color: var(--espresso); white-space: nowrap;
}
@media (min-width: 1200px) { .nav-list a { padding-inline: 9px; font-size: .8125rem; } }
@media (min-width: 1360px) { .nav-list a { padding-inline: 12px; font-size: .875rem; } }
.nav-list li + li a::before {
	content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
	background: var(--coffee); transform: translateY(-50%);
}
.nav-list a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 4px; border-radius: 2px;
	background: var(--yellow); transform: scaleX(0); opacity: 0; transition: transform .18s, opacity .18s;
}
.nav-list a:hover::after,
.nav-list a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.nav-item--news a { color: var(--coffee); }

@media (min-width: 1200px) {
	.menu-toggle { visibility: hidden; }
	.section-bar { position: sticky; top: 0; z-index: 30; }
}

@media (max-width: 1199px) {
	.masthead__btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.masthead__btn { width: 44px; padding: 0; justify-content: center; }
	.masthead__tagline { display: none; }
	.masthead__inner { padding-block: 12px; }
	.brand__img { width: 190px; }
	.section-bar { border: 0; border-bottom: 1px solid var(--espresso); }
	.section-drawer {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); z-index: 60;
		background: var(--cream); overflow-y: auto; transform: translateX(-102%);
		transition: transform .25s ease; visibility: hidden; box-shadow: 8px 0 30px rgba(0, 0, 0, .2);
		border-right: 4px solid var(--yellow);
	}
	body.menu-open .section-drawer { transform: none; visibility: visible; }
	.drawer-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(59, 36, 26, .55); }
	.section-drawer__head {
		display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
		background: var(--espresso); color: var(--cream);
	}
	.section-drawer__title { margin: 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
	.section-drawer__close { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 248, 236, .4); border-radius: 50%; color: var(--cream); cursor: pointer; }
	.section-drawer__inner { padding: 8px 0; }
	.nav-list { display: block; }
	.nav-list a { padding: 14px 20px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
	.nav-list li + li a::before { display: none; }
	.nav-list a::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 5px; height: auto; transform: scaleY(0); }
	.nav-list a[aria-current]::after { transform: none; }
	.section-drawer__utility { display: block; list-style: none; margin: 12px 0 24px; padding: 0 20px; }
	.section-drawer__utility a { display: block; padding: 10px 0; color: var(--coffee); font-weight: 600; }
}

@media (max-width: 599px) {
	.edition-bar__nav { display: none; }
	.edition-bar__tz { display: none; }
}

/* Search sheet ------------------------------------------------------------ */
.search-sheet { background: var(--espresso); color: var(--cream); border-bottom: 4px solid var(--yellow); }
.search-sheet[hidden] { display: none; }
.search-sheet__inner { position: relative; padding-block: 22px 26px; }
.search-sheet__title { font-family: var(--font-head); font-size: 1.375rem; margin: 0 0 12px; padding-right: 56px; }
.search-sheet__close {
	position: absolute; top: 16px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center;
	background: transparent; color: var(--cream); border: 1px solid rgba(255, 248, 236, .45); border-radius: 50%; cursor: pointer;
}
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form__field {
	flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px;
	background: var(--white); color: var(--espresso); border: 2px solid var(--espresso); border-radius: 999px;
}
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; font-size: 1rem; }
.search-form__input:focus { outline: none; }
.search-form__field:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.search-sheet .btn--primary { background: var(--yellow); color: var(--espresso); border-color: var(--yellow); }

/* Ticker ------------------------------------------------------------------- */
.ticker { background: var(--yellow); color: var(--espresso); border-bottom: 1px solid var(--espresso); }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label { flex: none; font-weight: 750; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; background: var(--espresso); color: var(--yellow); padding: 4px 10px; border-radius: 3px; }
.ticker__list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; overflow-x: auto; white-space: nowrap; }
.ticker__item a { font-weight: 650; text-decoration: none; }
.ticker__item time { margin-left: 8px; font-size: .8125rem; }
.ticker__viewport { flex: 1; overflow: hidden; }
.is-marquee .ticker__list { overflow: visible; width: max-content; animation: ticker var(--ticker-dur, 30s) linear infinite; }
.is-marquee:hover .ticker__list,
.is-marquee:focus-within .ticker__list,
.is-paused .ticker__list { animation-play-state: paused; }
.ticker__pause { flex: none; min-height: 32px; padding: 0 12px; border: 1.5px solid var(--espresso); background: transparent; border-radius: 999px; font-weight: 650; font-size: .8125rem; cursor: pointer; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Breadcrumbs, chips, section heads ------------------------------------------ */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; list-style: none; font-size: .8125rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--coffee); opacity: .7; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); display: inline-block; max-width: 34ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

.chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--line-strong); background: var(--white); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.chip:hover,
.chip[aria-current] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 20px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--espresso); }
.sec-head__kicker { grid-column: 1 / -1; margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coffee); }
.sec-head__kicker::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--yellow); border-radius: 2px; }
.sec-head__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.sec-head__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .875rem; text-decoration: none; white-space: nowrap; padding-bottom: 4px; }
.sec-head__more:hover { text-decoration: underline; }
@media (max-width: 599px) {
	.sec-head { grid-template-columns: 1fr; }
	.sec-head__more { white-space: normal; padding-bottom: 0; }
}

/* Cards ----------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--latte); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--coffee); opacity: .5; }
.card__body { position: relative; padding-top: 12px; min-width: 0; }
.card__badge {
	display: inline-block; margin-bottom: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
	color: var(--coffee); text-decoration: none;
}
.card__badge:hover { text-decoration: underline; }
.card__title { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.card__badge { position: relative; z-index: 2; }
.card__excerpt { margin: 0 0 8px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.card__read::before { content: "·"; margin-right: 12px; }
.badge-demo {
	display: inline-block; padding: 1px 8px; border-radius: 3px; background: var(--latte); color: var(--espresso);
	border: 1px dashed var(--coffee); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.card--row { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: 1.0625rem; }
@media (min-width: 768px) {
	.card--row { grid-template-columns: 180px 1fr; gap: 20px; }
	.card--row .card__title { font-size: 1.25rem; }
}

.card--ledger { padding-top: 14px; border-top: 1px solid var(--line); }
.card--ledger .card__body { padding-top: 0; }
.card--ledger .card__title { font-size: 1.125rem; }

.card--mini { flex-direction: row; gap: 12px; }
.card--mini .card__body { padding: 0; display: flex; flex-direction: column; }
.card--mini .card__title { font-family: var(--font-text); font-weight: 600; font-size: .9375rem; line-height: 1.35; margin-bottom: 4px; }
.card--mini .card__badge { margin-bottom: 2px; font-size: .6875rem; }
.card__num {
	float: left; margin: -2px 12px 0 0; font-family: var(--font-head); font-weight: 750; font-size: 2rem; line-height: 1;
	color: var(--coffee); font-variant-numeric: lining-nums;
}

.card--portrait .card__body {
	position: relative; margin: -48px 14px 0; padding: 14px 16px 12px; background: var(--cream);
	border-top: 4px solid var(--yellow); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.card--portrait .card__title { font-size: 1.1875rem; }

/* Feed ------------------------------------------------------------------------ */
.feed { display: grid; gap: 22px; }
.feed .card--feed { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.feed__more { margin: 24px 0 0; text-align: center; }
.feed__day {
	margin: 10px 0 -6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coffee);
	display: flex; align-items: center; gap: 12px;
}
.feed__day::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Pagination -------------------------------------------------------------------- */
.pagination { margin: 36px 0 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px;
	border: 1.5px solid var(--line-strong); background: var(--white); text-decoration: none; font-weight: 650;
}
.pagination .page-numbers.current { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.pagination a.page-numbers:hover { border-color: var(--espresso); }
.pagination .dots { border: 0; background: none; }

/* Sidebar boxes ------------------------------------------------------------------- */
.side-box { margin-bottom: 26px; padding: 18px 18px 16px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.side-box__title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--espresso);
	font-size: 1.1875rem; font-weight: 700;
}
.side-box__title::before { content: ""; flex: none; width: 10px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: inset -2px 0 0 var(--yellow-deep); transform: rotate(25deg); }
.side-box__note { margin: -6px 0 12px; font-size: .75rem; color: var(--ink-soft); }
.side-box__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.side-box__more:hover { text-decoration: underline; }
.side-box ol,
.side-box ul { margin: 0; padding: 0; list-style: none; }
.clock-list li,
.plain-list li,
.rank-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.clock-list li:first-child,
.plain-list li:first-child,
.rank-list li:first-child { border-top: 0; padding-top: 0; }
.side-box .card--side { margin-bottom: 8px; }
.side-box .card--side .card__title { font-size: 1.0625rem; }
.side-box--section .card--mini { padding: 10px 0; border-top: 1px solid var(--line); }
.empty-note { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

.section-index li a {
	display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; padding: 9px 8px; border-radius: var(--radius); text-decoration: none;
}
.section-index li a:hover { background: var(--foam); }
.section-index li a[aria-current] { background: var(--espresso); color: var(--cream); }
.section-index__num { grid-row: span 2; font-family: var(--font-head); font-weight: 750; color: var(--coffee); font-variant-numeric: lining-nums tabular-nums; }
[aria-current] .section-index__num { color: var(--yellow); }
.section-index__name { font-weight: 650; font-size: .9375rem; }
.section-index__count { font-size: .75rem; opacity: .85; }

/* Coffee widgets ------------------------------------------------------------------ */
.poll__fieldset { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.poll__question { margin: 0 0 12px; font-family: var(--font-head); font-size: 1.1875rem; font-weight: 650; line-height: 1.25; padding: 0; }
.poll__option {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; margin-bottom: 6px;
	border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 550;
}
.poll__option:hover { border-color: var(--espresso); }
.poll__option:has(input:checked) { border-color: var(--espresso); background: var(--foam); box-shadow: inset 4px 0 0 var(--yellow); }
.poll__option input { width: 18px; height: 18px; margin: 0; accent-color: var(--espresso); flex: none; }
.poll__submit { width: 100%; }
.poll__results { margin: 0 0 10px; padding: 0; list-style: none; }
.poll__result { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 10px; font-size: .9375rem; }
.poll__result-label { font-weight: 600; }
.poll__result-value { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .875rem; }
.poll__bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--latte); overflow: hidden; }
.poll__bar span { display: block; height: 100%; background: var(--coffee); border-radius: 5px; min-width: 0; }
.poll__total { margin: 0 0 6px; font-size: .875rem; font-weight: 600; }
.poll__test { display: block; margin-top: 4px; font-weight: 500; font-size: .75rem; color: var(--espresso); background: var(--latte); padding: 4px 8px; border-radius: 4px; border: 1px dashed var(--coffee); }
.poll__status { margin: 0 0 6px; font-size: .875rem; font-weight: 600; min-height: 0; }
.poll__status:empty { display: none; }
.poll__meta { margin: 0; }
.poll__anchor { position: relative; top: -90px; }

.brew__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brew__field { margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.brew__field label { font-size: .8125rem; font-weight: 650; }
.brew__unit { font-weight: 500; color: var(--ink-soft); }
.brew select,
.brew input {
	width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
	font-variant-numeric: tabular-nums;
}
.brew__ratio-wrap { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.brew__ratio-wrap input { border: 0; min-width: 0; }
.brew__ratio-prefix { padding-left: 10px; font-weight: 700; color: var(--coffee); }
.brew input[aria-invalid="true"],
.brew__ratio-wrap:has(input[aria-invalid="true"]) { border-color: #a1271b; box-shadow: inset 0 0 0 1px #a1271b; }
.brew__error { margin: 0 0 8px; color: #a1271b; font-size: .875rem; font-weight: 600; }
.brew__error:empty { display: none; }
.brew__result {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 10px; padding: 12px 14px;
	background: var(--espresso); color: var(--cream); border-radius: var(--radius); border-left: 6px solid var(--yellow);
}
.brew__result-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); width: 100%; }
.brew__water { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.brew__ml { font-size: .875rem; opacity: .9; }
.brew__note { margin: 0 0 6px; font-size: .875rem; }
.brew__disclaimer { margin: 0; font-size: .75rem; color: var(--ink-soft); }

.gloss__term { margin: 0 0 6px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.gloss__term dfn { font-style: normal; box-shadow: inset 0 -.35em 0 var(--yellow); }
.gloss__def { margin: 0 0 10px; }
.gloss__more { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; font-size: .875rem; font-weight: 650; }
.gloss__note { margin: 0; }

.events { margin: 0 0 10px; padding: 0; list-style: none; }
.events__item { padding: 10px 0; border-top: 1px solid var(--line); }
.events__item:first-child { border-top: 0; padding-top: 0; }
.events__date { margin: 0; font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--coffee); }
.events__name { margin: 2px 0; font-weight: 650; }
.events__place { margin: 0; display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--ink-soft); }
.events__note { margin: 0; }

/* Forms ------------------------------------------------------------------------------ */
.form-row--2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.form-field label { font-weight: 650; font-size: .9375rem; }
.form-field input,
.form-field select,
.form-field textarea,
.search-filters input,
.search-filters select {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--espresso); }
.form-hint { font-size: .8125rem; color: var(--ink-soft); }
.form-field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--espresso); flex: none; }
.form-field--check label { font-weight: 500; }
.form-field--hp { position: absolute; left: -9999px; }
.form-note { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.form-note--success { background: #e6f0de; border-left: 5px solid #3c6b2a; }
.form-note--error { background: #f8e1dc; border-left: 5px solid #a1271b; }

.empty-state { padding: 26px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-soft); }
.empty-state--big { color: var(--ink); }

/* Footer --------------------------------------------------------------------------------- */
.site-footer { margin-top: 64px; background: var(--espresso); color: var(--cream); border-top: 8px solid var(--yellow); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr .8fr 1fr; } .site-footer__about { grid-column: auto; } }
.site-footer .brand__img { width: 240px; margin: 0 0 16px; }
.site-footer__about p { max-width: 46ch; color: rgba(255, 248, 236, .88); font-size: .9375rem; }
.site-footer__note { font-size: .8125rem !important; font-style: italic; }
.site-footer__title { margin: 0 0 14px; font-size: 1.0625rem; color: var(--yellow); }
.site-footer ul,
.site-footer ol { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer__sections { counter-reset: sec; }
.site-footer__sections li { counter-increment: sec; }
.site-footer__sections li::before { content: counter(sec, decimal-leading-zero); display: inline-block; width: 2.2em; font-family: var(--font-head); color: var(--yellow); font-weight: 700; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 248, 236, .2); font-size: .8125rem; color: rgba(255, 248, 236, .8); }
.site-footer__bottom p { margin: 0; }

/* Reduced motion -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
