/* Tonic Jazz Club: styles
   Colours come from the brand yellow #f4dd3f (hue 53°), its shades,
   and its complement (blue-violet, hue 233°) used sparingly for accents. */

@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/dela-gothic-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
/* Katakana subset only: トニック セッション コンタクト ストーリー ロケーション ジャズ レコード.
   Using other katakana? See README, "Changing the katakana". */
@font-face {
  font-family: "Hachi Maru Pop";
  src: url("../fonts/hachi-maru-pop-katakana.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --yellow: #f4dd3f;
  --yellow-tint: #f9ec9a;
  --cream: #fdf8dc;
  --ochre: #c7ab12;
  --olive: #4a3f0a;
  --ink: #15130c;
  --ink-2: #1e1b11;
  --ink-3: #2d2918;
  --text: #f3eed6;
  --muted: #b5ad8c;
  --indigo: #3f56f4;
  --indigo-deep: #1c2470;
  --indigo-light: #a9b4fb;

  --font-title: "Dela Gothic One", "Arial Black", sans-serif;
  --font-jp: "Hachi Maru Pop", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--indigo-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { 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: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-3);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-disc {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--yellow);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-disc { transform: rotate(-12deg) scale(1.06); }
.brand-name { font-family: var(--font-title); font-size: 18px; letter-spacing: .01em; }
.brand-name span { color: var(--muted); }

.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--ink-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--yellow); }

.social { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ink-3); color: var(--text);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--ink-3); color: var(--text);
  font: 600 14px var(--font-body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
}

@media (max-width: 1000px) { /* header: mobile menu */
  .header-inner { height: 64px; gap: 12px; }
  .brand-name span { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner > .social { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 4px; margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--ink); border-bottom: 1px solid var(--ink-3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 18px; padding: 12px 16px; }
  .site-nav .social { display: flex; padding: 12px 16px 0; }
}
@media (min-width: 1001px) { .site-nav .social { display: none; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px var(--font-body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(244, 221, 63, .55); }
.btn-primary:hover { background: var(--yellow-tint); }
.btn-primary:active { background: var(--ochre); }
.btn-ghost { border-color: var(--ink-3); color: var(--text); background: var(--ink-2); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-ink:hover { background: var(--olive); }

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-jp); color: var(--yellow);
  font-size: 18px; letter-spacing: .08em; margin-bottom: 10px;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(63, 86, 244, .22), rgba(63, 86, 244, 0));
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero h1 + .actions { margin-top: 8px; }

.hero-art { display: grid; place-items: center; }
.record {
  position: relative; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%;
  container-type: inline-size;
  background: #0c0b07;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--ink-3);
  animation: record-in 1.2s var(--ease) both;
}
.record::before { /* grooves, slightly off-centre so the slow spin catches the light */
  content: ""; position: absolute; inset: 2%; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50.5% 49.5%, #0c0b07 0 1.6px, #1b1910 1.6px 3px);
  animation: spin 14s linear infinite;
}
.record::after { /* static sheen, like a lamp reflecting on the record */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0deg, rgba(255, 255, 255, .09) 35deg, transparent 75deg, transparent 200deg, rgba(255, 255, 255, .06) 235deg, transparent 275deg);
  pointer-events: none;
}
.label { /* the Tonic logo as the record label */
  position: absolute; inset: 25%; z-index: 1; border-radius: 50%; overflow: hidden;
  background: var(--yellow);
}
.label img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); /* hides the white corners of the JPG */ }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes record-in { from { opacity: 0; transform: translateX(40px) rotate(-40deg); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .record { width: min(230px, 60vw); }
  .hero { padding-top: 32px; }
  .hero-inner { gap: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.pt0 { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--yellow); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--yellow); }

.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 18px; }

/* Cream band (About teaser, About page) */
.band { background: var(--cream); color: var(--olive); }
.band .kicker { color: #8f7a0c; } /* darker ochre, readable on cream */
.band h2, .band h1 { color: var(--ink); }
.band a:not(.btn) { color: var(--indigo-deep); }
.band-inner { padding: clamp(56px, 8vw, 96px) var(--gutter); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.band-inner h2 { font-size: clamp(28px, 3.6vw, 44px); }
.band-inner .prose p + p { margin-top: 16px; }
.band-inner .btn { margin-top: 28px; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } }

.prose p { max-width: 38em; }
.prose p + p { margin-top: 16px; }

/* ---------- Session grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.grid.is-loading { min-height: 240px; }
.card { display: flex; flex-direction: column; animation: fade-up .5s var(--ease) both; }
.card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.card.is-featured .card-title { font-size: clamp(24px, 2.8vw, 36px); }
@media (max-width: 760px) { .card.is-featured { grid-template-columns: 1fr; gap: 0; } }

.media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
}
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border: 0; padding: 0; background: var(--ink-2); cursor: pointer;
}
.thumb.no-img::before { /* placeholder when a thumbnail isn't on the server yet */
  content: "Tonic"; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font: 22px var(--font-title);
}
.thumb.no-img img { display: none; }

