/*
Theme Name: Radiance
Theme URI: https://www.radianceav.com.au/
Author: Radiance AV
Description: Theme for Radiance AV, Australian distributor of independent high-end audio. Requires the Radiance Core plugin for brands, products and dealers.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: radiance
*/

:root {
	--bg: #0e0d0c;
	--surface: #171513;
	--ph: #1e1c19;
	--line: #2e2b27;
	--line2: #4a453e;
	--text: #eee8de;
	--text2: #cfc7ba;
	--muted: #a0988b;
	--accent: #c8a46b;
	--accent-h: #e2c48f;
	--paper: #efeae2;
	--paper2: #e4ddd2;
	--paper-line: #d3cbbe;
	--ink: #1a1814;
	--ink2: #5e574d;
	--ink-link: #7a4e14;
	--serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1280px;
	--gut: 40px;
	--sec: 112px;
}
@media (max-width: 760px) {
	:root { --gut: 20px; --sec: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-h); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap--narrow { max-width: 880px; }
.section { padding-top: var(--sec); padding-bottom: var(--sec); }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section--surface { background: var(--surface); }
.section--rule { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper a { color: var(--ink-link); }
.section--paper2 { background: var(--paper2); color: var(--ink); }
.section--paper2 a { color: var(--ink-link); }

/* Type */
.eyebrow {
	margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--muted { color: var(--muted); }
.section--paper .eyebrow, .section--paper2 .eyebrow { color: var(--ink2); }
.display {
	margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 108px); line-height: 0.98; letter-spacing: -0.01em;
}
.h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 96px); line-height: 0.96; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; }
.statement { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; }
.lede { margin: 0; font-size: 18px; color: var(--text2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
	font: inherit; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: #fff; color: var(--bg); }
.btn--line { border-color: var(--text); color: var(--text); }
.btn--line:hover { background: var(--text); color: var(--bg); }
.btn--quiet { border-color: var(--line2); color: var(--text); }
.btn--quiet:hover { border-color: var(--text); color: var(--text); }
.btn--accent { border-color: var(--accent); color: var(--accent); min-height: 44px; padding: 0 20px; font-size: 14px; letter-spacing: 0.04em; }
.btn--accent:hover { background: var(--accent); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 500; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; }
.site-logo { font-weight: 600; font-size: 14px; letter-spacing: 0.32em; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-logo:hover { color: var(--text); }
.site-logo img { max-height: 40px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 14px; }
.site-nav a { color: var(--text2); text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav a[aria-current] { color: var(--accent); }
@media (max-width: 760px) {
	.site-header__inner { padding-top: 16px; padding-bottom: 16px; }
	.site-nav { order: 3; width: 100%; overflow-x: auto; }
	.site-nav ul { flex-wrap: nowrap; gap: 22px; padding-bottom: 4px; }
	.site-nav li { white-space: nowrap; }
}

/* Hero */
.hero { position: relative; min-height: 720px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ph); overflow: hidden; }
.hero--brand { min-height: 640px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,.7) 0%, rgba(14,13,12,.35) 45%, rgba(14,13,12,0) 75%), linear-gradient(180deg, rgba(14,13,12,.35) 0%, rgba(14,13,12,0) 30%, rgba(14,13,12,.15) 55%, rgba(14,13,12,.88) 100%); pointer-events: none; }
.hero__top, .hero__body { position: relative; z-index: 1; width: 100%; }
.hero__top { position: absolute; top: 0; left: 0; right: 0; }
.hero__top .wrap { padding-top: 24px; }
.hero__body .wrap { padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.hero__body .display, .hero__body .h1 { max-width: 960px; }
@media (max-width: 760px) { .hero { min-height: 560px; } .hero--brand { min-height: 480px; } .hero__body .wrap { padding-bottom: 44px; } }

.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.hero .breadcrumb, .hero .breadcrumb a { color: var(--text2); }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split__main { flex: 3 1 560px; min-width: 0; }
.split__side { flex: 2 1 320px; min-width: 0; }
.split--center { align-items: center; }
.split--end { align-items: flex-end; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 44px; }
.head-row p { max-width: 460px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 32px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px; }
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
@media (min-width: 1000px) { .grid--gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Media */
.media { background: var(--ph); overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--34 { aspect-ratio: 3 / 4; }
.media--43 { aspect-ratio: 4 / 3; }
.media--45 { aspect-ratio: 4 / 5; }
.media--sq { aspect-ratio: 1 / 1; }
.media--32 { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 21 / 9; }
.media--contain img { object-fit: contain; padding: 8%; background: #fff; }
.section--paper .media { background: var(--paper-line); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.card:hover { color: var(--text); }
.card:hover .card__title { color: var(--accent); }
.card__title { font-family: var(--serif); font-size: 32px; line-height: 1.05; transition: color .15s; }
.card__title--sm { font-size: 26px; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.section--paper .card, .section--paper2 .card { color: var(--ink); }
.section--paper .card__kicker, .section--paper2 .card__kicker, .section--paper .card__meta { color: var(--ink2); }
.card--ruled { border-top: 1px solid var(--line2); padding-top: 18px; }
.section--paper .card--ruled, .section--paper2 .card--ruled { border-color: var(--ink); }

/* Stats */
.stats { margin: 0; display: flex; flex-direction: column; }
.stats > div { padding: 18px 0; border-top: 1px solid var(--line); }
.stats > div:last-child { border-bottom: 1px solid var(--line); }
.stats dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--accent); }
.stats--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.stats--grid > div { border: 0; padding: 0; }
.stats--grid > div:last-child { border: 0; }

/* Lists */
.rows { display: flex; flex-direction: column; }
.row-link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row-link:last-child { border-bottom: 1px solid var(--line); }
.row-link:hover { color: var(--accent); }
.row-link__title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.row-link__meta { font-size: 14px; color: var(--muted); text-align: right; }
.makers-list { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: 24px; line-height: 1.5; }
.makers-list a { color: var(--text2); text-decoration: none; }
.makers-list a:hover { color: var(--accent); }
.col-label { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Dealers by state */
.state-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; font-size: 15px; color: var(--text2); }
.state-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.state-cols a { color: var(--text); text-decoration: none; }
.state-cols a:hover { color: var(--accent); }
.state-cols .state-code { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.state-cols .note { font-size: 13px; color: var(--muted); }

/* Prose */
.prose { font-size: 17px; color: var(--text2); }
.prose > * { margin-top: 0; margin-bottom: 1.1em; }
.prose h3, .prose h4, .prose h5 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.15; margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h3 { font-size: 30px; }
.prose h4 { font-size: 24px; }
.prose h5 { font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin-left: 0; padding-left: 24px; border-left: 1px solid var(--accent); font-family: var(--serif); font-size: 28px; line-height: 1.25; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose--article { font-family: Newsreader, Georgia, serif; font-size: 21px; line-height: 1.6; color: #26231d; max-width: 680px; }
.prose--article h3, .prose--article h4 { color: var(--ink); font-size: 38px; }
.prose--article strong { color: var(--ink); }
.prose--article blockquote { color: var(--ink); border-color: var(--ink-link); font-size: 30px; }
.section--paper .prose { color: #26231d; }
.section--paper .prose h3, .section--paper .prose h4 { color: var(--ink); }

/* Specs */
.specs { display: flex; flex-direction: column; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }

/* Product gallery */
.gallery-main { margin: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.price { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price__value { font-family: var(--serif); font-size: 40px; line-height: 1.1; display: block; }

/* Dealer finder */
.finder-filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
	min-height: 50px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none;
}
.field--brand { flex: 1 1 240px; }
.field--search { flex: 1 1 200px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 3 1 420px; }
.pill { min-height: 44px; min-width: 56px; padding: 0 14px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font: inherit; font-size: 14px; cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 500; }
.dealer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--line); }
.dealer-row[hidden] { display: none; }
.dealer-row__main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dealer-row__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.dealer-row__name a { color: var(--text); text-decoration: none; }
.dealer-row__name a:hover { color: var(--accent); }
.dealer-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 14px; }
@media (max-width: 760px) { .dealer-row__side { align-items: flex-start; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border: 1px solid #3a3631; color: var(--text2); text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-match { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.state-tally div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text2); }
.state-tally strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent); }
.empty-note { padding: 28px; border: 1px solid var(--line); }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 48px 1fr 28px; gap: 12px; align-items: center; font-size: 14px; }
.bar__track { height: 10px; background: transparent; }
.bar__fill { height: 10px; background: var(--accent); }

.panel { padding: 32px; border: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { padding-bottom: 40px; font-size: 13px; }

/* Article (journal) */
.article-head { text-align: center; align-items: center; }
.pagination { display: flex; gap: 16px; justify-content: center; padding-top: 48px; }
.pagination .page-numbers { color: inherit; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--muted); }
