/* TINMUSIC | tinmusic.be
   Palet: zwart, lichtzwart, wit en lichtgrijs, met ultraviolet als enige accent. */

:root {
  --black: #000000;
  --lblack: #1C1D21;
  --white: #FFFFFF;
  --lgray: #EFF0F2;
  --tin: #D5D8DD;
  --tin-deep: #C2C6CD;
  --sheet: #ECEEF1;
  --ink: #15171C;
  --ink-soft: #4B505A;
  --uv: #4B1FFF;
  --uv-deep: #3610D9;
  --uv-light: #B9A8FF;
  --line: rgba(21, 23, 28, .18);
  --focus: var(--uv);

  --display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Typeschaal 1.25 */
  --s-1: .8rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.563rem;
  --s3: 1.953rem;
  --s4: 2.441rem;
  --s5: 3.052rem;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --nav-h: 4rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--ink);
  font: 400 var(--s0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; }
h2 {
  font-size: clamp(var(--s4), 6vw, 4.5rem);
  font-variation-settings: "wdth" 130;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
h3 { font-size: var(--s1); font-variation-settings: "wdth" 110; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.intro { max-width: 58ch; font-size: var(--s1); color: var(--ink-soft); line-height: 1.5; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--sheet); padding: .7rem 1rem; border-radius: 6px;
}
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Donkere secties */
.hero, .about, .footer {
  --line: rgba(255, 255, 255, .16);
  --focus: var(--uv-light);
  --ink-soft: #A9AEB8;
}
.hero .btn--line:hover, .about .btn--line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  border: 2px solid transparent; border-radius: 6px;
  font: 600 var(--s0)/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--uv { background: var(--uv); color: #fff; }
.btn--uv:hover { background: var(--uv-deep); }
.btn--line { border-color: currentColor; background: transparent; color: inherit; }
.btn--line:hover { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn--sm { padding: .6em 1em; font-size: .9rem; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--line:disabled:hover { background: transparent; color: inherit; border-color: currentColor; }

.link-btn {
  background: none; border: 0; padding: .25em 0; cursor: pointer;
  font: 600 .9rem/1 var(--body); color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--uv); }

.chip {
  display: inline-block; padding: .45em .8em;
  border: 1.5px solid var(--line); border-radius: 6px;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--uv); color: var(--uv); }

/* ---------- Navigatie ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--black);
  color: var(--white);
  --focus: var(--uv-light);
}
.nav__logo {
  font: 900 var(--s2)/1 var(--display); font-variation-settings: "wdth" 150;
  text-decoration: none; letter-spacing: -.01em;
}
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links a { text-decoration: none; font-weight: 600; }
.nav__links a { color: var(--white); }
.nav__links a:hover { color: var(--uv-light); }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.nav__lang, .nav__cart, .nav__menu {
  font: 600 .9rem/1 var(--body); color: var(--white);
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 6px;
  padding: .55em .8em; cursor: pointer;
}
.nav__lang:hover, .nav__cart:hover, .nav__menu:hover { border-color: var(--white); }
.nav__cart { display: inline-flex; align-items: center; gap: .5em; }
.nav__count {
  min-width: 1.5em; padding: .2em .4em; border-radius: 4px;
  background: var(--white); color: var(--black); font-size: .8rem; text-align: center;
}
.nav__count.has-items { background: var(--uv); color: #fff; }
.nav__menu { display: none; }

@media (max-width: 760px) {
  .nav__menu { display: inline-block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid rgba(255, 255, 255, .16);
    padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: var(--s1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--lblack);
  color: var(--white);
  --chars: 3;
}
.hero__mark {
  position: relative; align-self: center;
  font-weight: 900;
  font-size: min(calc((100vw - 2 * var(--gutter)) / (var(--chars) * .93)), 28rem);
  line-height: .78;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 150;
  margin-left: -.04em;
  animation: stretch 1.5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes stretch {
  from { font-variation-settings: "wdth" 50; opacity: 0; }
  20% { opacity: 1; }
  to { font-variation-settings: "wdth" 150; }
}
.hero__foot {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem;
}
.hero__tag { max-width: 34ch; margin: 0; color: #D9DBE0; font-size: clamp(var(--s1), 2.2vw, var(--s2)); line-height: 1.35; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
}

/* ---------- Luister ---------- */
.listen { background: var(--white); padding-block: var(--section); }
.listen__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.listen__text { max-width: 44ch; color: var(--ink-soft); font-size: var(--s1); line-height: 1.5; }
.platforms { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.platforms a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.platforms__name {
  font: 800 clamp(var(--s2), 3.4vw, var(--s4))/1 var(--display); font-variation-settings: "wdth" 120;
  transition: color .15s, font-variation-settings .3s;
}
.platforms__handle { color: var(--ink-soft); font-size: .95rem; }
.platforms a:hover .platforms__name { color: var(--uv); font-variation-settings: "wdth" 150; }
.listen__embed iframe { width: 100%; height: 452px; border: 0; border-radius: 12px; display: block; }
.listen__embed:empty { display: none; }

@media (max-width: 860px) {
  .listen__grid { grid-template-columns: 1fr; }
  .listen__embed iframe { height: 380px; }
}

/* ---------- Covers ---------- */
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--tin-deep); }
.cover--gen {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 70% 70%, transparent 0 18%, rgba(255,255,255,.14) 18.5% 19%, transparent 19.5% 30%, rgba(255,255,255,.1) 30.5% 31%, transparent 31.5%),
    linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: flex-start; padding: 8%;
}
.cover--gen span {
  font: 900 clamp(1rem, 4vw, 2.6rem)/1 var(--display); font-variation-settings: "wdth" 150;
  color: rgba(255, 255, 255, .92); letter-spacing: -.02em;
}

