/* Kalmo — shared stylesheet. Mobile-first; min-width media queries layer up. */

:root {
  /* Color */
  --bg:            #0B0B0B;
  --bg-nav:        #080808;
  --bg-footer:     #070707;
  --logo-red:      #990000;
  --red:           #C10101;   /* fills, borders, large display type only */
  --red-text:      #E24A4A;   /* the same accent for SMALL red text */
  --text:          #FFFFFF;
  --nav-muted:     #8a8a8a;
  --icon:          #6a6a6a;
  --footer-text:   #7a7a7a;

  /* ⚑ Contrast pass, 2026-09-11. Four values changed and one was added.
     Measured against their own backgrounds, WCAG AA needs 4.5:1 for normal
     text and 3:1 for large text and UI components.
       --nav-muted   #555555 -> #8a8a8a   was 2.69:1, now 5.80:1
       --icon        #2E2E2E -> #6a6a6a   was 1.48:1, now 3.72:1
       --footer-text #2A2A2A -> #7a7a7a   was 1.40:1, now 4.69:1  (was unreadable)
       --red-text    new #E24A4A          4.98:1
     #C10101 is 3.07:1. That passes for large display type, borders and fills,
     and fails for anything smaller - and nearly every red element here is
     small. Small red text uses --red-text. Body greys (#cfcfcf, #999, #888)
     already passed and were left alone; the dark chrome greys were the problem. */
  --rule:          #1A1A1A;

  /* Type */
  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Caudex', Georgia, 'Times New Roman', serif;

  /* Layout */
  --pad-y: 20px;
  --pad-x: 22px;
  --radius: 2px;
  --nav-h-desktop: 40px;
  --nav-h-mobile: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--red); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.08em;
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad-x);
  background: rgba(8,8,8,0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.nav-logo-link { display: flex; align-items: center; }
.nav-logo { height: var(--nav-h-mobile); width: auto; }
.nav-links {
  display: none;
  flex-direction: column; align-items: flex-end; gap: 20px; text-align: right;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8,8,8,0.98);
  padding: 22px var(--pad-x); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.nav-links.open { display: flex; }
.nav-link {
  font-size: 12px; color: var(--nav-muted); letter-spacing: 0.16em;
  text-transform: uppercase; transition: color .2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
.nav-cta {
  font-size: 12px; color: var(--red-text); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--red); padding: 8px 18px; border-radius: var(--radius);
  transition: all .2s;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--red); color: #fff; }
.hamburger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--nav-muted); display: block; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav { padding: 16px 40px; }
  .nav-logo { height: var(--nav-h-desktop); }
  .nav-links {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 34px; background: none; border-bottom: none; padding: 0; backdrop-filter: none;
  }
  .hamburger { display: none; }
}

/* ---------- MAIN SPACING (offset for fixed nav) ---------- */
main { display: block; }
.page-header { padding: 108px var(--pad-x) 30px; text-align: center; }
@media (min-width: 768px) { .page-header { padding: 150px 40px 40px; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid var(--red);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: #a00000; }
.btn-ghost { background: transparent; color: var(--red-text); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--red); color: #fff; }
.btn-full { display: block; width: 100%; text-align: center; }
@media (min-width: 768px) { .btn-full { display: inline-block; width: auto; } }

/* ---------- SECTIONS ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad-x); }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }
.eyebrow {
  font-size: 11px; color: var(--red-text); letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 18px; text-align: center;
}
.section-title {
  font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #bbb; margin-bottom: 26px; text-align: center;
}

/* ---------- SOCIAL ROW ---------- */
.social-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  padding: 0 0 20px; border-bottom: none;
}
.social-row a { display: flex; color: var(--icon); }
.social-row svg { width: 22px; height: 22px; }
.social-row a:hover, .social-row a:focus-visible { color: var(--red-text); }

/* ---------- FOOTER ---------- */
/* One footer on every page (2026-09-11). Social icons, then copyright and
   contact, then the sign-off. Previously only the homepage carried the icon
   row - as a separate block above the footer - which is why the pages read as
   having different footers. Not fixed to the viewport: it would cost screen
   height on mobile for something nobody needs constantly in view. */
.footer {
  background: var(--bg-footer);
  padding: 34px var(--pad-x) 26px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center;
}
.footer-meta {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--rule);
  width: 100%; max-width: 1080px;
}
.footer-sign {
  font-family: var(--font-head); font-size: 10px; color: var(--footer-text);
  letter-spacing: 0.34em; text-transform: uppercase; margin-top: 14px;
}
@media (min-width: 768px) {
  .footer { padding: 34px 40px 26px; }
  .footer-meta { flex-direction: row; justify-content: space-between; }
}
.footer-text { font-size: 11px; color: var(--footer-text); letter-spacing: 0.08em; }
.footer-text a:hover { color: var(--red-text); }

