/* Broken Land Records. Near-black ground, one typeface (IBM Plex Mono), two sizes, the 2017 logo, artwork as the
   only colour. No photography, no colour bands, no decoration. Hover is a change of tone, never movement. */
@font-face { font-family: 'Plex Mono'; src: url(fonts/IBMPlexMono-normal-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(fonts/IBMPlexMono-normal-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
:root { --bg: #0D0D0C; --fg: #E9E7E2; --dim: #8D8A84; --line: #2A2927; --m: clamp(16px, 2.6vw, 40px); --hd: 64px; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: transparent; color: var(--fg); font: 400 13px/1.6 'Plex Mono', ui-monospace, Menlo, monospace; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2 { font-size: inherit; font-weight: 500; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--dim); }
em { font-style: italic; }
.dim { color: var(--dim); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
main:focus { outline: none; }
::selection { background: var(--fg); color: var(--bg); }
.sr-only { 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 { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--fg); color: var(--bg); padding: 6px 10px; }
.skip:focus { top: 10px; }

/* grain: a fixed, fine film grain behind every page. It sits under all content (z-index -1), so type and
   artwork stay crisp; only the empty ground carries texture. Tile made by scripts/grain.mjs. */
html::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(grain.png) repeat; background-size: 256px 256px; }
html.no-grain::before { display: none; }
.cmp { position: fixed; left: 12px; bottom: 12px; z-index: 20; font: inherit; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--fg); border: 0; padding: 8px 12px; cursor: pointer; }

/* header: logo left, three words right. Nothing else. */
.hd { display: flex; justify-content: space-between; align-items: center; height: var(--hd); padding: 0 var(--m); }
.hd__mark { width: 132px; height: auto; aspect-ratio: 350.1 / 64.9; color: var(--fg); }
.hd__nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.hd__nav a { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.hd__nav a[aria-current="page"] { color: var(--dim); }
.pg-home .hd__logo { visibility: hidden; }
@media (max-width: 480px) { .hd__mark { width: 104px; } .hd__nav ul { gap: 14px; } .hd__nav a { letter-spacing: .08em; } }
@media (max-width: 420px) { .hd__mark { width: 88px; } .hd__nav ul { gap: 10px; } .hd__nav a { font-size: 10px; letter-spacing: .04em; } }

/* home: the square logo alone in the first screen, the catalog index below */
.hm { position: relative; min-height: calc(100svh - var(--hd) - 40px); display: grid; place-items: center; padding: 0 var(--m); }
/* the goat: a strip along the bottom of the first screen, under the logo; it never takes the pointer */
.hm__goat { position: absolute; left: var(--m); right: var(--m); bottom: 8px; width: calc(100% - 2 * var(--m)); height: clamp(104px, 15vh, 150px); pointer-events: none; }
.hm__logo { margin: 0; }
.hm__mark { width: clamp(150px, 17vw, 240px); height: auto; aspect-ratio: 132.6 / 113.6; color: var(--fg); }
.ix { position: relative; padding: 0 var(--m) 96px; }
.sh { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--dim); font-weight: 400; margin: 40px 0 12px; }
.ix .sh { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.ix__list li { border-bottom: 1px solid var(--line); }
.ix__list a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) auto; gap: 16px; padding: 12px 0; }
.ix__list a:hover { color: var(--fg); }
.ix__list a:hover .ix__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ix__peek { position: fixed; z-index: 5; width: 220px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ix__peek.on { opacity: 1; }
@media (max-width: 699px) { .ix__list a { grid-template-columns: minmax(0, 1fr) auto; } .ix__a, .ix__f { display: none; } .ix__peek { display: none; } }

/* inner pages */
.pg { padding: clamp(32px, 6vw, 88px) var(--m) 96px; }
.pg__h { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin-bottom: clamp(28px, 4vw, 56px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--m); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid a { display: block; }
.grid .art { margin-bottom: 12px; }
.grid__t, .grid__m { display: block; }
.grid a:hover .grid__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.grid a:hover { color: var(--fg); }
.art { aspect-ratio: 1; background: #1a1918; }
.art img { width: 100%; height: 100%; object-fit: cover; }

/* release */
.rl { display: grid; gap: 32px var(--m); padding: clamp(24px, 4vw, 56px) var(--m) 64px; align-items: start; }
@media (min-width: 900px) { .rl { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .rl__art { position: sticky; top: 24px; } }
.rl__art .art { max-width: 760px; }
.rl__txt { max-width: 560px; }
.rl__t { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.kv { margin-top: 28px; border-top: 1px solid var(--line); }
.kv > div, .cr > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--dim); }
.cr > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
.links li + li { margin-top: 2px; }
.links a::after { content: ' ↗'; color: var(--dim); }
.links--row { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 48px; }
.tl li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl li:first-child { border-top: 1px solid var(--line); }
.tl__w { display: block; }
.note { max-width: 52ch; }
.src { margin-top: 10px; }
.pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 24px var(--m) 64px; border-top: 1px solid var(--line); margin: 0 var(--m); padding-left: 0; padding-right: 0; }
.pn a:last-child { text-align: right; }
@media (max-width: 599px) { .pn { grid-template-columns: 1fr 1fr; } .pn > a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* artists, information */
.roster li { border-top: 1px solid var(--line); }
.roster li:last-child { border-bottom: 1px solid var(--line); }
.roster a { display: flex; justify-content: space-between; padding: 12px 0; }
.info__grid { display: grid; gap: 48px var(--m); }
@media (min-width: 900px) { .info__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.info__about { max-width: 58ch; }
.info__about p + p { margin-top: 1em; }
.info__contact .sh:first-child { margin-top: 0; }
.info__mail { font-size: clamp(15px, 1.4vw, 18px); }
.info__mail a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.plain li { margin-top: 10px; }
.nf p + p { margin-top: 16px; }
.nf a { text-decoration: underline; text-underline-offset: 4px; }

/* footer: the contact, always one glance away */
.ft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--m) 28px; border-top: 1px solid var(--line); margin: 0 var(--m); padding-left: 0; padding-right: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* discography previews: black and white at rest, the original colour on hover or keyboard focus.
   A display filter only; the artwork files are untouched. */
.grid .art img { filter: grayscale(1); transition: filter .5s ease; }
.grid a:hover .art img, .grid a:focus .art img { filter: grayscale(0); }

/* store: Supreme's clarity, Chrome Hearts' restraint. The same two sizes, thin rules and uppercase labels as the
   catalog; controls are outlined boxes that fill on choice. No badges, no counters of stock, no urgency. */
.sb { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(24px, 4vw, 56px) var(--m) 0; }
.sb__h { margin: 0; }
.sb__crumb, .sb__cart { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.sb__cart { font: inherit; font-size: 11px; letter-spacing: .12em; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; }
.sb__cart:hover { color: var(--dim); }
.st { padding-top: clamp(20px, 3vw, 40px); }
.st__lede { max-width: 60ch; margin: 0 0 40px; }
@media (min-width: 1100px) { .grid--merch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mc a { display: block; }
.mc a:hover { color: var(--fg); }
.mc a:hover .mc__n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mc__frame { position: relative; aspect-ratio: 4 / 5; background: #141413; margin-bottom: 12px; overflow: hidden; }
.mc__img, .mc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc__img--alt { opacity: 0; transition: opacity .4s ease; }
.mc:hover .mc__img--alt, .mc a:focus-visible .mc__img--alt { opacity: 1; }
.mc__none { display: grid; place-items: center; height: 100%; }
.mc__n { margin-top: 4px; }
.mc__s { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

/* product: images left (stacked; a sideways swipe on phones), facts right and sticky */
.pd { display: grid; gap: 32px var(--m); padding: clamp(20px, 3vw, 40px) var(--m) 64px; align-items: start; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .pd__txt { position: sticky; top: 24px; } }
.pd__imgs li { aspect-ratio: 4 / 5; background: #141413; }
.pd__imgs li + li { margin-top: var(--m); }
.pd__imgs picture, .pd__imgs img { width: 100%; height: 100%; object-fit: cover; }
.pd__count { margin-top: 8px; font-size: 11px; letter-spacing: .1em; display: none; }
@media (max-width: 899px) {
  .pd__gal { margin: 0 calc(-1 * var(--m)); }
  .pd__imgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pd__imgs::-webkit-scrollbar { display: none; }
  .pd__imgs li { flex: 0 0 100%; scroll-snap-align: start; }
  .pd__imgs li + li { margin-top: 0; }
  .pd__count { display: block; padding: 0 var(--m); }
}
.pd__txt { max-width: 560px; }
.pd__price { margin-top: 4px; }
.pd__desc { margin-top: 16px; max-width: 52ch; }
.pd__form { margin-top: 28px; }
.opt { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.opt__l { padding: 0; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.opt__row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt__b { display: inline-grid; place-items: center; min-width: 48px; height: 36px; padding: 0 12px; border: 1px solid var(--line); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; transition: border-color .15s, background .15s, color .15s; }
.opt__b:hover { color: var(--fg); border-color: var(--dim); }
.opt__b[aria-current], input:checked + .opt__b { background: var(--fg); color: var(--bg); border-color: var(--fg); }
input:focus-visible + .opt__b { outline: 1px solid var(--fg); outline-offset: 3px; }
.is-out .opt__b { color: var(--dim); text-decoration: line-through; }
.pd__chart { margin: -4px 0 24px; }
.pd__chart summary { cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--dim); list-style: none; }
.pd__chart summary::-webkit-details-marker { display: none; }
.pd__chart summary::after { content: ' +'; }
.pd__chart[open] summary::after { content: ' ×'; }
.pd__chart summary:hover { color: var(--fg); }
.pd__chart table, .tbl table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.pd__chart th, .pd__chart td, .tbl th, .tbl td { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd__chart thead th, .tbl thead th { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.btn { display: block; width: 100%; height: 48px; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--bg); background: var(--fg); border: 1px solid var(--fg); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover:not(:disabled) { background: var(--bg); color: var(--fg); }
.btn:disabled { cursor: default; color: var(--dim); background: transparent; border-color: var(--line); }
.btn--line { color: var(--fg); background: transparent; }
.btn--line:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.pd__msg { min-height: 1.6em; margin-top: 8px; }
.kv--pd { margin-top: 0; }
.kv--pd > div { grid-template-columns: 7.5em minmax(0, 1fr); }
.pd__list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pd__list li:first-child { border-top: 1px solid var(--line); }
.pd__pol { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 12px; }
.pd__pol a, .pol__txt a, .ft__pol a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tx { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.tx:hover { color: var(--dim); }
.tx:disabled { color: var(--line); cursor: default; }

/* Notify me: one field, one explicit consent box */
.nt { margin: 8px 0 8px; }
.nt .sh { margin-top: 28px; }
.nt__l { display: block; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.nt__in { width: 100%; height: 44px; padding: 0 12px; font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 0; }
.nt__in:focus { outline: 1px solid var(--fg); outline-offset: 0; border-color: var(--fg); }
.nt__in[aria-invalid="true"] { border-color: var(--fg); }
.nt__ck { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 14px 0 16px; cursor: pointer; }
.nt__ck input { margin: 4px 0 0; accent-color: var(--fg); width: 14px; height: 14px; }
.nt__ck a { text-decoration: underline; text-underline-offset: 3px; }
.nt__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nt__msg { min-height: 1.6em; margin-top: 10px; }
.nt__msg.is-err { color: var(--fg); }

/* cart drawer: a native dialog along the right edge; full width on phones */
.cd { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; color: var(--fg); background: var(--bg); border: 0; border-left: 1px solid var(--line); }
.cd::backdrop { background: rgba(13, 13, 12, .72); }
.cd__in { display: flex; flex-direction: column; height: 100%; padding: 20px var(--m) 24px; overflow-y: auto; }
.cd__hd { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cd__hd .sh { margin: 0; }
.cd__hd .sh:focus { outline: none; }
.cd__empty { padding: 16px 0; }
.cd__lines { flex: 1; }
.cl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl__img { aspect-ratio: 4 / 5; background: #141413; }
.cl__img img { width: 100%; height: 100%; object-fit: cover; }
.cl__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl__qty { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cl__qty [data-q] { width: 28px; height: 28px; border: 1px solid var(--line); font-size: 13px; letter-spacing: 0; }
.cl__qty [data-qn] { min-width: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
.cl__rm { margin-left: auto; color: var(--dim); }
.cl__p { font-variant-numeric: tabular-nums; }
.cd__ft { padding-top: 16px; }
.cd__sum { display: flex; justify-content: space-between; padding: 8px 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cd__ft .btn { margin-top: 16px; }
.cd__note { margin-top: 8px; min-height: 1.6em; }

/* consent: a single line along the bottom, two words to choose */
.cb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 14px var(--m); background: var(--bg); border-top: 1px solid var(--line); }
.cb[hidden] { display: none; }
.cb a { text-decoration: underline; text-underline-offset: 3px; }
.cb__b { display: flex; gap: 24px; }
.cmp--store { left: auto; right: 12px; }
body:has(.cb:not([hidden])) .cmp { bottom: calc(12px + var(--cbh, 64px)); }
body:has(.cb:not([hidden])) { padding-bottom: var(--cbh, 64px); }
@media (max-width: 600px) { body { --cbh: 110px; } }
.ft__pol { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* policies and review docs */
.pol__txt { max-width: 68ch; }
.pol__txt p, .pol__txt ul, .pol__txt ol { margin-bottom: 1em; }
.pol__txt .sh { margin: 32px 0 10px; }
.pol__ul li, .pol__ol li { padding-left: 1.4em; text-indent: -1.4em; margin-top: 4px; }
.pol__ul li::before { content: '·'; display: inline-block; width: 1.4em; text-indent: 0; color: var(--dim); }
.pol__ol { counter-reset: n; }
.pol__ol li { counter-increment: n; }
.pol__ol li::before { content: counter(n) '.'; display: inline-block; width: 1.4em; text-indent: 0; color: var(--dim); }
.pol--doc .pol__txt { max-width: 110ch; }
.tbl { overflow-x: auto; margin-bottom: 1em; }
.tbl td, .tbl th { min-width: 8em; }
mark.todo { background: #3a3320; color: #F2D98C; padding: 0 3px; }

/* design review (preview only): the three directions side by side */
.rv__grid { display: grid; gap: 56px var(--m); margin-bottom: 48px; }
@media (min-width: 1000px) { .rv__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv__col { border-top: 1px solid var(--line); padding-top: 16px; }
.rv__col--rec { border-top-color: var(--fg); }
.rv__tag { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin: 4px 0 12px; }
.rv__col > p + p { margin-top: 8px; }
.rv__imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.rv__imgs picture { aspect-ratio: 4 / 5; background: #141413; }
.rv__imgs img { width: 100%; height: 100%; object-fit: cover; }
.rv__imgs p { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