/* ---------- Releases ---------- */
#music { background: var(--lgray); }
.releases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.release {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.release h3 { font-size: var(--s2); margin-bottom: .35rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.release__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; max-width: 26rem; }
.release .cover--gen span { font-size: 1.4rem; }
.release--embed { grid-template-columns: minmax(0, 1fr) auto; }
.release__player { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; background: var(--lblack); }
.empty { color: var(--ink-soft); font-size: var(--s1); padding: 1.5rem 0; }

@media (max-width: 760px) {
  .release { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
  .release__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .release--embed { grid-template-columns: 1fr; }
}

/* ---------- Shop ---------- */
.shop { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.filters:empty { display: none; }
.filter {
  font: 600 .92rem/1 var(--body); color: var(--ink);
  background: transparent; border: 1.5px solid var(--line); border-radius: 6px;
  padding: .65em 1em; cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 2.5rem 1.5rem; }
.product { display: flex; flex-direction: column; gap: 1rem; }
.product__body { flex: 1; }
.product__cat { margin: 0 0 .35rem; color: var(--uv); font-weight: 600; font-size: .9rem; }
.product h3 { margin-bottom: .4rem; }
.product__desc { color: var(--ink-soft); margin-bottom: .5rem; }
.product__format { font-size: .9rem; font-weight: 600; margin: 0; }
.product__beatport { font-size: .9rem; color: var(--ink-soft); }
.product__buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font: 800 var(--s2)/1 var(--display); font-variation-settings: "wdth" 110; }
.shop__note { margin: 3rem 0 0; color: var(--ink-soft); max-width: 60ch; }
.shop__note a { color: var(--uv); font-weight: 600; }

/* ---------- Over ---------- */
.about { background: var(--lblack); color: var(--white); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 clamp(2rem, 6vw, 5rem);
}
.about__grid h2 { grid-column: 1 / -1; }
.about__text p { color: #D9DBE0; max-width: 60ch; font-size: var(--s1); line-height: 1.55; }
.about__facts { margin: 0; }
.about__facts div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.about__facts div:first-child { border-top: 1px solid var(--line); }
.about__facts dt { color: var(--ink-soft); font-size: .9rem; }
.about__facts dd { margin: .15rem 0 0; font-weight: 600; }
.contact { margin-top: 2.5rem; }
.contact h3 { font-size: var(--s2); margin-bottom: .5rem; }
.contact p { color: var(--ink-soft); }
.contact .btn { word-break: break-all; text-align: center; line-height: 1.3; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { margin-top: 1.5rem; }
}

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 var(--s0)/1.4 var(--body); color: var(--ink);
  background: var(--sheet); border: 1.5px solid rgba(21, 23, 28, .3); border-radius: 6px;
  padding: .75em .85em;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--uv); box-shadow: 0 0 0 3px rgba(75, 31, 255, .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C4142B; }
.form__status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form__status.is-error { color: #A8102A; }

.methods { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.methods legend { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.method {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1rem; border: 1.5px solid rgba(21, 23, 28, .25); border-radius: 6px; cursor: pointer;
}
.method:has(input:checked) { border-color: var(--uv); background: rgba(75, 31, 255, .06); }
.method input { accent-color: var(--uv); width: 1.1rem; height: 1.1rem; margin: 0; }
.method span { font-weight: 600; }
.method small { display: block; color: var(--ink-soft); font-weight: 400; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { accent-color: var(--uv); width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: none; }

/* ---------- Dialogen ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--sheet); }
dialog::backdrop { background: rgba(21, 23, 28, .55); }
.dlg { padding: 1.5rem; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dlg__head h2 { font-size: var(--s3); margin: 0; }

.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(28rem, 100%);
  border-radius: 0;
}
.drawer[open] { display: flex; }
.drawer[open] .dlg {
  display: flex; flex-direction: column; flex: 1;
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.drawer[open] { animation: slide-in .25s ease-out; }
@keyframes slide-in { from { transform: translateX(100%); } }

.cart__list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.cart__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart__item .cover--gen span { font-size: .9rem; }
.cart__title { margin: 0; font-weight: 600; }
.cart__fmt { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.cart__right { display: grid; justify-items: end; gap: .2rem; font-weight: 600; }
.cart__empty { color: var(--ink-soft); padding: 1rem 0; }
.cart__foot { padding-top: 1.25rem; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--s1); }
.cart__total strong { font: 800 var(--s3)/1 var(--display); font-variation-settings: "wdth" 110; }

.modal { width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border-radius: 10px; }
.co__summary { list-style: none; margin: 0 0 1.25rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.co__summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.co__summary .co__sum-total { font-weight: 700; padding-top: .5rem; }

.done h2 { font-size: var(--s3); margin-bottom: 1rem; }
.pay { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; margin: 1.25rem 0; }
.pay__data { flex: 1 1 14rem; }
.pay__qr { background: #fff; padding: .6rem; border-radius: 6px; line-height: 0; }
.pay__qr:empty { display: none; }
.pay__qr img, .pay__qr canvas { width: 9.5rem !important; height: 9.5rem !important; }
.pay__data { margin: 0; }
.pay__data div { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.pay__data dt { font-size: .85rem; color: var(--ink-soft); }
.pay__data dd { margin: 0; display: flex; justify-content: space-between; gap: .75rem; font-weight: 700; word-break: break-all; }
.notice { margin: 1.25rem 0; padding: 1rem; border-left: 4px solid var(--uv); background: rgba(75, 31, 255, .07); }
.notice p { margin-bottom: .75rem; }
.done__after { color: var(--ink-soft); margin: 1.25rem 0; }
.done__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #A9AEB8; padding-block: 3.5rem; --focus: var(--uv-light); }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.footer__mark {
  margin: 0; color: var(--sheet);
  font: 900 var(--s5)/.85 var(--display); font-variation-settings: "wdth" 150;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: flex-end; }
.footer__links a { color: var(--sheet); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--uv-light); }
.footer__legal { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--sheet); padding: .85rem 1.2rem; border-radius: 6px;
  font-weight: 600; max-width: calc(100% - 2rem);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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

@media (max-width: 420px) {
  .nav { gap: .5rem; }
  .nav__logo { font-size: var(--s1); }
  .nav__tools { gap: .35rem; }
  .nav__lang, .nav__cart, .nav__menu { padding: .5em .6em; }
}

/* ---------- Onderhoudsmelding ---------- */
.notice-bar {
  background: var(--uv); color: #fff;
  padding: .7rem var(--gutter);
  padding-top: calc(.7rem + env(safe-area-inset-top, 0px));
  text-align: center; font-size: .95rem; line-height: 1.45;
}
.notice-bar[hidden] { display: none; }
.notice-bar p { margin: 0 auto; max-width: 70ch; }
.notice-bar strong { font-weight: 700; }
.product__soon { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.nav__cart[hidden] { display: none; }
