/*
Theme Name: NA Beer Nerd
Theme URI: https://nabeernerd.com
Author: NA Beer Nerd
Description: A block theme for non-alcoholic beer reviews, where-to-buy guides and science explainers.
Version: 1.0.1
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: na-beer-nerd
*/

/* ---------- Shared bits ---------- */
.nabn-eyebrow,
.nabn-eyebrow a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-text);
	text-decoration: none;
	margin: 0;
}
.nabn-mono { font-family: var(--wp--preset--font-family--mono); }
.nabn-muted { color: var(--wp--preset--color--muted); }

.nabn-score-badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--ink);
	border-radius: 8px;
	padding: 4px 8px;
	margin: 0;
	line-height: 1.3;
	white-space: nowrap;
}
.nabn-score-badge:empty { display: none; }

/* ---------- Header ---------- */
.nabn-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.nabn-header .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.nabn-logo-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: 14px;
	margin: 0;
}
.nabn-header .wp-block-navigation a {
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.nabn-header .wp-block-navigation a:hover { background: var(--wp--preset--color--surface); }

/* ---------- Hero ---------- */
.nabn-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	align-items: center;
	padding: 88px 0 72px;
}
.nabn-hero-copy > * + * { margin-top: 24px; }
.nabn-hero-copy h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.nabn-lead { font-size: 19px; color: var(--wp--preset--color--muted); max-width: 560px; }

.nabn-hero .wp-block-search { max-width: 560px; }
.nabn-hero .wp-block-search__inside-wrapper { gap: 10px; border: 0; padding: 0; }
.nabn-hero .wp-block-search__input {
	height: 54px;
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 12px;
	padding: 0 16px;
	font-size: 16px;
	background: #fff;
}
.nabn-hero .wp-block-search__button {
	height: 54px;
	margin: 0;
	padding: 0 24px;
	border-radius: 12px;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-weight: 600;
}

.nabn-latest {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: 20px;
	padding: 32px;
}
.nabn-latest .wp-block-post-template > li > * + * { margin-top: 18px; }
.nabn-latest .nabn-eyebrow { color: var(--wp--preset--color--amber); }
.nabn-latest .wp-block-post-featured-image img { border-radius: 14px; }
.nabn-latest .wp-block-post-title { font-size: 28px; margin: 0; }
.nabn-latest .wp-block-post-title a,
.nabn-latest .wp-block-post-terms a { color: var(--wp--preset--color--paper); text-decoration: none; }
.nabn-latest .wp-block-post-terms { color: #B9BDB5; margin: 4px 0 0; }
.nabn-latest .nabn-score-badge { font-size: 24px; padding: 8px 14px; border-radius: 12px; }
.nabn-latest .wp-block-read-more { color: var(--wp--preset--color--amber); font-weight: 600; }

/* ---------- Style chips ---------- */
.nabn-chip-band {
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 28px;
	padding-bottom: 28px;
}
.nabn-chips .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 500;
}
.nabn-chips .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); }

/* ---------- Sections & cards ---------- */
.nabn-section { padding-top: 80px; padding-bottom: 32px; }
.nabn-section-head { margin-bottom: 32px; }
.nabn-section-head h2 { margin: 0; }
.nabn-section-head p { margin: 0; font-weight: 600; }

.nabn-card,
.nabn-explainer {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 16px;
	height: 100%;
	box-sizing: border-box;
}
.nabn-card > * + * { margin-top: 12px; }
.nabn-card .wp-block-post-featured-image img { border-radius: 10px; }
.nabn-card .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 0; }
.nabn-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.nabn-card-meta,
.nabn-card-meta a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--subtle);
	text-decoration: none;
}
.nabn-card-meta p { margin: 0; }
.nabn-card-meta p:not(:empty)::before { content: "·"; margin-right: 8px; }

.nabn-explainer { padding: 28px; }
.nabn-explainer > * + * { margin-top: 12px; }
.nabn-explainer h3 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: 0; margin: 0; }
.nabn-explainer h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.nabn-explainer .nabn-num { font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--teal); margin: 0; }