/* Note above the session grids: informs visitors before they click a video */
.yt-note { font-size: 14px; color: var(--muted); margin: -12px 0 24px; }
.yt-note a { color: var(--indigo-light); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.thumb:hover img { transform: scale(1.04); filter: brightness(.8); }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  transform: scale(.85); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
}
.play svg { width: 26px; height: 26px; margin-left: 3px; }
.thumb:hover .play, .thumb:focus-visible .play { opacity: 1; transform: scale(1); }
@media (hover: none) { .play { opacity: 1; transform: scale(.8); } }
.badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(12, 11, 7, .85); color: var(--text);
  font: 600 13px var(--font-body); padding: 3px 9px; border-radius: 999px;
}
.card-body { padding: 16px 2px 0; }
.card-title { font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.3; }
.card-sub { color: var(--muted); margin-top: 2px; }
.card-flag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.venue { background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--yellow-tint); padding: 2px 10px; border-radius: 999px; }
.card-link { font-size: 14px; color: var(--indigo-light); text-decoration: none; margin-left: auto; }
.card-link:hover { text-decoration: underline; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Toolbar: search + location chips */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 280px; max-width: 420px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font: 500 16px var(--font-body); color: var(--text);
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 999px;
  padding: 13px 18px 13px 44px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 14px var(--font-body); color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid var(--ink-3); border-radius: 999px; padding: 8px 14px;
  transition: color .2s, background .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 24px; min-height: 1.6em; }
.empty { color: var(--muted); padding: 40px 0; }
.note { margin-top: 40px; font-size: 14px; color: var(--muted); }
.note a { color: var(--indigo-light); }

/* ---------- About ---------- */
.venues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.venues li { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 20px 22px; }
.venues strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 20px; color: var(--yellow); margin-bottom: 4px; }
.venues span { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-email { font-size: 20px; font-weight: 600; margin: 20px 0 20px; }
.contact-email a { color: var(--yellow); text-decoration: none; border-bottom: 2px solid var(--ink-3); transition: border-color .2s; }
.contact-email a:hover { border-color: var(--yellow); }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.support-poster { margin: 0; }
.support-poster img { width: 100%; max-width: 520px; height: auto; border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); background: #f0e8b0; }
.support-steps h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 14px; }
.support-steps ol { margin: 0 0 32px; padding-left: 1.3em; font-size: 18px; }
.support-steps li + li { margin-top: 6px; }
.support-bank { border-top: 1px solid var(--ink-3); padding-top: 28px; margin-bottom: 32px; }
.support-bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.support-bank dt { color: var(--muted); font-size: 15px; }
.support-bank dd { margin: 0; }
.support-bank .iban { font-weight: 700; letter-spacing: .04em; color: var(--yellow-tint); user-select: all; }
@media (max-width: 420px) { .support-bank dl { grid-template-columns: 1fr; gap: 2px; } .support-bank dd { margin-bottom: 10px; } }
.support-other { border-top: 1px solid var(--ink-3); padding-top: 28px; }
.support-other p { color: var(--muted); max-width: 34em; margin-bottom: 20px; }
.support-thanks { font-family: var(--font-title); color: var(--yellow); font-size: clamp(40px, 6vw, 72px); margin-top: 40px; line-height: 1; }
@media (max-width: 760px) { .support { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.events { display: grid; gap: 16px; }
.events.is-loading { min-height: 160px; }
.event {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius);
  padding: 24px; animation: fade-up .5s var(--ease) both;
}
.event-date {
  background: var(--yellow); color: var(--ink); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0;
}
.event-day { font-family: var(--font-title); font-size: 38px; line-height: 1; }
.event-month { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-top: 4px; }
.event-when { color: var(--yellow-tint); font-weight: 600; font-size: 15px; }
.event-title { font-size: clamp(22px, 2.6vw, 30px); margin: 4px 0 6px; }
.event-place { color: var(--muted); }
.event-text { margin-top: 10px; max-width: 42em; }
.event .btn { margin-top: 16px; padding: 10px 18px; font-size: 15px; }
.events-empty { background: var(--ink-2); border: 1px dashed var(--ink-3); border-radius: var(--radius); padding: 32px 28px; color: var(--muted); }
.events-empty strong { color: var(--text); font-size: 18px; }
.events-empty p + p { margin-top: 6px; }
.events-empty a { color: var(--indigo-light); }
@media (max-width: 560px) {
  .event { grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
  .event-day { font-size: 30px; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.info-card {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-top: 4px solid var(--yellow);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.info-card h2 { font-size: 24px; }
.info-card p { color: var(--muted); flex: 1; }
.info-card .btn { align-self: flex-start; margin-top: 8px; padding: 11px 18px; font-size: 15px; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal address { color: var(--muted); font-style: normal; max-width: 42em; }
.legal p + p { margin-top: 12px; }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; margin: 28px 0 8px; color: var(--text); scroll-margin-top: 90px; }
.legal h2 { scroll-margin-top: 90px; }
.legal ul { color: var(--muted); padding-left: 1.2em; margin: 0; max-width: 42em; }
.legal li + li { margin-top: 6px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-toc a { text-decoration: none; color: var(--text); border: 1px solid var(--ink-3); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.legal-toc a:hover { border-color: var(--yellow); color: var(--yellow); }
.legal a { color: var(--indigo-light); }

/* ---------- Newsletter (yellow band above the footer) ---------- */
.newsletter { background: var(--yellow); color: var(--ink); scroll-margin-top: 64px; }
.newsletter-inner { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px clamp(24px, 5vw, 72px); align-items: center; }
.newsletter .kicker { color: var(--olive); }
.newsletter h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 8px; }
.nl-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nl-cta .btn { font-size: 17px; padding: 15px 28px; }
.nl-cta .btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.nl-cta .btn[aria-disabled="true"]:hover { transform: none; background: var(--ink); }
.nl-note { font-size: 13px; color: var(--olive); }
.nl-note a { color: var(--indigo-deep); }
.newsletter :focus-visible { outline-color: var(--indigo-deep); }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink-3); background: #100e09; padding: 48px 0 40px; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-title); font-size: 20px; margin-bottom: 4px; }
.footer-legal { width: 100%; font-size: 14px; color: var(--muted); border-top: 1px solid var(--ink-3); padding-top: 20px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

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