/* Herman Mjølnerød – portefølje */
:root {
  --bg: #D9E9F7;
  --surface: #EEF5FC;
  --ink: #0E2238;
  --muted: #3B5470;
  --faint: #4A6078;
  --line: #A9C4DE;
  --accent: #2747D6;
  --sky: #9CC6EC;
  --wood: #B98A5E;
  --wood-top: #D2A679;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.mono { font-family: var(--mono); }
.kicker { margin: 0 0 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 540px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-header a { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-header a[aria-current="page"] { color: var(--accent); }
.logo { font-weight: 500; }

/* Forside */
@keyframes spin { to { transform: rotate(360deg); } }
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(56px, 11vw, 168px); line-height: .86; font-weight: 800; letter-spacing: -.04em; }
.hero h1 span { display: block; }
.outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hero .lead { margin-top: 40px; }
.hero-disc { flex: 1 1 320px; display: flex; justify-content: center; text-decoration: none; }

.vinyl { border-radius: 50%; background: repeating-radial-gradient(circle, #1d2430 0 2px, #0a0e14 2px 5px); display: flex; align-items: center; justify-content: center; }
.vinyl .label { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; position: relative; }
.vinyl .hole { width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.big-disc { width: min(420px, 80vw); aspect-ratio: 1; animation: spin 6s linear infinite; box-shadow: 0 30px 80px rgba(14,34,56,.35); }
.big-disc .label span { position: absolute; font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--ink); }
.big-disc .label .t { top: 18%; }
.big-disc .label .b { bottom: 18%; font-size: 11px; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .big-disc { animation: none; } }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 96px; }
.door { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: 28px; min-height: 220px; background: var(--surface); text-decoration: none; border-radius: 4px; transition: transform .25s ease, background .25s ease, color .25s ease; }
.door:hover { transform: translateY(-6px) rotate(-1deg); background: var(--accent); color: #fff; }
.door .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.door:hover .num { color: #fff; }
.door strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.door small { display: block; margin-top: 8px; font-size: 17px; opacity: .85; }

.contact { background: var(--ink); color: var(--bg); }
.contact a { color: var(--bg); }
.contact a:hover { color: var(--sky); }
.contact-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; padding-top: 72px; padding-bottom: 56px; }
.contact h2 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: .9; font-weight: 800; letter-spacing: -.03em; }
.contact-links { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 16px; }
.footer-note { margin: 0; padding-bottom: 32px; font-family: var(--mono); font-size: 12px; color: var(--sky); }

/* Platehylla */
.page-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; padding-top: 24px; padding-bottom: 40px; }
.page-head h1 { margin: 0; font-size: clamp(52px, 9vw, 128px); line-height: .88; font-weight: 800; letter-spacing: -.04em; }
.page-head p { margin: 0; max-width: 380px; font-size: 18px; line-height: 1.5; color: var(--muted); }

.shelf-section { padding-bottom: 80px; }
.tab { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.tab b { display: inline-block; padding: 6px 14px 8px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 800; font-size: 22px; border-radius: 3px 3px 0 0; }
.tab b.alt { background: var(--accent); color: #fff; }
.shelf { display: flex; flex-wrap: wrap; row-gap: 56px; }
.slot { flex: 0 0 300px; display: flex; flex-direction: column; }
@media (max-width: 640px) { .slot { flex-basis: 100%; } }
.plank { height: 20px; background: var(--wood); border-top: 5px solid var(--wood-top); box-shadow: 0 14px 18px rgba(14,34,56,.25); }
.slot-caption { margin: 14px 0 0 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.rec { position: relative; display: block; height: 290px; text-decoration: none; }
.rec .tilt { position: absolute; left: 24px; bottom: 0; width: 250px; height: 250px; transform: rotate(var(--tilt, 0deg)); transform-origin: bottom left; transition: transform .3s ease; }
.rec .vinyl { position: absolute; left: 10px; top: 10px; width: 230px; height: 230px; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.rec .vinyl .label { width: 78px; height: 78px; background: var(--lbl, var(--sky)); }
.rec .sleeve { position: absolute; inset: 0; box-shadow: 0 10px 20px rgba(14,34,56,.3); transition: box-shadow .3s ease; }
.rec .sleeve > .cover { width: 100%; height: 100%; }
.rec:hover .tilt, .rec:focus-visible .tilt { transform: translateY(-14px) rotate(0deg); }
.rec:hover .vinyl, .rec:focus-visible .vinyl { transform: translateX(72px) rotate(40deg); }
.rec:hover .sleeve, .rec:focus-visible .sleeve { box-shadow: 0 24px 40px rgba(14,34,56,.4); }
.sticker { position: absolute; top: 20px; left: 190px; z-index: 2; transform: rotate(-12deg); background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 4px 8px; }

/* Cover: bildet legges over en farget plassholder */
.cover { position: relative; overflow: hidden; background: var(--cbg, var(--sky)); color: var(--cfg, var(--ink)); display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.cover .ph-top { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; opacity: .75; }
.cover .ph-title { font-weight: 800; font-size: 34px; line-height: .95; letter-spacing: -.02em; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.empty-slot { position: relative; height: 290px; }
.empty-slot div { position: absolute; left: 24px; bottom: 0; width: 250px; height: 250px; border: 2px dashed #8FB0D0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--faint); }
.white-label { background: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.white-label span:first-child { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.white-label span:last-child { font-family: var(--mono); font-size: 20px; border: 2px solid var(--ink); padding: 8px 10px; align-self: flex-start; transform: rotate(-4deg); }
.shelf-link { display: flex; height: 290px; align-items: flex-end; text-decoration: none; }
.shelf-link span.box { margin-left: 24px; width: 250px; height: 250px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; }
.shelf-link strong { font-size: 28px; }
.shelf-link em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--sky); }

/* Albumside */
.album-hero { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
.album-art { flex: 1 1 360px; max-width: 520px; position: relative; aspect-ratio: 1; }
.album-art .disc { position: absolute; inset: 4%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.album-art .disc .vinyl { width: 100%; height: 100%; }
.album-art .disc .label { background: var(--lbl, var(--sky)); }
.album-art.playing .disc { transform: translateX(42%); }
.album-art.playing .disc .vinyl { animation: spin 2.4s linear infinite; }
.album-art .cover { position: absolute; inset: 0; z-index: 1; padding: 7%; box-shadow: 0 30px 60px rgba(14,34,56,.35); }
.album-art .cover .ph-top { font-size: 13px; }
.album-art .cover .ph-title { font-size: clamp(34px, 4.4vw, 64px); overflow-wrap: anywhere; }
.album-info { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.album-info h1 { margin: 0; font-size: clamp(52px, 8vw, 128px); line-height: .88; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.album-info .lead { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px var(--display); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn-primary { border: 0; background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 400; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; color: var(--muted); }

.album-body { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 96px; }
.tracks-col { flex: 999 1 520px; min-width: 0; }
.section-label { margin: 0 0 16px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.tracks li:hover { background: var(--surface); }
.tracks .no { width: 32px; font-family: var(--mono); color: var(--accent); }
.tracks .name { flex: 1 1 220px; font-size: 21px; font-weight: 700; }
.tracks .feat { font-weight: 400; font-size: 16px; color: var(--faint); }
.tracks .time { font-family: var(--mono); color: var(--faint); }
.more { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.more a { display: flex; gap: 16px; align-items: center; text-decoration: none; font-size: 20px; font-weight: 700; }
.more .mini { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; }
.more .mini .ph-top, .more .mini .ph-title { display: none; }

/* Egne prosjekter */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding-bottom: 72px; }
.proj { display: flex; flex-direction: column; gap: 16px; text-decoration: none; transition: transform .25s ease; }
.proj:hover { transform: translateY(-4px); }
.proj .img { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 24px; font-family: var(--mono); font-size: 13px; }
.proj .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.proj strong { font-size: 30px; font-weight: 800; line-height: 1.05; }
.band { background: var(--ink); color: var(--bg); }
.band-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.band p { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.band .btn { background: var(--sky); color: var(--ink); }
.proj .proj-cover { aspect-ratio: 1; }
.rec:hover, .rec:focus-visible { z-index: 3; }

/* Video-prosjekter */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 40px 28px; padding-bottom: 96px; }
.video { display: flex; flex-direction: column; gap: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); box-shadow: 0 20px 40px rgba(14,34,56,.25); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.award { align-self: flex-start; margin-top: 8px; padding: 6px 12px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; border-radius: 999px; }
.award-nom { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.video h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.video p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.projects + * { margin-top: 0; }

/* Platesjappe-stemning (kun platehylla) */
body.shop {
  position: relative;
  background-color: #C6DBEF;
  background-image:
    radial-gradient(ellipse 55% 380px at 20% 0, rgba(255, 238, 196, .6), transparent 70%),
    radial-gradient(ellipse 55% 380px at 80% 0, rgba(255, 238, 196, .5), transparent 70%),
    linear-gradient(90deg, rgba(14,34,56,.10), transparent 12%, transparent 88%, rgba(14,34,56,.10)),
    url('../bilder/stoy.svg'),
    url('../bilder/flekker.svg'),
    url('../bilder/murvegg.svg');
  background-size: auto, auto, auto, 300px 300px, 1800px 1400px, 480px 240px;
  background-blend-mode: normal, normal, normal, multiply, multiply, normal;
}
body.shop .page-head p { color: #1E3550; }
body.shop .slot-caption { color: var(--ink); font-weight: 500; }
body.shop main { position: relative; overflow: hidden; }

.lamps { position: absolute; top: 0; left: 0; right: 0; height: 0; display: flex; justify-content: space-around; pointer-events: none; z-index: 0; }
.lamp { position: relative; width: 2px; height: 70px; background: var(--ink); }
.lamp::before { content: ""; position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: 84px; height: 36px; background: var(--ink); border-radius: 84px 84px 6px 6px; }
.lamp::after { content: ""; position: absolute; top: 104px; left: 50%; transform: translateX(-50%); width: 34px; height: 12px; background: #FFE9A8; border-radius: 0 0 34px 34px; box-shadow: 0 10px 60px 30px rgba(255, 233, 168, .45); }
@media (max-width: 640px) { .lamp:nth-child(3) { display: none; } }
.page-head, .shelf-section { position: relative; z-index: 1; }
.page-head { padding-top: 150px; }

.shop-sign-wrap { position: relative; }
.open-sign { position: absolute; top: -6px; right: -110px; transform: rotate(8deg); padding: 6px 14px; border: 3px solid var(--accent); color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: .2em; border-radius: 6px; background: rgba(255,255,255,.5); box-shadow: 0 0 18px rgba(39,71,214,.35); }
@media (max-width: 820px) { .open-sign { right: 0; top: -40px; } }

.floor { height: 220px; margin-top: -40px; background-color: #F4F7FB; background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0); background-size: 96px 96px; transform: perspective(500px) rotateX(48deg); transform-origin: top center; opacity: .9; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }

/* Forside – konsertbilde bak toppen */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.home .site-header a { color: #fff; }
.home .site-header a:hover { color: var(--sky); }
.hero-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(90vh, 840px); margin-bottom: 72px; background: var(--ink); color: #fff; }
.hero-photo picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg { object-fit: cover; object-position: 58% 30%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,34,56,.9) 0%, rgba(14,34,56,.6) 40%, rgba(14,34,56,.1) 72%, rgba(14,34,56,0) 100%),
              linear-gradient(0deg, rgba(14,34,56,.75) 0%, rgba(14,34,56,0) 50%); }
.hero-photo .hero { width: 100%; align-items: flex-end; padding-top: 140px; padding-bottom: 64px; }
.hero-photo h1 { color: #fff; font-size: clamp(56px, 9vw, 136px); text-shadow: 0 4px 30px rgba(14,34,56,.35); }
.hero-photo .outline { color: transparent; -webkit-text-stroke-color: #fff; text-shadow: none; }
.hero-photo .kicker { color: var(--sky); }
.hero-photo .lead { color: rgba(255,255,255,.9); }
.hero-photo .hero-disc { flex: 0 0 auto; }
.hero-photo .big-disc { width: min(220px, 40vw); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
@media (max-width: 820px) {
  .hero-photo { min-height: 92vh; }
  .hero-bg { object-position: 57% 20%; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(14,34,56,.95) 0%, rgba(14,34,56,.7) 45%, rgba(14,34,56,.15) 80%); }
  .hero-photo .hero-disc { display: none; }
}
