/* ============================================================
   MelodiBook — design system
   Type:  Spectral (display serif) · Hanken Grotesk (UI/body) · Space Mono (labels)
   ============================================================ */

:root{
  /* ink (warm plum-charcoal) */
  --ink:        oklch(0.25 0.03 295);
  --ink-soft:   oklch(0.46 0.022 293);
  --ink-faint:  oklch(0.60 0.016 293);

  /* purple brand */
  --purple:       oklch(0.52 0.205 296);
  --purple-deep:  oklch(0.40 0.175 298);
  --purple-700:   oklch(0.33 0.145 300);
  --purple-800:   oklch(0.27 0.115 300);
  --purple-100:   oklch(0.90 0.045 300);
  --purple-50:    oklch(0.965 0.018 300);

  /* brass accent */
  --gold:       oklch(0.82 0.115 80);
  --gold-deep:  oklch(0.70 0.13 68);
  --gold-50:    oklch(0.955 0.045 82);

  /* utility greens for "gratis" */
  --green:      oklch(0.56 0.12 158);
  --green-50:   oklch(0.955 0.035 158);

  /* surfaces */
  --paper:      oklch(0.992 0.005 95);
  --surface:    #ffffff;
  --surface-2:  oklch(0.975 0.008 300);
  --line:       oklch(0.915 0.012 300);
  --line-soft:  oklch(0.945 0.009 300);

  --footer:     oklch(0.205 0.028 290);
  --footer-2:   oklch(0.165 0.025 290);

  --shadow-sm: 0 1px 2px oklch(0.4 0.1 300 / .05), 0 2px 8px oklch(0.4 0.1 300 / .04);
  --shadow-md: 0 4px 14px oklch(0.4 0.1 300 / .07), 0 14px 40px oklch(0.4 0.1 300 / .08);
  --shadow-lg: 0 10px 30px oklch(0.4 0.1 300 / .10), 0 30px 80px oklch(0.4 0.1 300 / .14);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --maxw: 1200px;

  --ff-display: "Spectral", Georgia, serif;
  --ff-sans: "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--ff-sans);
  color:var(--ink);
  background:var(--paper);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

::selection{ background:var(--purple-100); color:var(--purple-800); }

/* ---------- layout ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:28px; }
.section{ padding-block:clamp(72px,9vw,128px); }
.section-tight{ padding-block:clamp(56px,7vw,96px); }
.bg-2{ background:var(--surface-2); }
.bg-paper{ background:var(--paper); }

/* ---------- type ---------- */
.eyebrow{
  font-family:var(--ff-mono);
  font-size:.74rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--purple);
  margin:0;
  display:inline-flex; align-items:center; gap:.6em;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:currentColor; opacity:.5; }
.eyebrow.center::after{ content:""; width:26px; height:1px; background:currentColor; opacity:.5; }
.eyebrow.center{ justify-content:center; }

