:root {
  --bg: #080d2b;
  --bg-2: #111a4a;
  --line: #232e6e;
  --line-2: #3a478f;
  --text: #f2f4ff;
  --muted: #c3cae8;
  --dim: #9aa5d4;
  --accent: #5ce1e6;
  --vinyl: #2ba3b4;
  --light: #f2f4ff;
  --light-text: #080d2b;
  --light-muted: #3b4470;
  --light-card: #dde2f7;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bakgrunn */
.sky {
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, rgba(8,13,43,.5) 0, rgba(8,13,43,.62) 480px, var(--bg) 860px),
    url('/img/bakgrunn.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%, max(100%, 1320px) auto;
}
@media (max-width: 900px) {
  .sky { background-image: linear-gradient(to bottom, rgba(8,13,43,.5) 0, rgba(8,13,43,.62) 480px, var(--bg) 860px), url('/img/bakgrunn-1440.jpg'); }
}

/* Topp */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--text); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; }
.nav a { color: var(--text); text-decoration: none; padding: 12px 14px; }
.nav .cart-btn { color: var(--light-text); background: var(--accent); border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 500; cursor: pointer; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 32px 72px; }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; }
.kicker { margin: 4px 0 0; font-family: var(--mono); font-size: 15px; letter-spacing: .08em; color: var(--accent); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 48px; height: 48px; background: transparent; color: var(--text); border: 0; font-size: 22px; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-family: var(--mono); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-primary { background: var(--accent); color: var(--light-text); border: 0; border-radius: 999px; padding: 18px 32px; font-size: 18px; font-weight: 800; cursor: pointer; min-height: 56px; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.soldout { display: inline-block; font-family: var(--mono); font-size: 13px; background: var(--text); color: var(--light-text); padding: 6px 10px; border-radius: 999px; }

.hero-art { flex: 1 1 380px; position: relative; min-width: 280px; }
.hero-art .photo { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.record {
  position: absolute; right: 0; top: 10%; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background-color: var(--vinyl);
  background-image: repeating-radial-gradient(circle, rgba(255,255,255,.10) 0 1px, transparent 1px 5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: spin 24s linear infinite;
}
.record .label { position: absolute; inset: 31%; border-radius: 50%; background: #10228a; display: flex; justify-content: center; }
.record .label span { margin-top: 12%; font-weight: 800; font-size: clamp(18px, 3vw, 34px); color: var(--accent); line-height: 1; }
.record .hole { position: absolute; left: calc(50% - 6px); top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.record img { position: absolute; inset: 0; border-radius: 50%; object-fit: cover; }
.cover { position: absolute; left: 0; top: 0; width: 80%; height: auto; aspect-ratio: 1; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } }

/* Sporliste */
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.section h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; line-height: 1; }
.section-head a { font-family: var(--mono); font-size: 14px; padding: 12px 0; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.side { background: var(--bg-2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-head strong { font-weight: 800; font-size: 28px; color: var(--accent); }
.side-head span, .track .pos, .track .len { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.track { display: flex; align-items: center; gap: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.track .title { font-size: 18px; flex-grow: 1; }
.play { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid #5c6ab8; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.play[aria-pressed="true"] { background: var(--accent); color: var(--light-text); border-color: var(--accent); }

/* Merch */
.merch { background: var(--light); color: var(--light-text); }
.merch[hidden] { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product { color: var(--light-text); text-decoration: none; display: flex; flex-direction: column; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.product .thumb { position: relative; aspect-ratio: 1; background: var(--light-card); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--light-muted); }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .thumb .soldout { position: absolute; left: 12px; top: 12px; }
.product .name { font-weight: 600; font-size: 18px; }
.product .p { font-family: var(--mono); font-size: 14px; color: var(--light-muted); }

/* Bunn */
.foot { padding-block: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.foot .col { display: flex; flex-direction: column; gap: 8px; }
.foot .brand { font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--text); }
.foot a { padding: 8px 0; }

/* Spotify-stripe */
.player { position: sticky; bottom: 0; background: #04071c; border-top: 1px solid var(--line); z-index: 5; }
.player[hidden] { display: none; }
.player .wrap { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.player .embed { flex: 1 1 200px; min-width: 0; height: 80px; }
.player .embed iframe { width: 100%; height: 80px; border: 0; border-radius: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #5c6ab8; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }

/* Kurv */
.drawer { position: fixed; inset: 0; z-index: 20; display: none; }
.drawer[open] { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.55); border: 0; width: 100%; cursor: pointer; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: auto; }
.drawer h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.drawer .head { display: flex; align-items: center; justify-content: space-between; }
.line { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-block: 12px; }
.line .n { flex-grow: 1; }
.line .n small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.line .qty button { width: 40px; height: 40px; }
.zone { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.zone select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.sum { font-family: var(--mono); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { color: var(--text); font-size: 18px; }
.error { font-family: var(--mono); font-size: 13px; color: #ffb4b4; }
.empty { color: var(--muted); }

/* Takk-side */
.thanks { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 64px; max-width: 640px; }
.thanks h1 { margin: 0; font-size: clamp(36px, 6vw, 72px); letter-spacing: -.03em; line-height: 1; }
.thanks ul { padding-left: 20px; color: var(--muted); }
