/* KöngKistadöR — site styles. Values mirror the KöngKistadöR design system tokens. */

:root {
  color-scheme: dark;
  /* colour */
  --vinyl: #0b0908;
  --sleeve: #161210;
  --rule: #3a2a20;
  --brown: #5a2a14;
  --brown-hi: #8a4420;
  --rust: #c86a30;
  --orange: #f84800;
  --on-orange: #0b0908;
  --paper: #efe4d2;
  --dim: #b0a08c;
  --focus: var(--orange);
  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  /* space */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  /* shape */
  --stroke-hairline: 1px; --stroke-heavy: 2px;
  /* texture (Light) */
  --grain-opacity: 0.32; --wear-opacity: 0.22;
  /* timing */
  --slide-fade: 1.6s; --slide-drift: 9s;
  --header-h: 48px;

  --kk-grain: url("../img/texture/grain.jpg");
  --kk-wear: url("../img/texture/wear.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--vinyl); color: var(--paper); font-family: var(--font-mono); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; 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: 16px; top: -100px; z-index: 50; background: var(--orange); color: var(--on-orange); padding: 8px 14px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.in { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }

/* Texture */
.grain, .worn { position: relative; isolation: isolate; }
.grain::after, .worn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--kk-grain); background-size: 256px 256px; mix-blend-mode: overlay; opacity: var(--grain-opacity); z-index: 3; }
.worn::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: var(--wear-opacity); background-image: var(--kk-wear), radial-gradient(circle at 76% 40%, transparent 0 30%, rgba(239,228,210,.55) 31.5%, transparent 34%); background-size: 600px 600px, 100% 100%; mix-blend-mode: screen; }

/* Button */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 22px; border: var(--stroke-heavy) solid var(--orange); border-radius: 0; background: var(--orange); color: var(--on-orange); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--paper); border-color: var(--paper); color: var(--on-orange); }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--vinyl); }
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header: hidden on the cover, fades in as the logo lands (opacity driven by js/site.js via --reveal) */
.site-header { --reveal: 0; position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); opacity: var(--reveal); background: rgba(11,9,8,.92); border-bottom: var(--stroke-hairline) solid var(--rule); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header.is-hidden { pointer-events: none; }
.site-header:focus-within { opacity: 1; pointer-events: auto; }
/* One slim row at every width: links left, logo centred, contact right. Sizes scale with the screen. */
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 24px); min-height: 48px; padding-block: 4px; }
.logo-slot { display: block; width: clamp(88px, 22vw, 168px); aspect-ratio: 2242 / 329; }
.nav { display: flex; flex-wrap: nowrap; gap: 0 clamp(9px, 2.4vw, 22px); font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 3.4vw, 18px); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.nav-left { justify-content: flex-start; transform: translateX(calc((1 - var(--reveal)) * -14px)); }
.nav-right { justify-content: flex-end; transform: translateX(calc((1 - var(--reveal)) * 14px)); }
.nav a { text-decoration: none; padding-block: 8px 6px; border-bottom: var(--stroke-heavy) solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--orange); }
/* Phones: logo centred, links move into a menu behind a hamburger button on the right */
.menu-btn { display: none; }
.menu { border-top: var(--stroke-hairline) solid var(--rule); background: var(--vinyl); }
.menu[hidden] { display: none; }
.menu .in { display: grid; padding-block: var(--space-2) var(--space-6); }
.menu a { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; text-transform: uppercase; text-decoration: none; color: var(--paper); padding-block: 10px 8px; border-bottom: var(--stroke-hairline) solid var(--rule); }
.menu a:hover, .menu a[aria-current="true"] { color: var(--orange); }
@media (max-width: 640px) {
  .bar { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: var(--space-2); }
  .nav { display: none; }
  .logo-slot { grid-column: 2; justify-self: center; width: clamp(120px, 38vw, 150px); }
  .menu-btn { grid-column: 3; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--paper); cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 641px) { .menu { display: none !important; } }

/* The travelling logo. js/site.js sets its size and transform every frame. */
.brand { position: fixed; left: 0; top: 0; z-index: 25; display: block; transform-origin: 0 0; will-change: transform; }
.brand img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.brand .echo { position: absolute; inset: 0; opacity: 0; transform-origin: 0 0; pointer-events: none; -webkit-mask: url(../img/logo.svg) center / 100% 100% no-repeat; mask: url(../img/logo.svg) center / 100% 100% no-repeat; }
.brand .echo:nth-child(1) { background: var(--rust); }
.brand .echo:nth-child(2) { background: var(--brown-hi); }
.brand:focus-visible { outline-offset: 6px; }
.no-js .brand { display: none; }
.no-js .site-header { --reveal: 1; }

/* Hero: the full-screen cover */
.hero { position: relative; overflow: hidden; background: #000; height: 100vh; height: 100svh; min-height: 480px; }
.hero-logo-slot { width: 100%; aspect-ratio: 2242 / 329; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--slide-fade) ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) url(#duotone); transform: scale(1.04); will-change: transform; }
.slide.on img { animation: drift var(--slide-drift) ease-out forwards; }
.slide:nth-child(even).on img { animation-name: drift2; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes drift2 { from { transform: scale(1.14) translate(1%, -1%); } to { transform: scale(1.04) translate(0, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(11,9,8,.95) 0%, rgba(11,9,8,.45) 35%, rgba(11,9,8,0) 62%); }
.hero-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; }
.hero-over .in { max-width: 1640px; display: grid; gap: var(--space-4); padding-bottom: 28px; }

/* Spine */
.spine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: var(--space-2); }
.spine b { color: var(--paper); font-weight: 400; }

/* Sections */
.section { padding-block: var(--space-8); border-top: var(--stroke-hairline) solid var(--rule); }
.section.sleeve { background: var(--sleeve); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px var(--space-5); margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 8vw, 92px); text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
@media (max-width: 640px) { .section { padding-block: var(--space-7); } }

/* Music */
.music { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-6); align-content: start; }
.side h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--orange); }
.side ol { list-style: none; margin: 0; padding: 0; border-top: var(--stroke-heavy) solid var(--paper); }
.side li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding: 10px 0; border-bottom: var(--stroke-hairline) dashed var(--rule); }
.side li b { font-family: var(--font-display); font-weight: 700; font-size: 27px; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.listen { display: grid; gap: var(--space-4); align-content: start; }
.spotify { width: 100%; height: 352px; border: 0; display: block; background: #000; }
@media (max-width: 820px) { .music { grid-template-columns: minmax(0, 1fr); } }

/* Shows */
.notice { border: var(--stroke-heavy) solid var(--paper); padding: 28px; display: grid; gap: var(--space-4); justify-items: start; }
.notice strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; line-height: 1; }

/* Photos */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.gallery figure { margin: 0; background: #000; overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; } }
.gallery figure:hover img { transform: scale(1.03); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-7); }
.contact-lines { display: grid; gap: 18px; align-content: start; margin: 0; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines dt { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; color: var(--dim); letter-spacing: .02em; }
.contact-lines dd { margin: 0; overflow-wrap: anywhere; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; color: var(--paper); background: var(--vinyl); border: var(--stroke-hairline) solid var(--rule); border-bottom: var(--stroke-heavy) solid var(--paper); border-radius: 0; padding: 10px 12px; letter-spacing: 0; text-transform: none; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-msg { margin: 0; min-height: 1.6em; font-size: 13px; color: var(--orange); }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: var(--stroke-hairline) solid var(--rule); }
.site-footer .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px var(--space-5); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slide.on img { animation: none; }
  .btn, .gallery img { transition: none; }
}
