/* Halden Sound — audio brand shop concept. Independent of the main site's stylesheet.
   Fonts are self-hosted (SIL OFL, licence in fonts/OFL.txt). */

@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #E9E9E6;
  --surface: #F6F6F4;
  --white: #FFFFFF;
  --ink: #111214;
  --ink-2: #3A3C40;
  --muted: #5E6166;
  --rule: #CACAC5;
  --signal: #FF4F1A;
  --signal-ink: #C23A0E;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 3.5vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink-2); font: 400 16.5px/1.6 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 700; font-stretch: 72%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.4vw, 132px); }
h2 { font-size: clamp(40px, 5.4vw, 80px); }
h3 { font-size: clamp(26px, 2.4vw, 34px); }
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
section[id] { scroll-margin-top: 80px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 7vw, 104px) 0; }
.mono { font-family: var(--mono); }
.code { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.code b { color: var(--signal-ink); font-weight: 500; }
.lead { max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.section-head p { max-width: 30em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); font-stretch: 100%; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: #2B2D31; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FF6B3D; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.textlink { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.textlink:hover { color: var(--signal-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); vertical-align: middle; }

/* ---------- Concept bar ---------- */
.concept-bar { background: var(--ink); color: #BDBFC3; font-size: 13px; }
.concept-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.concept-bar a { color: #fff; text-underline-offset: 3px; }
.concept-bar nav { display: flex; gap: 20px; }

/* Service strip under the header */
.strip { background: var(--surface); border-bottom: 1px solid var(--rule); font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 9px 0; }
.strip li::before { content: "● "; color: var(--signal); font-size: 9px; vertical-align: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(233 233 230 / 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark-glyph { position: relative; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; }
.wordmark-glyph::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--signal); }
.wordmark-name { font: 700 22px/1 var(--sans); font-stretch: 72%; letter-spacing: 0.02em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--signal-ink); }
.nav a[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.nav .nav-bag { padding: 0 16px; min-height: 40px; border: 1.5px solid var(--ink); border-radius: 999px; }
.nav .nav-bag span { font-family: var(--mono); font-weight: 500; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; font: 600 14.5px var(--sans); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.menu-toggle-bars { position: relative; width: 20px; height: 2px; background: currentColor; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 859px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 20px; }
  .js .nav.is-open { display: flex; }
  .js .nav a { min-height: 54px; font-size: 20px; font-stretch: 80%; border-bottom: 1px solid var(--rule); }
  .js .nav .nav-bag { justify-content: center; margin-top: 16px; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(8px, 2vw, 24px) 0; }
.hero h1 { margin: 16px 0 24px; }
.hero h1 span { display: block; color: var(--signal-ink); }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--ink); }
.price { font: 500 26px/1 var(--mono); color: var(--ink); }
.price small { font-size: 13px; color: var(--muted); }
.price-block { display: grid; gap: 8px; }

/* Stock line, shown next to every price */
.stock { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.3 var(--mono); color: #1C6337; }
.stock::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #23A55A; box-shadow: 0 0 0 3px rgb(35 165 90 / 0.18); }
.stock-later { color: var(--ink-2); }
.stock-later::before { background: #E3A008; box-shadow: 0 0 0 3px rgb(227 160 8 / 0.2); }

/* Orbit: price and stock follow the Single / Stereo pair choice, without JavaScript */
.if-pair { display: none; }
body:has(#set-pair:checked) .if-pair { display: inline; }
body:has(#set-pair:checked) .if-single { display: none; }
.hero-media { position: relative; background: #EEEBE7; border-radius: 6px; overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 600px) { .hero-media img { aspect-ratio: 4 / 3; object-position: 50% 78%; } }
.callout { position: absolute; display: flex; align-items: center; gap: 10px; font: 500 12.5px/1.3 var(--mono); color: var(--ink); }
.callout::before { content: ""; width: 40px; height: 1px; background: var(--ink); }
.callout::after { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.callout-1 { top: 58%; left: 61%; }
.callout-2 { top: 75%; left: 66%; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; } }
@media (max-width: 600px) { .callout { display: none; } }

/* ---------- Product cards ---------- */
.range { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: 6px; overflow: hidden; }
.card-media { position: relative; display: block; background: var(--white); }
.card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s; }
.card-media:hover img { transform: scale(1.03); }
.card-media .code { position: absolute; top: 12px; left: 12px; padding: 3px 7px; background: rgb(255 255 255 / 0.88); border-radius: 3px; color: var(--ink-2); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 20px 22px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--signal-ink); }
.card .price { font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li { padding: 4px 8px; font: 400 12px/1.3 var(--mono); border: 1px solid var(--rule); border-radius: 3px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.swatches { display: flex; gap: 8px; align-items: center; font: 400 12px var(--mono); color: var(--muted); }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.25); }
.swatch-chalk { background: #EDEBE6; }
.swatch-signal { background: var(--signal); }
.swatch-cork { background: #C98E64; }
.swatch-graphite { background: #4A4C50; }
.swatch-walnut { background: #6B4A33; }
@media (max-width: 599px) {
  .range { gap: 10px; }
  .card { flex-direction: row; }
  .card-media { flex: 0 0 34%; }
  .card-media img { height: 100%; aspect-ratio: auto; }
  .card-media .code { top: 8px; left: 8px; font-size: 11px; }
  .card-body { gap: 6px; padding: 14px 14px 12px; }
  .card h3 { font-size: 26px; }
  .card .price { font-size: 17px; }
  .card-text { font-size: 14.5px; line-height: 1.45; }
  .card .stock { font-size: 11.5px; }
  .chips { margin-top: 0; }
  .card-foot { padding-top: 6px; }
}

/* ---------- Spec table ---------- */
.specs { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--mono); }
.specs th, .specs td { padding: 13px 14px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.specs td { overflow-wrap: anywhere; hyphens: auto; }
.specs thead th { font: 700 22px/1 var(--sans); font-stretch: 72%; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); }
.specs thead a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.specs thead a:hover { color: var(--signal-ink); }
.specs tbody th { width: 22%; font-weight: 500; color: var(--muted); }
.specs-compare { table-layout: fixed; }
.specs-compare thead th:first-child { width: 22%; }
.specs-compare tbody tr:first-child td { font-weight: 500; }
@media (max-width: 599px) {
  .specs { font-size: 12.5px; }
  .specs th, .specs td { padding: 11px 8px 11px 0; }
  .specs thead th { font-size: 19px; }
  .specs tbody th { width: 30%; }
  .specs-compare thead th:first-child { width: 28%; }
}
.specs td { color: var(--ink); }

/* ---------- Support tiles ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.support li { padding: 16px 18px; background: var(--surface); }
.support h3 { margin-bottom: 4px; font-size: 22px; }
.support p { font-size: 15px; line-height: 1.5; }
.support .support-lead { padding: 22px 18px; background: var(--ink); color: #BDBFC3; }
.support .support-lead h3 { margin-bottom: 8px; font-size: clamp(28px, 2.6vw, 36px); color: #fff; }
.support .support-lead p { font-size: 16px; }
@media (min-width: 600px) { .support { grid-template-columns: repeat(3, minmax(0, 1fr)); } .support .support-lead { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .support { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .support .support-lead { grid-column: auto; } .support li { padding: 24px; } }

.showroom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--signal); color: var(--ink); border-radius: 6px; }
.showroom h2 { font-size: clamp(36px, 4.4vw, 64px); }
.showroom p { max-width: 30em; }
.showroom .code { color: var(--ink); }
@media (min-width: 900px) { .showroom { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }

/* ---------- Product page ---------- */
.crumbs { padding: 18px 0; font: 400 12.5px var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; padding-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 980px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .buybox { position: sticky; top: 96px; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { position: relative; background: var(--white); border-radius: 6px; overflow: hidden; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figure:first-child img { aspect-ratio: 5 / 4; }
.gallery figure:only-child img { object-position: 50% 72%; }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font: 400 12px var(--mono); color: var(--ink); background: rgb(255 255 255 / 0.85); padding: 3px 6px; border-radius: 3px; }
@media (max-width: 979px) {
  .gallery { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 min(84%, 520px); scroll-snap-align: start; }
  .gallery figure:only-child { flex-basis: 100%; }
  .gallery img, .gallery figure:first-child img { aspect-ratio: 1; }
  .gallery figure:only-child img { aspect-ratio: 4 / 3; }
}

.buybox { display: grid; gap: 18px; }
.buybox h1 { font-size: clamp(56px, 6vw, 96px); }
.buybox .price { font-size: 30px; }
.option-group { border: 0; }
.option-group legend { margin-bottom: 10px; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.option-group legend b { color: var(--ink); font-weight: 500; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 10px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.options input { position: absolute; opacity: 0; }
.options label:has(input:checked) { border-color: var(--ink); background: var(--white); }
.options label:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.option-static { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.option-static b { color: var(--ink); }
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.buy-row .btn { width: 100%; min-height: 58px; font-size: 16px; }
.delivery { padding: 16px 18px; background: var(--surface); border-radius: 6px; font: 400 13.5px/1.6 var(--mono); }
.delivery b { font-weight: 500; color: var(--ink); }
.in-box { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.in-box li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.in-box li span:last-child { font: 400 13px var(--mono); color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 32px; }
.features li { padding-top: 16px; border-top: 1px solid var(--ink); }
.features h3 { margin-bottom: 8px; font-size: 28px; }
.features p { font-size: 15.5px; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--signal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 44em; padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--ink); color: #A3A6AB; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark-glyph { border-color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid #2E3034; }
.footer-grid h4 { margin-bottom: 10px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8A8D93; }
.footer-grid li { padding: 4px 0; }
.footer-grid p { margin-top: 16px; max-width: 24em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; font-size: 13px; }

/* ---------- Concept dialog ---------- */
.concept-dialog { max-width: min(460px, calc(100% - 32px)); margin: auto; padding: 32px 28px 26px; background: var(--surface); color: var(--ink-2); border: 0; border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.35); }
.concept-dialog::backdrop { background: rgb(17 18 20 / 0.6); }
.concept-dialog h2 { margin-bottom: 12px; font-size: 40px; }
.concept-dialog p { margin-bottom: 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dialog-close { min-height: 44px; background: none; border: 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mt { margin-top: 18px; }

/* ---------- Buy bar (product pages, phones) ---------- */
.buybar { display: none; }
@media (max-width: 979px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(246 246 244 / 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgb(0 0 0 / 0.08); }
  .js .buybar { transform: translateY(110%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
  .js .buybar.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
  body:has(.buybar) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .buybar-info { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 2px 10px; min-width: 0; }
  .buybar-info b { font: 700 22px/1 var(--sans); font-stretch: 72%; text-transform: uppercase; color: var(--ink); }
  .buybar-price { font: 500 16px/1 var(--mono); color: var(--ink); }
  .buybar .stock { grid-column: 1 / -1; font-size: 11.5px; }
  .buybar .btn { flex: none; min-height: 48px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) { .js .buybar, .js .buybar.is-visible { transition: none; } }
