:root {
  --ivory: #f6f1e8;
  --ink: #1c2a24;
  --emerald: #1f5c48;
  --gold: #c9a227;
  --rose: #8a4a4a;
  --muted: #5d6b64;
  --card: rgba(255, 252, 247, 0.86);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Jost, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 92, 72, 0.22), transparent 50%),
    linear-gradient(180deg, #f4eee3 0%, #e8efe9 100%);
}
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.top, .foot, main { position: relative; z-index: 1; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 6vw 0;
}
.mark { text-decoration: none; color: inherit; }
.mark-kicker {
  display: block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--emerald);
}
.mark-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}
.foot {
  padding: 3rem 6vw 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
main { padding: 1.5rem 6vw 2rem; max-width: 1100px; margin: 0 auto; }

h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 0.95; }
p { line-height: 1.6; color: var(--muted); }

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(28, 42, 36, 0.16);
}
.card {
  background: var(--card);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(28, 42, 36, 0.08);
}
.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--emerald);
  color: #f8f4ea;
  font: inherit;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.btn:hover { filter: brightness(1.08); }
.ghost {
  background: transparent; border: 0; color: var(--emerald);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.fine { font-size: 0.82rem; color: var(--muted); margin-top: 0.85rem; }
input[type=password], input[type=text], textarea, select {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem;
  border-radius: 12px; border: 1px solid #d5d0c4; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-size: 0.86rem; margin: 0.85rem 0 0.3rem; color: var(--ink); }
.err { color: var(--rose); font-size: 0.9rem; }

.nav-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.nav-pills a {
  text-decoration: none; color: var(--emerald);
  border: 1px solid rgba(31, 92, 72, 0.25);
  padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.88rem;
}
.nav-pills a.active { background: var(--emerald); color: #fff; }

.song-list { display: grid; gap: 0.85rem; }
.song-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.85rem 1rem; border-radius: 16px; background: var(--card);
  text-decoration: none; color: inherit; border: 1px solid transparent;
}
.song-row:hover, .song-row.current { border-color: var(--gold); }
.song-card {
  background: var(--card);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 18px;
  padding: 0.95rem 1rem 1rem;
}
.song-card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  margin-bottom: 0.35rem;
}
.song-card audio { margin: 0.35rem 0 0.55rem; }
.lyrics-link { font-size: 0.8rem; color: var(--emerald); }
.scale-compact { margin: 0.35rem 0 0.5rem; }
.scale-compact button { padding: 0.45rem 0.2rem; }
.note-inline { margin: 0; }
.lock-pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose);
  white-space: nowrap;
}
.lock-pill.open { color: var(--emerald); }
.mix-add {
  display: flex; gap: 0.5rem; align-items: center; margin-top: 0.55rem;
}
.mix-add select { width: auto; flex: 1; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-quiet {
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(31, 92, 72, 0.3);
  white-space: nowrap;
}
.btn-quiet:hover { background: #e7f3ee; }
.mix-tracks { padding-left: 1.1rem; }
.mix-tracks li { margin: 0.6rem 0 1rem; }
.mix-tracks audio { display: block; margin-top: 0.3rem; }
.inline { display: inline; }
.inline-check { font-size: 0.85rem; }
tr.clash td { background: #f8e8e6; }
a.btn { display: inline-block; text-decoration: none; }
.badge {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--emerald);
}
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin: 1rem 0; }
.scale button {
  font: inherit; border-radius: 14px; border: 1px solid #d7d0c2; background: #fff;
  padding: 0.7rem 0.3rem; cursor: pointer;
}
.scale button strong { display: block; font-size: 0.9rem; }
.scale button span { display: block; font-size: 0.7rem; color: var(--muted); }
.scale button[aria-pressed=true], .scale button.picked {
  border-color: var(--emerald); background: #e7f3ee;
}
.lyrics {
  white-space: pre-wrap;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}
audio { width: 100%; margin: 1rem 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid #e6dfd2; }
.drop {
  border: 2px dashed rgba(31, 92, 72, 0.35);
  border-radius: 18px; padding: 1.4rem; text-align: center; background: #fff;
}
@media (max-width: 720px) {
  .photos { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr 1fr; }
  .photos img:nth-child(3) { display: none; }
}
