/* Squartet Jazz Atlas — design system
   Warm paper, ink, brick accent, brass highlights. Fraunces (display) + Inter (UI). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/fraunces-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/fraunces-latin-wght-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f1e7;
  --bg-2: #efe7d8;
  --card: #fffcf6;
  --ink: #16171b;
  --ink-2: #3a3c44;
  --muted: #6c6a66;
  --line: #e2d8c6;
  --line-2: #d4c7b0;
  --accent: #b5401c;
  --accent-2: #8f2f12;
  --accent-bg: #f7dfd2;
  --brass: #b98a2b;
  --blue: #22407a;
  --blue-bg: #dfe6f3;
  --good: #2f6b4b;
  --shadow: 0 1px 2px rgba(22, 23, 27, .05), 0 10px 30px -18px rgba(22, 23, 27, .35);
  --shadow-lg: 0 2px 6px rgba(22, 23, 27, .06), 0 24px 60px -30px rgba(22, 23, 27, .45);
  --r: 14px;
  --r-s: 9px;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --w: 1220px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1013; --bg-2: #15171c; --card: #181a20; --ink: #ede7db; --ink-2: #cfc8bb; --muted: #938d82;
    --line: #272a32; --line-2: #343844; --accent: #f08354; --accent-2: #ffa27a; --accent-bg: #3a2016;
    --brass: #e2b55a; --blue: #9db7ff; --blue-bg: #1c2540; --good: #7fcf9f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.8); --shadow-lg: 0 24px 60px -30px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1013; --bg-2: #15171c; --card: #181a20; --ink: #ede7db; --ink-2: #cfc8bb; --muted: #938d82;
  --line: #272a32; --line-2: #343844; --accent: #f08354; --accent-2: #ffa27a; --accent-bg: #3a2016;
  --brass: #e2b55a; --blue: #9db7ff; --blue-bg: #1c2540; --good: #7fcf9f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.8); --shadow-lg: 0 24px 60px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 640; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
main.wrap { padding-top: 18px; padding-bottom: 64px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.strong { font-weight: 620; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.kicker { font: 650 .74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 .7rem; }
.kicker a { color: inherit; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 64ch; }
.intro { font-size: 1.06rem; color: var(--ink-2); max-width: 70ch; }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line-2); padding: .2em 0 .2em .9em; margin: 1.6rem 0; max-width: 72ch; }
.src { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.src a { color: inherit; }
.more { font-weight: 600; font-size: .92rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.ext { font-weight: 550; }
.pill { display: inline-block; font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: .32em .55em; border-radius: 99px; background: var(--accent-bg); color: var(--accent-2); vertical-align: .12em; }
.pill-s { background: var(--blue-bg); color: var(--blue); }

/* ── Header ── */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; color: var(--ink); }
.logo-dot { fill: var(--accent); }
.logo-note { fill: var(--accent); }
.logo-word { font: italic 620 1.42rem/1 var(--display); letter-spacing: -.02em; display: flex; flex-direction: column; }
.logo-sub { font: 650 .56rem/1 var(--sans); font-style: normal; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo-inv .logo-word { color: #f6f1e7; }
.nav { flex: 1; min-width: 0; }
.nav > ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.nav a, .nav-more-btn { display: block; padding: 8px 11px; border-radius: 9px; text-decoration: none; font-weight: 560; font-size: .93rem; color: var(--ink-2); white-space: nowrap; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav-more-btn:hover, .nav a[aria-current] { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 9px 9px 4px 4px; }
.nav-more { position: relative; }
.nav-more-btn svg { margin-left: 2px; vertical-align: 1px; }
.mega { position: absolute; top: calc(100% + 10px); right: -120px; width: min(760px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mega[hidden] { display: none; }
.mega h3 { font: 650 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 10px; }
.mega a { padding: 6px 0; font-size: .93rem; border-radius: 0; background: none !important; box-shadow: none !important; }
.mega a:hover { color: var(--accent); }
.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.langs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langs a { font: 650 .72rem/1 var(--sans); letter-spacing: .06em; padding: 9px 9px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.langs a:hover:not([aria-current]) { color: var(--ink); background: var(--bg-2); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px 16px 18px; display: none; max-height: calc(100vh - 64px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav-more-btn { padding: 12px 10px; font-size: 1rem; width: 100%; text-align: left; }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 10px; grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 420px) { .logo-sub { display: none; } .langs a { padding: 9px 7px; } .hdr-in { gap: 8px; } }

/* ── Breadcrumbs ── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--muted); margin: 6px 0 18px; }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ── Page header ── */
.ph { display: flex; gap: 22px; align-items: flex-start; margin: 4px 0 26px; }
.ph h1 { margin-bottom: .35em; }
.ph-img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; box-shadow: var(--shadow); }
.ph-logo { border-radius: 18px; object-fit: contain; background: #fff; padding: 6px; }
.h1-sub { display: block; font: italic 450 .5em/1.2 var(--display); color: var(--muted); letter-spacing: 0; margin-top: .25em; }
.byline { font-size: 1.05rem; color: var(--ink-2); }
.byline a { font-weight: 600; }

/* ── Layout ── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.main-col { min-width: 0; }
.side-col { min-width: 0; }
.sticky { position: sticky; top: 84px; display: grid; gap: 18px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-box h3 { font-size: .95rem; margin-bottom: .6em; }
.side-list { list-style: none; display: grid; gap: 7px; font-size: .92rem; margin-bottom: 10px; }
.side-list a { text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
.side-people a { display: flex; align-items: center; gap: 10px; }
.side-people small { display: block; color: var(--muted); font-size: .78rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-wide { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 980px) { .layout, .two, .two-wide { grid-template-columns: 1fr; gap: 10px; } .sticky { position: static; } }

.sec { margin: 54px 0; }
.sec-block { margin: 36px 0; }
.sec-block > h2 { margin-bottom: .7em; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sh h2 { margin: 0; }
.sh-sub { margin: .35em 0 0; color: var(--muted); font-size: .95rem; }

/* ── Facts ── */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 26px; }
.facts > div { background: var(--card); padding: 14px 16px; }
.facts dt { font: 650 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 7px; }
.facts dd { margin: 0; font-weight: 560; line-height: 1.35; }
.facts dd a { text-decoration: none; color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; }

/* ── Chips ── */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chip-s { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--card); font-size: .9rem; font-weight: 540; color: var(--ink-2); line-height: 1.2; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips b { font: 600 .74rem/1 var(--sans); color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 4px 7px; }
.chips small { color: var(--muted); font-size: .76rem; }
.chips-big a { padding: 10px 16px; font-size: .97rem; flex-direction: row; }
.chips-big a small { display: block; }
.chips-tight { margin-top: 12px; }
.chip-alt { background: var(--blue-bg) !important; border-color: transparent !important; color: var(--blue) !important; }

/* ── Musician cards ── */
.grid-mc { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mc { display: flex; align-items: center; gap: 13px; padding: 11px 13px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.mc:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; }
.mc-b { min-width: 0; display: grid; }
.mc-n { font-weight: 630; line-height: 1.25; }
.mc-s { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); }
.side-people .av { width: 32px; height: 32px; font-size: .72rem; }
.av-i { display: inline-grid; place-items: center; font: 640 1rem/1 var(--display); color: #fff; background: linear-gradient(135deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 40) 50% 30%)); letter-spacing: .02em; }

/* portrait */
.ph-person { align-items: center; }
.portrait { margin: 0; flex: none; width: 190px; }
.portrait img { width: 190px; height: 230px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); display: block; }
.portrait figcaption { font-size: .68rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.portrait-i { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; font: 600 3rem/1 var(--display); color: #fff; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 50% 50%), hsl(calc(var(--h) + 50) 55% 24%)); box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .ph { flex-direction: column; gap: 14px; } .portrait, .portrait img { width: 150px; } .portrait img { height: 180px; } }

/* ── Album covers (generated) ── */
.grid-ac { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 16px; }
.ac { display: grid; gap: 4px; text-decoration: none; min-width: 0; }
.ac:hover .cover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.ac-t { font-weight: 620; font-size: .93rem; line-height: 1.25; margin-top: 8px; }
.ac-s { font-size: .78rem; color: var(--muted); }
.ac-x { opacity: .78; }
.cover { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: hsl(var(--h) 38% 30%); color: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; isolation: isolate; container-type: inline-size; }
.cover::before, .cover::after { content: ''; position: absolute; z-index: -1; }
.cover-t { position: absolute; left: 9%; right: 9%; bottom: 20%; font: 700 clamp(.85rem, 13cqi, 1.6rem)/1.02 var(--display); letter-spacing: -.02em; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-a { position: absolute; left: 9%; right: 9%; bottom: 8%; font: 650 clamp(.5rem, 6.4cqi, .72rem)/1.1 var(--sans); text-transform: uppercase; letter-spacing: .12em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-y { position: absolute; top: 7%; right: 8%; font: 700 clamp(.5rem, 7cqi, .8rem)/1 var(--mono); opacity: .85; }
.cover.v0 { background: hsl(var(--h) 48% 22%); }
.cover.v0::before { width: 70%; height: 70%; right: -14%; top: -14%; border-radius: 50%; background: hsl(var(--h2) 75% 58%); }
.cover.v0::after { width: 40%; height: 40%; right: 2%; top: 2%; border-radius: 50%; background: hsl(var(--h) 48% 22%); }
.cover.v1 { background: #111; }
.cover.v1::before { inset: 0 0 46% 0; background: repeating-linear-gradient(90deg, hsl(var(--h) 70% 55%) 0 14%, transparent 14% 18%); }
.cover.v1::after { left: 9%; top: 58%; width: 26%; height: 3px; background: hsl(var(--h2) 80% 60%); }
.cover.v2 { background: hsl(var(--h) 30% 88%); color: #141414; }
.cover.v2::before { left: -10%; top: 8%; width: 120%; height: 34%; background: hsl(var(--h2) 60% 45%); transform: rotate(-8deg); }
.cover.v2::after { left: 10%; top: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #141414; }
.cover.v3 { background: linear-gradient(160deg, hsl(var(--h) 60% 34%), hsl(var(--h2) 55% 18%)); }
.cover.v3::before { left: 9%; top: 9%; right: 9%; height: 1.5px; background: rgba(255,255,255,.75); box-shadow: 0 8px 0 rgba(255,255,255,.5), 0 16px 0 rgba(255,255,255,.3); }
.cover.v4 { background: hsl(var(--h2) 45% 14%); }
.cover.v4::before { left: 9%; top: 9%; width: 52%; aspect-ratio: 1; background: hsl(var(--h) 80% 55%); mix-blend-mode: screen; }
.cover.v4::after { left: 28%; top: 22%; width: 52%; aspect-ratio: 1; background: hsl(calc(var(--h) + 180) 70% 50%); mix-blend-mode: screen; opacity: .8; }
.cover-big { width: 200px; flex: none; border-radius: 8px; box-shadow: var(--shadow-lg); }
.ph-album { align-items: center; }
@media (max-width: 640px) { .cover-big { width: 160px; } .grid-ac { grid-template-columns: repeat(2, 1fr); } }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: left; font: 650 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.tbl a { text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.w-y { width: 64px; color: var(--muted); }
.w-d { width: 150px; color: var(--muted); white-space: nowrap; }
.show-s { display: none; }
@media (max-width: 700px) { .show-s { display: inline; } .w-d { width: auto; white-space: normal; } }
.obits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.obits a { display: flex; gap: 13px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink-2); border-radius: var(--r-s); text-decoration: none; }
.obits a:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.obits span { display: grid; gap: 1px; min-width: 0; }
.obits small { font-size: .8rem; }
.otd-list { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: .92rem; }
.otd-list li { display: flex; gap: 10px; align-items: baseline; }
.otd-list .mono { color: var(--muted); min-width: 64px; }
.otd-h { font: 650 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 6px; }
.kb { display: inline-block; font: 600 .78rem/1 var(--sans); padding: 5px 9px; border-radius: 7px; background: var(--blue-bg); color: var(--blue) !important; text-decoration: none !important; white-space: nowrap; }
.kb-m { background: var(--accent-bg) !important; color: var(--accent-2) !important; }
@media (max-width: 700px) { .hide-s { display: none; } }
@media (max-width: 900px) { .hide-m { display: none; } }

/* ── Standards grid (home) ── */
.grid-std { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc { position: relative; display: grid; gap: 3px; padding: 16px 18px 15px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.sc::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--brass)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.sc:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.sc:hover::after { transform: scaleX(1); }
.sc-k { justify-self: start; font: 650 .72rem/1 var(--sans); padding: 5px 8px; border-radius: 6px; background: var(--blue-bg); color: var(--blue); margin-bottom: 6px; }
.sc-t { font: 620 1.2rem/1.2 var(--display); }
.sc-c { font-size: .86rem; color: var(--muted); }
.sc-f { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ── Hero ── */
.hero { position: relative; padding: 46px 0 34px; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 420px at 92% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 380px at -10% 110%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 70%); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: repeating-linear-gradient(0deg, transparent 0 22px, color-mix(in srgb, var(--line) 60%, transparent) 22px 23px); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: .98; font-weight: 680; letter-spacing: -.035em; margin-bottom: .32em; }
.hero h1 em { display: block; font-style: italic; font-weight: 420; color: var(--accent); font-size: .62em; letter-spacing: -.02em; margin-top: .14em; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); max-width: 620px; margin: 22px 0 16px; }
.hero-search:focus-within { border-color: var(--accent); }
.hero-search svg { color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1.05rem var(--sans); color: var(--ink); padding: 10px 4px; }
.hero-search button { border: 0; background: var(--ink); color: var(--bg); font: 650 .95rem var(--sans); padding: 12px 20px; border-radius: 11px; cursor: pointer; }
.hero-search button:hover { background: var(--accent); color: #fff; }
.hero-search-s { margin: 0 0 24px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.hero-chips a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.hero-chips a:hover { color: var(--accent); border-color: var(--accent); }
.hero-sheet { display: block; position: relative; text-decoration: none; background: #fffdf7; color: #17171b; border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .55), 0 2px 0 #e9dfcb, 0 4px 0 #f6efe0, 0 6px 0 #e1d5bd; transform: rotate(1.6deg); transition: transform .3s; }
.hero-sheet:hover { transform: rotate(0) translateY(-4px); color: #17171b; }
.hero-sheet::before { content: ''; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: color-mix(in srgb, #f3d9a8 80%, transparent); transform: rotate(-3deg); opacity: .85; }
.sheet-head { display: block; text-align: center; margin-bottom: 14px; }
.sheet-title { display: block; font: italic 640 1.6rem/1.1 var(--display); }
.sheet-meta { display: block; font-size: .78rem; color: #6a655c; margin-top: 4px; }
.sheet-chart .sec { margin: 0; }
.sheet-foot { display: block; margin-top: 12px; font: 650 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #b5401c; text-align: right; }
.hero-sheet .chart { --chart-line: #2a2a2e; --chart-ink: #16171b; --chart-bg: transparent; }
.stats { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--card) 80%, transparent); overflow: hidden; }
.stats a { display: grid; gap: 2px; padding: 16px 18px; text-decoration: none; border-right: 1px solid var(--line); }
.stats a:last-child { border-right: 0; }
.stats a:hover { background: var(--card); }
.stats b { font: 640 1.7rem/1 var(--display); letter-spacing: -.02em; }
.stats span { font-size: .8rem; color: var(--muted); }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; } .hero-sheet { max-width: 560px; transform: none; } .stats { grid-template-columns: repeat(3, 1fr); } .stats a:nth-child(3) { border-right: 0; } .stats a:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats a { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .stats a:nth-child(2n) { border-right: 0 !important; } .hero-search button { padding: 12px 14px; } }

/* ── Chord chart (lead sheet) ── */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.6vw, 26px); box-shadow: var(--shadow); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h2 { margin: 0; }
.chart-state { margin: 0 0 14px; }
.chart { --chart-line: var(--ink); --chart-ink: var(--ink); font-family: var(--sans); }
.chart .sec { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; margin: 0 0 14px; position: relative; }
.chart .sec-label { grid-row: 1 / span 9; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--chart-ink); font: 700 .95rem/1 var(--display); margin-top: 8px; border-radius: 4px; }
.chart .sec-coda { border-radius: 50%; font-size: 1.15rem; color: var(--accent); border-color: var(--accent); }
.chart .sec-rep { position: absolute; left: 0; top: 44px; font: 650 .72rem/1 var(--sans); color: var(--accent); width: 30px; text-align: center; }
.chart .sec-body { display: grid; gap: 10px; min-width: 0; }
.chart .bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 2px solid var(--chart-line); }
.chart .bar { position: relative; min-height: 56px; padding: 10px 8px 8px; border-right: 1.5px solid var(--chart-line); border-bottom: 1px solid color-mix(in srgb, var(--chart-line) 18%, transparent); display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.chart .bar-2 .ch, .chart .bar-3 .ch, .chart .bar-4 .ch { font-size: .92em; }
.chart .bar-3, .chart .bar-4 { gap: 2px 6px; }
.chart .ch { font: 600 1.32rem/1 var(--display); color: var(--chart-ink); white-space: nowrap; letter-spacing: -.01em; }
.chart .ch b { font-weight: 640; }
.chart .ch sup { font: 600 .56em/1 var(--sans); vertical-align: .62em; margin-left: 1px; letter-spacing: 0; }
.chart .ch sub { font: 600 .6em/1 var(--sans); vertical-align: -.1em; margin-left: 1px; }
.chart .ch-nc, .chart .ch-rep { color: var(--muted); font-size: 1rem; }
.chart .ending { display: grid; grid-template-columns: 26px 1fr; align-items: start; }
.chart .ending-n { font: 700 .8rem/1 var(--sans); color: var(--accent); padding-top: 6px; border-top: 2px solid var(--accent); margin-right: 4px; }
.chart .ending .bars { border-top: 2px solid var(--accent); }
.chart-out .bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .chart .ch { font-size: 1.02rem; } .chart .bar { min-height: 46px; padding: 8px 4px 6px; gap: 2px 5px; } .chart .sec { grid-template-columns: 26px 1fr; gap: 0 6px; } .chart .sec-label { width: 24px; height: 24px; font-size: .8rem; } }
.tp { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.tp-b { border: 0; background: none; font: 650 .9rem var(--sans); padding: 8px 12px; border-radius: 9px; cursor: pointer; color: var(--ink-2); min-width: 42px; }
.tp-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tp-b:hover:not([aria-pressed="true"]) { background: var(--card); }
.tp-k select { font: 600 .88rem var(--sans); border: 0; background: var(--card); color: var(--ink); padding: 8px 8px; border-radius: 9px; cursor: pointer; }
.tp-x { border: 0; background: none; color: var(--ink-2); padding: 7px 9px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.tp-x:hover { background: var(--card); }

/* analysis tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile b { display: block; font: 640 1.8rem/1 var(--display); letter-spacing: -.02em; margin-bottom: 6px; color: var(--accent); }
.tile span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; }
.chordchips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chordchips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.chordchips .ch { font: 600 1.15rem/1 var(--display); }
.chordchips .ch sup { font: 600 .58em var(--sans); vertical-align: .6em; }
.chordchips small { color: var(--muted); font-size: .76rem; }

/* ── Wiki box, prose, FAQ ── */
.wiki { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--r); padding: 16px 20px; margin: 16px 0; }
.wiki p:first-child { font-size: 1.02rem; }
.wiki .src { margin: 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; display: grid; gap: .45em; margin-bottom: 1em; }
.prose p { color: var(--ink-2); }
.bio .prose p { font-size: 1.04rem; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.quote { margin: 0 0 20px; padding: 12px 18px; border-left: 3px solid var(--brass); color: var(--ink-2); font-style: italic; }

/* ── Lists ── */
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links.cols { display: block; columns: 3 220px; column-gap: 26px; }
.links.cols li { break-inside: avoid; padding: 3px 0; }
.ext-links a { font-weight: 550; }
.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.people li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; display: grid; }
.people .roles { font-size: .86rem; color: var(--accent-2); }
.people-s li { padding: 8px 12px; display: block; }
.tracks { list-style: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.tracks li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.tracks li:last-child { border-bottom: 0; }
.tr-n { color: var(--muted); }
.awards { list-style: none; display: grid; gap: 6px; }
.awards .mono { color: var(--muted); display: inline-block; min-width: 48px; }
.solo-list { list-style: none; display: grid; gap: 8px; }
.solo-list li { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; }
.solo-list a { text-decoration: none; }
.results { list-style: none; display: grid; gap: 6px; }
.results a { display: grid; grid-template-columns: 110px 1fr; gap: 2px 14px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.results a:hover { border-color: var(--accent); }
.res-k { font: 650 .7rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); grid-row: span 2; }
.res-n { font-weight: 620; }
.events { list-style: none; display: grid; gap: 8px; }
.schools { list-style: none; display: grid; gap: 10px; }
.schools li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 16px; }

/* venues */
.venues { list-style: none; display: grid; gap: 8px; }
.vr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.vr-n { font-weight: 640; text-decoration: none; }
.vr-k { font-size: .78rem; color: var(--accent-2); text-transform: lowercase; text-align: right; }
.vr-a, .vr-h, .vr-d { font-size: .84rem; color: var(--muted); grid-column: 1 / -1; }

/* festivals */
.grid-fc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.grid-fc-2 { grid-template-columns: 1fr 1fr; }
.fc { display: grid; gap: 3px; padding: 15px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; position: relative; overflow: hidden; }
.fc::before { content: ''; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; border: 10px solid color-mix(in srgb, var(--brass) 22%, transparent); }
.fc:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.fc-y { font: 650 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--brass); }
.fc-n { font: 620 1.08rem/1.25 var(--display); }
.fc-p { font-size: .82rem; color: var(--muted); }
@media (max-width: 520px) { .grid-fc-2 { grid-template-columns: 1fr; } }

/* radio */
.grid-rc { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.grid-rc-1 { grid-template-columns: 1fr; }
.rc { display: grid; grid-template-columns: 42px 1fr; gap: 0 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.rc-play { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--bg); cursor: pointer; }
.rc-play:hover { background: var(--accent); color: #fff; }
.rc-off { background: var(--bg-2); color: var(--muted); cursor: default; }
.rc-play .ico-pause, .rc-play.playing .ico-play { display: none; }
.rc-play.playing .ico-pause { display: block; }
.rc-play.playing { background: var(--accent); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.rc-n { font-weight: 630; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-s { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 24px; box-shadow: var(--shadow); }
.player > div { display: grid; }
.player-btn { width: 64px; height: 64px; }
.eq { display: none; gap: 3px; height: 16px; align-items: end; margin-top: 6px; }
.player:has(.playing) .eq { display: flex; }
.eq i { width: 4px; background: var(--accent); border-radius: 2px; animation: eq 1s infinite ease-in-out alternate; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; } .eq i:nth-child(5) { animation-delay: .3s; }
@keyframes eq { from { height: 3px; } to { height: 16px; } }

/* cities */
.grid-city { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cc { display: grid; align-content: end; min-height: 108px; padding: 14px 16px; border-radius: var(--r); text-decoration: none; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, hsl(var(--h) 38% 34%), hsl(calc(var(--h) + 30) 45% 18%)); }
.cc::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 115% -15%, transparent 0 14px, rgba(255,255,255,.07) 14px 15px); }
.cc:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cc-n { font: 620 1.25rem/1.15 var(--display); position: relative; }
.cc-s { font-size: .78rem; opacity: .85; position: relative; }

/* tools */
.grid-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tc { display: grid; gap: 6px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.tc:hover { border-color: var(--accent); color: inherit; box-shadow: var(--shadow); }
.tc-i { font: 600 1.6rem/1 var(--display); color: var(--accent); }
.tc-t { font: 620 1.1rem/1.2 var(--display); }
.tc-d { font-size: .86rem; color: var(--muted); }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); display: grid; gap: 16px; margin-bottom: 30px; }
.tool-center { justify-items: center; text-align: center; }
.tool-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.tool-row-c { justify-content: center; align-items: center; }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); width: 100%; }
.field-s { width: auto; }
.field textarea, .field select, .field input { font: 500 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.field textarea { font: 600 1.15rem/1.5 var(--mono); }
.bpm b { display: block; font: 680 clamp(4rem, 14vw, 7rem)/1 var(--display); letter-spacing: -.04em; color: var(--accent); }
.bpm span { font: 650 .8rem/1 var(--sans); letter-spacing: .3em; color: var(--muted); }
.tempo-name { font: italic 500 1.2rem/1 var(--display); color: var(--ink-2); min-height: 1.2em; }
.tap-btn { width: 180px; height: 180px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font: 650 1.4rem var(--display); cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .06s; touch-action: manipulation; }
.tap-btn:active, .tap-btn.hit { transform: scale(.96); background: var(--accent); color: #fff; }
.tap-btn-s { width: 110px; height: 110px; font-size: 1.1rem; }
.btn-ghost { border: 1.5px solid var(--line-2); background: none; color: var(--ink-2); font: 600 .92rem var(--sans); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.range { width: min(520px, 100%); accent-color: var(--accent); }
.beats { display: flex; gap: 10px; }
.beats i { width: 16px; height: 16px; border-radius: 50%; background: var(--line-2); transition: background .05s, transform .05s; }
.beats i.on { background: var(--accent); transform: scale(1.25); }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-2); }

/* circle of fifths */
.cof-wrap { display: grid; place-items: center; }
.cof { width: min(100%, 360px); height: auto; font-family: var(--display); }
.cof-big .cof { width: min(100%, 540px); }
.cof-seg { stroke: var(--bg); stroke-width: 2; transition: fill .15s; }
.cof-major { fill: var(--card); }
.cof-minor { fill: var(--bg-2); }
.cof-empty { opacity: .45; }
.cof a:hover .cof-seg, .cof a:focus .cof-seg { fill: var(--accent); }
.cof a:hover text, .cof a:focus text { fill: #fff; }
.cof-t { text-anchor: middle; fill: var(--ink); font-weight: 650; pointer-events: none; }
.cof-t-major { font-size: 17px; }
.cof-t-minor { font-size: 12px; fill: var(--ink-2); }
.cof-n { text-anchor: middle; font: 600 9px var(--sans); fill: var(--muted); pointer-events: none; }
.cof-hub { fill: var(--ink); }
.cof-hub-t { text-anchor: middle; fill: var(--bg); font-size: 14px; }

/* pitch classes */
.pcs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 160px; align-items: end; margin: 6px 0 22px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pc { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; gap: 6px; text-align: center; }
.pc-bar { display: block; background: linear-gradient(180deg, var(--accent), var(--brass)); border-radius: 4px 4px 2px 2px; min-height: 2px; }
.pc-l { font: 600 .74rem/1 var(--sans); color: var(--muted); }

/* books, podcasts, films, 78s */
.books { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.books a { display: grid; grid-template-columns: 60px 1fr; gap: 2px 14px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; align-items: start; }
.books img, .bk-ph { grid-row: span 2; width: 60px; height: 90px; object-fit: cover; border-radius: 3px; box-shadow: 2px 2px 0 var(--line-2); background: var(--bg-2); }
.bk-ph { background: linear-gradient(160deg, hsl(var(--h) 35% 45%), hsl(var(--h) 40% 25%)); }
.bk-t { font-weight: 620; line-height: 1.3; }
.bk-a { font-size: .8rem; color: var(--muted); }
.pods { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pods a { display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; align-items: center; }
.pods img { grid-row: span 2; border-radius: 10px; }
.pod-t { font-weight: 620; line-height: 1.25; }
.pod-a { font-size: .8rem; color: var(--muted); }
.grid-film { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.film { display: grid; gap: 4px; padding: 16px; border-radius: var(--r); text-decoration: none; background: #131418; color: #ece6d9; position: relative; overflow: hidden; }
.film::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.18) 10px 18px); }
.film:hover { color: #fff; box-shadow: var(--shadow-lg); }
.film-y { font: 650 .72rem/1 var(--mono); color: #e2b55a; margin-top: 8px; }
.film-t { font: 620 1.1rem/1.2 var(--display); }
.film-d { font-size: .8rem; color: #a59f93; }
.r78 { list-style: none; display: grid; gap: 8px; }
.r78-i { display: grid; grid-template-columns: 38px 1fr auto; gap: 1px 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.r78-b { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #f6f1e7; background: radial-gradient(circle, #222 0 26%, #0b0b0b 27% 31%, #2c2c2c 32% 60%, #111 61%); }
.r78-b:hover { color: var(--accent); }
.r78-t { font-weight: 620; }
.r78-t a { text-decoration: none; }
.r78-s { font-size: .78rem; color: var(--muted); }
.r78-l { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); text-decoration: none; }
.r78-p { grid-column: 1 / -1; margin-top: 10px; }
.r78-p iframe { width: 100%; height: 50px; border: 0; }

/* embeds and maps */
.embed { position: relative; border-radius: var(--r); overflow: hidden; background: #0f1013; aspect-ratio: 16 / 9; }
.embed-sp { aspect-ratio: auto; height: 352px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-btn, .map-btn { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; align-content: center; gap: 8px; border: 0; cursor: pointer; color: #f6f1e7; background: radial-gradient(600px 300px at 50% 120%, rgba(181,64,28,.45), transparent), #131418; font: 600 1rem var(--sans); }
.embed-btn small, .map-btn small { font-weight: 400; color: #a59f93; font-size: .8rem; max-width: 80%; }
.embed-btn svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--accent); color: #fff; }
.map { position: relative; height: 340px; border-radius: var(--r); overflow: hidden; margin: 0 0 18px; border: 1px solid var(--line); background: var(--bg-2); }
.map-btn { color: var(--ink-2); background: repeating-linear-gradient(45deg, var(--bg-2) 0 12px, var(--card) 12px 24px); }
.map-btn small { color: var(--muted); }
.map-btn svg { color: var(--accent); }
.map .leaflet-container { width: 100%; height: 100%; font: inherit; }

/* ── Ads ── */
.ad { position: relative; margin: 34px 0; padding: 22px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 300px; text-align: center; contain: layout; }
.ad-label { position: absolute; top: 4px; left: 0; font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-inarticle { min-height: 280px; }
.ad-wide { min-height: 120px; }
.ad-side { min-height: 600px; margin: 0; border: 0; padding-top: 18px; }
@media (max-width: 980px) { .ad-side { display: none; } }

/* ── Filter, A–Z, pager, calendar ── */
.filter-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 22px; position: sticky; top: 64px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 10px 0; backdrop-filter: blur(8px); }
.filter-in input { font: 500 .98rem var(--sans); color: var(--ink); border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--card); padding: 10px 14px; width: 260px; }
.filter-in input:focus { outline: 0; border-color: var(--accent); }
.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az a { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; text-decoration: none; font: 650 .84rem/1 var(--sans); color: var(--ink-2); }
.az a:hover, .az a[aria-current] { background: var(--ink); color: var(--bg); }
.az-block { margin-bottom: 20px; }
.az-h { font-size: 2rem; color: var(--accent); margin-bottom: .4em; }
.hidden-by-filter { display: none !important; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 40px 0 0; font-weight: 600; }
.pager a { padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 10px; text-decoration: none; }
.pager a:hover { border-color: var(--accent); }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.cal-m { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cal-m h2 { font-size: 1.15rem; }
.cal-d { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-d a, .cal-d span { display: grid; place-items: center; height: 32px; border-radius: 7px; font-size: .84rem; text-decoration: none; }
.cal-d a { background: color-mix(in srgb, var(--accent) calc(var(--w) * 7%), var(--bg-2)); font-weight: 620; }
.cal-d a:hover { background: var(--accent); color: #fff; }
.cal-d span { color: var(--line-2); }

/* ── Search overlay ── */
.so { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: 12vh; }
.so[hidden] { display: none; }
.so-form { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 8px 10px 8px 16px; box-shadow: var(--shadow-lg); }
.so-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1.2rem var(--sans); color: var(--ink); padding: 10px 2px; }
.so-close { border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; font: 600 .72rem var(--sans); color: var(--muted); padding: 6px 8px; cursor: pointer; }
.so-list { list-style: none; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.so-list:empty { display: none; }
.so-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.so-list li:last-child a { border-bottom: 0; }
.so-list a:hover, .so-list a.active { background: var(--bg-2); color: var(--ink); }
.so-list small { color: var(--accent); font: 650 .68rem/1.8 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.so-inline { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; }

/* ── 404 ── */
.nf { text-align: center; padding: 30px 0 10px; max-width: 720px; margin: 0 auto; }
.nf-code { font: italic 700 clamp(5rem, 18vw, 9rem)/1 var(--display); color: var(--accent); margin: 0; letter-spacing: -.05em; }
.nf .hero-search { margin: 26px auto; }

/* ── Footer ── */
.ftr { background: #121318; color: #cfc8bb; padding: 56px 0 26px; margin-top: 40px; }
.ftr a { color: #ece6d9; text-decoration: none; }
.ftr a:hover { color: #f08354; }
.ftr-in { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.ftr-brand p { font-size: .88rem; color: #a59f93; max-width: 36ch; margin-top: 14px; }
.ftr-brand .logo-sub { color: #8b857a; }
.ftr-col { display: grid; align-content: start; gap: 8px; font-size: .9rem; }
.ftr-col h3 { font: 650 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: #8b857a; margin: 0 0 6px; }
.ftr-langs { display: flex; gap: 10px; margin-top: 8px; }
.ftr-langs a[aria-current] { color: #f08354; }
.ftr-legal { border-top: 1px solid #262830; margin-top: 40px; padding-top: 18px; color: #8b857a; }
@media (max-width: 900px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* ── Print: clean lead sheet ── */
@media print {
  .hdr, .ftr, .side-col, .ad, .crumbs, .tp, .faq, .so, .filter-bar, .sec-block:not(.chart-card), .intro, .facts, .note { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
  .chart-card { border: 0; box-shadow: none; padding: 0; }
  .chart { --chart-line: #000; --chart-ink: #000; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