/* ---------- RELEASES INDEX ---------- */
.releases-title { font-size: clamp(32px,4.6vw,54px); font-weight: 700; letter-spacing: 0.08em; }
.releases-sub { font-family: var(--font-body); font-size: 15px; color: #999; margin-top: 6px; }

.releases-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.release-tile { display: block; }
.release-tile img {
  /* height:auto is load-bearing. The <img> carries width/height attributes, which the
     browser applies as presentational hints. CSS width:100% overrides the width hint,
     but nothing overrode the height hint, so height stayed at 1000px and aspect-ratio
     never engaged - covers rendered as 308x1000 towers. Fixed 2026-09-11. */
  width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--radius);
  filter: brightness(0.82); transition: filter .25s ease;
}
.release-tile:hover img, .release-tile:focus-visible img { filter: brightness(1); }
.release-tile:focus-visible { outline: 1px solid var(--red); outline-offset: 6px; }
.release-tile-title { font-size: 16px; font-weight: 600; letter-spacing: 0.04em; margin-top: 14px; transition: color .2s; }
.release-tile:hover .release-tile-title, .release-tile:focus-visible .release-tile-title { color: var(--red-text); }
.release-tile-meta { font-family: var(--font-body); font-size: 12px; color: var(--nav-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

@media (min-width: 768px) { .releases-grid { grid-template-columns: repeat(2,1fr); gap: 38px; } }
@media (min-width: 1024px) { .releases-grid { grid-template-columns: repeat(3,1fr); } }

/* ---------- RELEASE PAGE ---------- */
.breadcrumb {
  display: block; text-align: center; padding: 108px var(--pad-x) 0;
  font-size: 11px; color: var(--nav-muted); letter-spacing: 0.14em; text-transform: uppercase;
  transition: color .2s;
}
.breadcrumb:hover, .breadcrumb:focus-visible { color: var(--red-text); }

.release-hero { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 34px; align-items: start; }
.release-cover { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.release-type { font-size: 11px; color: var(--red-text); letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 14px; }
.release-h1 { font-size: clamp(28px,4.6vw,46px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.15; margin-bottom: 10px; }
.release-meta-line { font-family: var(--font-body); font-size: 13px; color: #888; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.release-desc { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: #dcdcdc; max-width: 54ch; margin-bottom: 26px; }
.release-quote { border-left: 2px solid var(--red); padding-left: 16px; max-width: 54ch; margin-bottom: 26px; }
.release-quote p { font-family: var(--font-body); font-size: 17px; font-style: italic; line-height: 1.7; color: #eee; margin-bottom: 6px; }
.release-quote cite { font-family: var(--font-head); font-style: normal; font-size: 11px; color: #777; letter-spacing: 0.08em; }
.release-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.release-stream-link { font-size: 12px; color: var(--nav-muted); letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s; }
.release-stream-link:hover, .release-stream-link:focus-visible { color: var(--text); }

.release-player-wrap iframe { display: block; width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; }

.release-details { display: grid; grid-template-columns: 1fr; gap: 40px; }
.tracklist li {
  display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #141414;
  font-family: var(--font-body); font-size: 16px; color: #e2e2e2;
}
.tracklist li:last-child { border-bottom: none; }
.track-num { color: var(--red-text); font-family: var(--font-head); font-size: 13px; min-width: 22px; }

.detail-label { font-family: var(--font-head); font-size: 11px; color: #999; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.lineup-list { list-style: none; padding-left: 0; margin-bottom: 30px; }
.lineup-list li { font-family: var(--font-body); font-size: 16px; color: #e2e2e2; padding: 6px 0; }
.lineup-list .guest { font-style: italic; color: #888; }
.credits-list p { font-family: var(--font-body); font-size: 14px; line-height: 1.8; color: #999; margin-bottom: 8px; }
.credits-list p:last-child { margin-bottom: 0; }

.video-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.video-block-label { font-family: var(--font-head); font-size: 11px; color: #999; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.back-link-row { text-align: center; }

@media (min-width: 768px) {
  .breadcrumb { padding-top: 150px; }
  .release-hero { grid-template-columns: minmax(0,420px) 1fr; gap: 56px; padding-top: 46px; }
  .release-details { grid-template-columns: 1fr 1fr; gap: 60px; }
  .video-grid.multi { grid-template-columns: 1fr 1fr; }
}

/* ---------- UTIL ---------- */
.no-scroll { overflow: hidden; }