.nabn-buy-band {
	background: var(--wp--preset--color--teal);
	color: #fff;
	border-radius: 20px;
	padding: 48px;
	margin-top: 80px;
}
.nabn-buy-band h2 { color: #fff; margin: 0; }
.nabn-buy-band p { color: #D6ECEA; font-size: 18px; }
.nabn-buy-band .wp-block-button__link { background: #fff; color: var(--wp--preset--color--teal); }

.nabn-about { padding-top: 80px; padding-bottom: 88px; }
.nabn-about h2 { font-size: 28px; font-weight: 700; letter-spacing: 0; }

/* ---------- Footer ---------- */
.nabn-footer {
	background: var(--wp--preset--color--ink);
	color: #B9BDB5;
	font-size: 14px;
	padding-top: 40px;
	padding-bottom: 40px;
}
.nabn-footer a { color: #B9BDB5; }
.nabn-footer a:hover { color: #fff; }
.nabn-footer .wp-block-site-title a { color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; text-decoration: none; }

/* ---------- Single review ---------- */
.nabn-crumbs { font-size: 14px; color: var(--wp--preset--color--subtle); padding-top: 28px; }
.nabn-crumbs p, .nabn-crumbs .wp-block-post-terms { margin: 0; }

.nabn-review-top { padding-top: 32px; padding-bottom: 56px; }
.nabn-review-top .wp-block-post-featured-image img { border-radius: 20px; }
.nabn-review-top h1 { margin: 0; letter-spacing: -0.025em; }
.nabn-review-head > * + * { margin-top: 20px; }
.nabn-brewery { font-size: 18px; color: var(--wp--preset--color--muted); margin: 0; }
.nabn-brewery:not(:empty)::before { content: "by "; }
.nabn-review-date { color: var(--wp--preset--color--subtle); }
.nabn-review-date::before { content: "Reviewed "; }

.nabn-scorebox {
	background: var(--wp--preset--color--ink);
	color: #fff;
	border-radius: 16px;
	padding: 20px 24px;
}
.nabn-scorebadge {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--ink);
	border-radius: 12px;
	padding: 12px 18px;
	text-align: center;
	flex-shrink: 0;
}
.nabn-scorebadge p { margin: 0; }
.nabn-scorebadge .nabn-score-big { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 40px; line-height: 1; }
.nabn-scorebadge .nabn-out-of { font-size: 13px; font-weight: 600; margin-top: 4px; }
.nabn-scorebox .nabn-verdict-label { font-weight: 600; font-size: 18px; margin: 0; }
.nabn-scorebox .nabn-verdict { color: #D3D6CF; margin: 4px 0 0; }

.nabn-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
}
.nabn-facts > .wp-block-group { background: #fff; padding: 14px 16px; margin: 0; }
.nabn-facts p { margin: 0; }
.nabn-fact-label { font-size: 13px; color: var(--wp--preset--color--subtle); }
.nabn-fact-value { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 18px; min-height: 1.4em; }
.nabn-fact-value:empty::after { content: "—"; color: var(--wp--preset--color--line); }

.nabn-review-body {
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 64px;
	padding-bottom: 64px;
}
.nabn-note-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 20px;
}
.nabn-note-card h3 {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--wp--preset--color--teal);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 6px;
}
.nabn-note-card p { margin: 0; color: var(--wp--preset--color--muted); }

.nabn-buy {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 24px;
}
.nabn-buy h2 { font-size: 24px; font-weight: 700; letter-spacing: 0; margin: 0; }
.nabn-buy .nabn-store {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0;
	font-weight: 600;
}
.nabn-buy .nabn-small { font-size: 13px; color: var(--wp--preset--color--subtle); }

/* ---------- Editor-only helper box ---------- */
.nabn-details {
	border: 2px dashed var(--wp--preset--color--amber);
	border-radius: 14px;
	padding: 20px;
	background: #FFF8E8;
}
.nabn-details p { margin: 0; }
.nabn-details .nabn-field-label { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--amber-text); margin-top: 10px; }
.nabn-details .nabn-field { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 6px 10px; }

@media (max-width: 600px) {
	.nabn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nabn-buy-band { padding: 28px; }
	.nabn-latest { padding: 20px; }
}