h1,h2,h3{ font-family:var(--ff-display); font-weight:600; line-height:1.08; letter-spacing:-.01em; color:var(--ink); margin:0; }
.display{
  font-family:var(--ff-display);
  font-weight:500;
  font-size:clamp(2.7rem,5.6vw,4.4rem);
  line-height:1.04;
  letter-spacing:-.015em;
}
.h2{ font-size:clamp(2rem,3.6vw,3rem); line-height:1.08; }
.h3{ font-size:clamp(1.4rem,2vw,1.85rem); }
.serif-i{ font-style:italic; font-weight:500; }
.lead{ font-size:clamp(1.05rem,1.5vw,1.2rem); color:var(--ink-soft); line-height:1.6; }
.muted{ color:var(--ink-soft); }
.section-head{ max-width:660px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head .h2{ margin-top:18px; }
.section-head p{ margin:16px 0 0; }

/* ---------- buttons ---------- */
.btn{
  --bw:0;
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  font-family:var(--ff-sans); font-weight:600; font-size:.98rem;
  padding:.85em 1.55em; border-radius:999px; cursor:pointer;
  border:var(--bw) solid transparent; line-height:1;
  transition:transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn .ic{ width:1.05em; height:1.05em; }
.btn-primary{ background:var(--purple); color:#fff; box-shadow:0 2px 10px oklch(0.52 0.2 296 / .35); }
.btn-primary:hover{ background:var(--purple-deep); transform:translateY(-2px); box-shadow:0 8px 24px oklch(0.52 0.2 296 / .42); }
.btn-light{ background:#fff; color:var(--purple-deep); box-shadow:var(--shadow-md); }
.btn-light:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-outline{ --bw:1.5px; border-color:var(--line); color:var(--ink); background:transparent; }
.btn-outline:hover{ border-color:var(--purple); color:var(--purple); transform:translateY(-2px); }
.btn-outline-light{ --bw:1.5px; border-color:oklch(1 0 0 / .45); color:#fff; background:oklch(1 0 0 / .04); }
.btn-outline-light:hover{ border-color:#fff; background:oklch(1 0 0 / .12); transform:translateY(-2px); }
.btn-lg{ padding:1.02em 1.9em; font-size:1.05rem; }

.textlink{ color:var(--purple); font-weight:600; display:inline-flex; align-items:center; gap:.4em; }
.textlink .ic{ width:1.05em; height:1.05em; transition:transform .2s ease; }
.textlink:hover .ic{ transform:translateX(3px); }

/* ---------- nav ---------- */
.nav{ position:sticky; top:0; z-index:50; background:oklch(0.992 0.005 95 / .8); backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid transparent; transition:border-color .25s, box-shadow .25s, background .25s; }
.nav.scrolled{ border-bottom-color:var(--line); box-shadow:0 6px 24px oklch(0.4 0.1 300 / .05); }
.nav-inner{ max-width:var(--maxw); margin-inline:auto; padding:14px 28px; display:flex; align-items:center; gap:28px; }
.brand{ display:inline-flex; align-items:center; gap:11px; font-weight:800; font-size:1.22rem; letter-spacing:-.025em; color:var(--ink); }
.brand-mark{ width:21px; height:23px; color:var(--purple); }
.brand b{ font-weight:800; }
.nav-links{ display:flex; align-items:center; gap:30px; margin-inline:auto; }
.nav-links a{ font-weight:500; font-size:.97rem; color:var(--ink-soft); transition:color .18s; position:relative; padding:6px 0; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--purple); }
.nav-links a.active::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--purple); border-radius:2px; }
.nav-actions{ display:flex; align-items:center; gap:18px; }
.nav-login{ font-weight:600; font-size:.95rem; color:var(--ink); }
.nav-login:hover{ color:var(--purple); }
.nav-toggle{ display:none; width:42px; height:42px; border:1px solid var(--line); border-radius:11px; background:#fff; align-items:center; justify-content:center; cursor:pointer; }
.nav-toggle .ic{ width:22px; height:22px; color:var(--ink); }

/* ---------- icon tile ---------- */
.ic{ width:24px; height:24px; flex:none; }
.tile{ width:50px; height:50px; border-radius:13px; display:grid; place-items:center; background:var(--purple-50); color:var(--purple); flex:none; }
.tile .ic{ width:25px; height:25px; }
.tile.gold{ background:var(--gold-50); color:var(--gold-deep); }
.tile.green{ background:var(--green-50); color:var(--green); }
.tile-lg{ width:58px; height:58px; border-radius:15px; }

/* ---------- cards ---------- */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:30px; transition:transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{ transform:translateY(-4px); border-color:var(--purple-100); box-shadow:var(--shadow-md); }
.card h3{ font-family:var(--ff-sans); font-weight:700; font-size:1.16rem; letter-spacing:-.01em; line-height:1.25; }
.card p{ margin:.55em 0 0; color:var(--ink-soft); font-size:.97rem; line-height:1.58; }
.card .tile{ margin-bottom:20px; }

.grid{ display:grid; gap:22px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

/* ---------- badges ---------- */
.badge{
  display:inline-flex; align-items:center; gap:.4em;
  font-family:var(--ff-mono); font-size:.66rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:.38em .7em; border-radius:7px; line-height:1;
}
.badge-premium{ background:var(--gold-50); color:var(--gold-deep); }
.badge-gratis{ background:var(--green-50); color:var(--green); }

/* ---------- page header (sub-pages) ---------- */
.pagehead{ position:relative; overflow:hidden; color:#fff; text-align:center;
  background:linear-gradient(165deg, var(--purple-deep), var(--purple-700) 60%, var(--purple-800)); }
.pagehead .container{ position:relative; z-index:2; padding-block:clamp(64px,8vw,104px); }
.pagehead h1{ color:#fff; font-size:clamp(2.6rem,5vw,3.9rem); font-weight:500; }
.pagehead p{ color:oklch(1 0 0 / .82); max-width:600px; margin:18px auto 0; font-size:1.12rem; }
.pagehead .eyebrow{ color:var(--gold); }
.pagehead .eyebrow::before, .pagehead .eyebrow.center::after{ background:var(--gold); }
.staff{ position:absolute; inset:0; z-index:1; opacity:.5; }

/* ---------- footer ---------- */
.footer{ background:var(--footer); color:oklch(1 0 0 / .62); }
.footer a{ color:oklch(1 0 0 / .62); transition:color .18s; }
.footer a:hover{ color:#fff; }
.footer-inner{ max-width:var(--maxw); margin-inline:auto; padding:72px 28px 44px;
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .brand{ color:#fff; }
.footer-brand .brand-mark{ color:#fff; }
.footer-brand p{ margin:18px 0 0; font-size:.95rem; max-width:280px; line-height:1.6; }
.footer-col h4{ font-family:var(--ff-sans); font-weight:700; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:oklch(1 0 0 / .9); margin:0 0 18px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:.96rem; }
.footer-base{ max-width:var(--maxw); margin-inline:auto; padding:22px 28px; border-top:1px solid oklch(1 0 0 / .08);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:.85rem; color:oklch(1 0 0 / .42); }
.footer-base a{ color:oklch(1 0 0 / .6); text-decoration:underline; text-underline-offset:2px; }
.footer-tagline{ display:inline-flex; align-items:center; gap:.5em; font-family:var(--ff-display); font-style:italic; font-size:1rem; color:oklch(1 0 0 / .55); }
.footer-tagline .ic{ width:15px; height:16px; color:var(--gold); }

/* ---------- discover tabs (shared: agenda / orkest / vereniging) ---------- */
.discover{ background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:63px; z-index:40;
  backdrop-filter:saturate(1.4) blur(10px); }
.discover-inner{ max-width:var(--maxw); margin-inline:auto; padding:0 28px; display:flex; gap:6px; overflow-x:auto; }
.discover-tabs{ display:flex; gap:4px; }
.discover-tabs a{ display:inline-flex; align-items:center; gap:.5em; padding:16px 4px; margin-right:22px;
  font-weight:600; font-size:.97rem; color:var(--ink-soft); border-bottom:2px solid transparent; white-space:nowrap; transition:color .18s; }
.discover-tabs a .ic{ width:18px; height:18px; color:var(--ink-faint); transition:color .18s; }
.discover-tabs a:hover{ color:var(--ink); }
.discover-tabs a:hover .ic{ color:var(--purple); }
.discover-tabs a.active{ color:var(--purple); border-bottom-color:var(--purple); }
.discover-tabs a.active .ic{ color:var(--purple); }

/* ---------- toolbar: search + filter chips ---------- */
.toolbar{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.searchbox{ position:relative; flex:1; min-width:240px; max-width:420px; }
.searchbox .ic{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:var(--ink-faint); pointer-events:none; }
.searchbox input{ width:100%; padding:13px 16px 13px 44px; border-radius:999px; border:1px solid var(--line);
  background:#fff; font-family:var(--ff-sans); font-size:.98rem; color:var(--ink); transition:border-color .18s, box-shadow .18s; }
.searchbox input::placeholder{ color:var(--ink-faint); }
.searchbox input:focus{ outline:none; border-color:var(--purple); box-shadow:0 0 0 3px var(--purple-50); }

.chips{ display:flex; flex-wrap:wrap; gap:9px; }
.chip{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--ff-sans); font-weight:600; font-size:.9rem;
  padding:.55em 1.1em; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink-soft);
  cursor:pointer; transition:all .16s ease; white-space:nowrap; }
.chip:hover{ border-color:var(--purple-100); color:var(--ink); }
.chip.active{ background:var(--purple); border-color:var(--purple); color:#fff; box-shadow:0 2px 8px oklch(0.52 0.2 296 / .28); }
.chip .ic{ width:15px; height:15px; }

.result-count{ font-family:var(--ff-mono); font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); }
.empty-state{ text-align:center; padding:64px 20px; color:var(--ink-faint); }
.empty-state .ic{ width:34px; height:34px; color:var(--line); margin-bottom:12px; }

/* ---------- directory cards (vind je orkest / vereniging) ---------- */
.dir-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:26px; }
.dir-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:26px; transition:transform .2s ease, box-shadow .25s ease, border-color .25s ease; }
.dir-card:hover{ transform:translateY(-4px); border-color:var(--purple-100); box-shadow:var(--shadow-md); }
.dir-head{ display:flex; align-items:center; gap:14px; }
.mono{ width:52px; height:52px; border-radius:13px; flex:none; display:grid; place-items:center;
  font-family:var(--ff-mono); font-weight:700; font-size:1.05rem; letter-spacing:.02em;
  background:var(--purple-50); color:var(--purple); }
.mono.gold{ background:var(--gold-50); color:var(--gold-deep); }
.mono.green{ background:var(--green-50); color:var(--green); }
.dir-card h3{ font-family:var(--ff-sans); font-weight:700; font-size:1.12rem; line-height:1.2; letter-spacing:-.01em; margin:0; }
.dir-place{ display:inline-flex; align-items:center; gap:.4em; font-size:.88rem; color:var(--ink-faint); margin-top:3px; }
.dir-place .ic{ width:14px; height:14px; }
.dir-type{ display:inline-flex; align-items:center; font-family:var(--ff-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; padding:.4em .65em; border-radius:6px; line-height:1;
  background:var(--surface-2); color:var(--ink-soft); margin-top:16px; align-self:flex-start; }
.dir-body{ margin-top:14px; color:var(--ink-soft); font-size:.94rem; line-height:1.55; flex:1; }
.dir-stats{ display:flex; gap:24px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line-soft); }
.dir-stat .n{ font-family:var(--ff-display); font-weight:600; font-size:1.4rem; line-height:1; color:var(--ink); }
.dir-stat .l{ font-size:.78rem; color:var(--ink-faint); margin-top:4px; }
.dir-foot{ margin-top:18px; }
.dir-foot .textlink{ font-size:.95rem; }

/* seeking-instrument chips (vind je orkest) */
.seek{ margin-top:16px; padding-top:16px; border-top:1px solid var(--line-soft); }
.seek-label{ font-family:var(--ff-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); display:flex; align-items:center; gap:.5em; }
.seek-label .ic{ width:14px; height:14px; color:var(--gold-deep); }
.seek-tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.seek-tag{ font-family:var(--ff-sans); font-weight:600; font-size:.82rem; padding:.38em .8em; border-radius:999px;
  background:var(--gold-50); color:var(--gold-deep); }
.dir-level{ display:inline-flex; align-items:center; gap:.4em; font-size:.86rem; font-weight:600; color:var(--ink-soft); margin-top:14px; }
.dir-level .dot{ width:8px; height:8px; border-radius:50%; background:var(--purple); }

@media(max-width:980px){ .dir-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:620px){ .dir-grid{ grid-template-columns:1fr; } }

/* ---------- image placeholder ---------- */
.ph{
  position:relative; border-radius:var(--r-sm); overflow:hidden;
  background:
    repeating-linear-gradient(135deg, oklch(0.93 0.02 300) 0 11px, oklch(0.965 0.012 300) 11px 22px);
  border:1px solid var(--line);
  display:grid; place-items:center; color:var(--ink-faint);
}
.ph::after{
  content:attr(data-label);
  font-family:var(--ff-mono); font-size:.74rem; letter-spacing:.04em;
  color:var(--purple); background:oklch(1 0 0 / .82); padding:.45em .8em; border-radius:7px;
  border:1px solid var(--line);
}
.ph.dark{ background:repeating-linear-gradient(135deg, oklch(0.30 0.06 300) 0 11px, oklch(0.34 0.06 300) 11px 22px); border-color:oklch(1 0 0 / .12); }
.ph.dark::after{ background:oklch(0.22 0.05 300 / .8); color:#fff; border-color:oklch(1 0 0 / .18); }

/* ---------- misc ---------- */
.kicker-row{ display:flex; flex-wrap:wrap; gap:10px 26px; align-items:center; }
.trust{ display:flex; align-items:center; gap:.5em; font-size:.92rem; }
.trust .ic{ width:17px; height:17px; }

/* ---------- responsive ---------- */
@media(max-width:920px){
  .footer-inner{ grid-template-columns:1fr 1fr; gap:36px 24px; }
  .footer-brand{ grid-column:1 / -1; }
}
@media(max-width:840px){
  .nav-links, .nav-actions .nav-login, .nav-actions .btn:not(.nav-cta){ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-actions{ margin-inline-start:auto; gap:12px; }
  .nav.open .nav-links{ display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column;
    background:var(--paper); border-bottom:1px solid var(--line); padding:14px 28px 22px; gap:6px; margin:0; box-shadow:var(--shadow-md); }
  .nav.open .nav-links a{ padding:11px 0; font-size:1.05rem; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:600px){
  body{ font-size:16px; }
  .container{ padding-inline:20px; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .card{ padding:24px; }
}
