/* shared styles for releases.html and release.html */
:root { --ink: #0a0a0a; --paper: #f4f2ee; --accent: #ff3b1f; --muted: #555; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--paper); color: var(--ink);
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh; position: relative; overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
a { color: inherit; }

/* background: soft static red glow + grain (cheap to render) */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60vmax 50vmax at 0% 0%, rgba(255,122,102,.55), transparent 70%),
        radial-gradient(ellipse 50vmax 45vmax at 100% 55%, rgba(255,176,163,.5), transparent 70%),
        radial-gradient(ellipse 55vmax 40vmax at 25% 105%, rgba(255,122,102,.35), transparent 70%); }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.wrap { position: relative; z-index: 1; width: min(1240px, 100% - 48px); margin: 0 auto;
    padding: calc(36px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom)); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(36px, 5vw, 64px); }
.top .brand img { display: block; height: 104px; width: auto; }
.top nav { display: flex; gap: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-color: var(--ink); }

/* footer */
.foot { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
    margin-top: clamp(56px, 8vw, 100px); padding-top: 22px; border-top: 1px solid rgba(10,10,10,.25);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #333; }
.foot p { margin: 0; line-height: 1.7; }

/* big tight headings */
.big { margin: 0; font-weight: 800; letter-spacing: -.065em; line-height: .95; text-transform: lowercase; }
h1.big { font-size: clamp(44px, 9vw, 104px); }
h2.big { font-size: clamp(34px, 6vw, 68px); }

/* release grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 40px 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.card a { display: block; text-decoration: none; }
.cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #ddd; border: 1px solid var(--ink);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1); }
.card a:hover .cover, .card a:focus-visible .cover { transform: translate(-4px,-4px); box-shadow: 6px 6px 0 var(--ink); }
.card .t { margin: 14px 0 2px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.card .a { margin: 0; font-size: 13px; line-height: 1.4; color: #222; }
.card .s { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.card a:hover .s { border-color: var(--ink); }

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 56px; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.pager a, .pager span { padding: 8px 2px; }
.pager a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.pager a:hover { color: var(--accent); border-color: var(--accent); }
.pager .off { opacity: .35; border: 0; }

/* single release */
.release { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.release .cover { border-width: 1px; box-shadow: 10px 10px 0 var(--ink); }
.info h1 { font-size: clamp(44px, 7vw, 92px); overflow-wrap: anywhere; text-transform: none; }
.info .artist { margin: 16px 0 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.04em; }
.info .meta { margin: 18px 0 0; font-size: 15px; }
.info .meta b { font-weight: 700; margin-right: 6px; }
.player { margin: 32px 0 0; max-width: 680px; }
.player iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.player.empty { height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    border: 1.5px dashed rgba(10,10,10,.45); border-radius: 12px; background: rgba(244,242,238,.55); color: #444; }
.player.empty b { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.player.empty span { font-size: 12px; letter-spacing: .08em; }
.label { margin: 32px 0 12px; font-size: 14px; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-left: -10px; }
/* icon buttons: official marks, solid ink, even size */
.links a, .social a, .social span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 10px; color: var(--ink); border-radius: 12px;
    transition: color .2s, background-color .2s, transform .2s cubic-bezier(.2,.8,.2,1); }
.links a svg, .social svg { width: 100%; height: 100%; display: block; }
.links a:hover, .links a:focus-visible, .social a:hover, .social a:focus-visible { color: var(--accent); background: rgba(244,242,238,.8); transform: translateY(-3px); }
.links a:focus-visible, .social a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.social { display: flex; align-items: center; gap: 8px; }
.social span { cursor: default; }
.links span { display: inline-flex; width: 52px; height: 52px; padding: 10px; opacity: .35; cursor: default; }
.links span svg { width: 100%; height: 100%; display: block; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 20px 24px; flex-wrap: wrap; }
.soon { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }

.others { margin-top: clamp(56px, 9vw, 110px); }
.others .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(10,10,10,.25); }
.others .all { font-size: 13px; letter-spacing: .1em; text-transform: lowercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 6px 0; white-space: nowrap; }
.others .all:hover { color: var(--accent); border-color: var(--accent); }
.others .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 30px; }

.missing { padding: 60px 0; }
.missing p { font-size: 15px; margin: 18px 0 0; }

@media (max-width: 900px) {
    .others .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .others .card:nth-child(n+4) { display: none; }
}
/* comfortable tap targets on touch screens */
@media (pointer: coarse) {
    .top nav a { padding: 14px 2px; }
    .others .all, .pager a { padding: 14px 2px; }
    .card .s { padding: 8px 0; }
}
@media (max-width: 760px) {
    .release { grid-template-columns: 1fr; }
    .release .cover { box-shadow: 6px 6px 0 var(--ink); }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 32px); }
    .top .brand img { height: 78px; }
    .top nav { gap: 16px; font-size: 11px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
    .others .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .others .card:nth-child(n+3) { display: none; }
}
@media (hover: none) { .card a:hover .cover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
