/* Clefira Publications — choral music store
   Palette taken from the watercolour covers: night-sky indigo, star gold, rose, sage, parchment. */
:root {
  --navy: #1b2047; --navy-2: #252b5c; --navy-3: #313874;
  --gold: #f2b64b; --gold-2: #ffd27f;
  --rose: #c2456a; --rose-2: #a3345a;
  --sage: #6c8c62; --sky: #eef1fa; --paper: #fbf8f2; --card: #ffffff;
  --ink: #1e2232; --muted: #5c6378; --line: #e3e6ee; --line-2: #d6dae6;
  --shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 6px 18px rgba(20, 24, 60, .07);
  --shadow-lg: 0 10px 40px rgba(20, 24, 60, .18);
  --radius: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #1d2133; --paper: #14161f; --card: #1c1f2c; --ink: #eceef5; --muted: #a6acc0;
    --line: #2c3043; --line-2: #383d55; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --sky: #1d2133; --paper: #14161f; --card: #1c1f2c; --ink: #eceef5; --muted: #a6acc0;
  --line: #2c3043; --line-2: #383d55; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }

/* ---------- utility bar ---------- */
.utility { background: var(--navy-2); color: #cfd3f0; font-size: .82rem; }
.utility .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.utility .perks { display: flex; gap: 22px; flex-wrap: wrap; }
.utility .perks span::before { content: "✦"; color: var(--gold); margin-right: 7px; }
.utility a { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .utility .perks span:nth-child(n+2) { display: none; } }

/* ---------- main header ---------- */
.masthead { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.masthead .container { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; flex: none; }
.brand svg { width: 40px; height: 40px; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.brand .word small { font-size: .62rem; letter-spacing: .32em; color: var(--gold-2); margin-top: 4px; }
.search { flex: 1; display: flex; max-width: 620px; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 999px 0 0 999px; padding: 12px 18px; font: inherit; font-size: .95rem; color: #1e2232; background: #fff; }
.search input:focus { outline: 3px solid var(--gold); outline-offset: -3px; }
.search button { border: 0; background: var(--gold); color: var(--navy); border-radius: 0 999px 999px 0; padding: 0 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.search button svg { width: 18px; height: 18px; }
.headlinks { display: flex; gap: 18px; font-size: .92rem; }
.headlinks a { color: #e8eaf8; text-decoration: none; white-space: nowrap; }
.headlinks a:hover { color: var(--gold-2); }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .masthead .container { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .headlinks { display: none; margin-left: auto; }
  .menu-btn { display: block; margin-left: auto; }
  .headlinks.open { display: flex; flex-direction: column; flex-basis: 100%; order: 4; gap: 10px; padding: 6px 0 4px; }
}

/* ---------- category bar ---------- */
.catbar { background: var(--card); border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catbar a { flex: none; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); padding: 7px 14px; border-radius: 999px; }
.catbar a:hover, .catbar a[aria-current="page"] { background: var(--sky); color: var(--rose); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 78% 20%, #3a3f86 0%, transparent 60%),
              radial-gradient(900px 600px at 10% 110%, #6b3a72 0%, transparent 55%),
              linear-gradient(160deg, #161a3d 0%, #222868 55%, #2b2f6f 100%); }
.hero .sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); margin: 14px 0 16px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p.lead { font-size: 1.12rem; color: #d9dcf3; max-width: 540px; margin: 0 0 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 12px 20px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
button.btn { font-family: inherit; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 8px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fan { position: relative; height: 400px; }
.fan a { position: absolute; top: 50%; left: 50%; width: 220px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .35s ease; }
.fan a:nth-child(1) { transform: translate(-125%, -46%) rotate(-11deg); }
.fan a:nth-child(2) { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.fan a:nth-child(3) { transform: translate(25%, -46%) rotate(11deg); }
.fan:hover a:nth-child(1) { transform: translate(-138%, -48%) rotate(-14deg); }
.fan:hover a:nth-child(3) { transform: translate(38%, -48%) rotate(14deg); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .fan { height: 260px; }
  .fan a { width: 140px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.trust div { display: flex; gap: 12px; align-items: center; font-size: .92rem; }
.trust svg { width: 34px; height: 34px; flex: none; color: var(--rose); }
.trust b { display: block; }
.trust span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .trust .container { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section.block { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px 18px; min-height: 120px; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); transition: transform .2s ease; }
.tile:hover { transform: translateY(-3px); }
.tile b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.tile span { font-size: .85rem; opacity: .85; }
.tile svg { position: absolute; right: -10px; top: -10px; width: 110px; height: 110px; opacity: .22; }
.t1 { background: linear-gradient(135deg, #252b5c, #4b4f9a); }
.t2 { background: linear-gradient(135deg, #a3345a, #d0657f); }
.t3 { background: linear-gradient(135deg, #6c8c62, #92b087); }
.t4 { background: linear-gradient(135deg, #b9781f, #f2b64b); }
.t5 { background: linear-gradient(135deg, #3b2f5f, #7a5ea8); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- catalogue: sidebar + grid ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 92px; }
.filters h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .93rem; cursor: pointer; }
.filters input { accent-color: var(--rose); width: 16px; height: 16px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.filters .clear { margin-top: 14px; background: none; border: 0; color: var(--rose); font-weight: 700; cursor: pointer; padding: 0; font: inherit; font-size: .88rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .results { color: var(--muted); font-size: .92rem; }
.toolbar select { font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .cover { position: relative; display: block; background: linear-gradient(180deg, var(--sky), var(--card)); padding: 18px 18px 0; }
.card .cover img { border-radius: 4px 4px 0 0; box-shadow: 0 -2px 14px rgba(20,24,60,.12); aspect-ratio: 480 / 621; object-fit: cover; width: 100%; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 4px 9px; border-radius: 6px; }
.badge.ssa { background: var(--rose); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.22rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--rose); }
.card .by { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 6px; }
.chips li { font-size: .76rem; font-weight: 600; background: var(--sky); color: var(--ink); border-radius: 6px; padding: 3px 8px; }
.card .actions { margin-top: auto; display: flex; gap: 8px; }
.card .actions .btn { flex: 1; padding: 8px 6px; font-size: .82rem; white-space: nowrap; gap: 5px; }
.card .actions .btn svg { width: 16px; height: 16px; }
.empty { display: none; text-align: center; padding: 40px 10px; color: var(--muted); }

/* ---------- spotlight ---------- */
.spotlight { background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; padding: 34px; position: relative; }
.spotlight img { border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); }
.spotlight h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 12px; }
.spotlight p { color: #d9dcf3; margin: 0 0 18px; max-width: 620px; }
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; padding: 24px; } .spotlight img { max-width: 220px; } }

/* ---------- directors band ---------- */
.band { background: var(--sky); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps div { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: relative; }
.steps div::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.steps h3 { font-size: 1.2rem; margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- product page ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.gallery .main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; place-items: center; cursor: zoom-in; position: relative; }
.gallery .main img { max-height: 640px; width: auto; border-radius: 3px; box-shadow: var(--shadow); }
.gallery .main .tag { position: absolute; top: 12px; right: 12px; background: rgba(27,32,71,.85); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 74px; border: 2px solid var(--line); border-radius: 6px; padding: 3px; background: var(--card); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--rose); }
.thumbs img { border-radius: 3px; }
.look-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.pinfo h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pinfo .sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.15rem; margin: 6px 0 10px; }
.pinfo .credits { font-size: .95rem; margin-bottom: 12px; }
.buybox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.buybox h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.buybox .retailers { display: grid; gap: 10px; }
.buybox .retailers .btn { justify-content: space-between; padding: 14px 18px; font-size: 1rem; }
.buybox .note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.buybox .perusal { margin-top: 12px; width: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--card); padding: 10px 14px; }
.facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
.ptabs { border-top: 1px solid var(--line); padding: 34px 0; }
.ptabs .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.ptabs h2 { font-size: 1.6rem; margin-bottom: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.synth { font-size: .82rem; color: var(--muted); margin: 8px 0 22px; display: flex; gap: 6px; align-items: center; }
.synth::before { content: "♪"; color: var(--rose); font-weight: 700; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
table.details { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.details th, table.details td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.details th { width: 38%; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .product, .ptabs .cols { grid-template-columns: 1fr; gap: 24px; }
  .gallery .main img { max-height: 460px; }
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(12, 14, 34, .82); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .panel { background: var(--card); color: var(--ink); border-radius: 14px; max-width: 920px; width: 100%; max-height: 92vh; overflow: auto; padding: 18px; position: relative; }
.modal .close { position: absolute; top: 10px; right: 10px; background: var(--sky); color: var(--ink); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.modal h3 { font-size: 1.3rem; margin: 2px 44px 12px 2px; }
.modal .pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.modal .pages img { border: 1px solid var(--line); border-radius: 4px; }
.modal .zoom img { margin: 0 auto; max-height: 84vh; width: auto; }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #c9cdea; margin-top: 40px; }
footer.site .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 24px; }
footer.site h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 10px; font-weight: 600; }
footer.site a { color: #c9cdea; text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--gold-2); }
footer.site p { margin: 0 0 10px; font-size: .92rem; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: .8rem; color: #9ea3c9; }
@media (max-width: 760px) { footer.site .container { grid-template-columns: 1fr; } }

/* ---------- simple pages ---------- */
.page-hero { background: linear-gradient(160deg, #161a3d, #2b2f6f); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 10px; }
.page-hero p { color: #d9dcf3; max-width: 680px; margin: 12px 0 0; }
.page-body { padding: 40px 0; max-width: 820px; }
.page-body h2 { font-size: 1.6rem; margin: 30px 0 10px; }
.page-body p, .page-body li { color: var(--ink); }
.callout { background: var(--sky); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 18px; margin: 20px 0; }

/* anchors land below the sticky header */
#catalogue, #requests { scroll-margin-top: 96px; }
/* phones: two cards per row, stacked buttons */
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .cover { padding: 10px 10px 0; }
  .card .body { padding: 10px 10px 12px; }
  .card h3 { font-size: 1.02rem; }
  .card .body > p { display: none; }
  .card .actions { flex-direction: column; gap: 6px; }
  .chips li { font-size: .7rem; }
}
@media (max-width: 560px) { .card .badge { display: none; } }
