:root {
  --bg: #f6f2ea;
  --ink: #141414;
  --muted: #5b6470;
  --line: #ddd5c8;
  --gold: #e8bd5f;
  --gold-soft: #fff4d8;
  --panel: #ffffff;
  --chat: #151515;
  --chat-soft: rgba(255,255,255,.1);
  --green: #9fd6ab;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.site-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.site-header {
  min-height: 68px;
  padding: 12px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-frame {
  width: 104px;
  height: 42px;
  padding: 7px 9px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101010;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav-button,
.quick-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.nav-button.active,
.nav-button:hover { border-color: #b89445; background: var(--gold-soft); }
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  min-height: calc(100vh - 68px);
}
.content-panel { min-width: 0; padding: clamp(18px, 3vw, 36px); overflow: auto; }
.page-content { max-width: 920px; display: grid; gap: 18px; }
.hero-media {
  min-height: clamp(190px, 28vw, 335px);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #151515;
  overflow: hidden;
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.2) 42%, rgba(0,0,0,.78) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center center);
}
.hero-media > div { position: relative; z-index: 2; display: grid; gap: 10px; }
.hero-media span { color: rgba(255,255,255,.85); font-size: 13px; text-transform: uppercase; letter-spacing: 0; }
.hero-logo { display: block; width: min(160px, 42vw); height: auto; }
.eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0; color: #755d27; font-weight: 800; }
h1 { margin: 0; max-width: 820px; font-size: clamp(34px, 5vw, 68px); line-height: .98; letter-spacing: 0; }
h2, h3 { letter-spacing: 0; }
p { margin: 0; max-width: 72ch; color: var(--muted); line-height: 1.58; font-size: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-card,
.contact-hint,
.repertoire-section,
.pricing-section,
.terms-summary,
.suggest-song-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,.76);
}
.info-card h2,
.contact-hint h2,
.pricing-section h2,
.terms-summary h2,
.suggest-song-form h2,
.repertoire-section h2 { margin: 0 0 7px; font-size: 18px; }
.info-card p,
.suggest-song-form p,
.contact-hint p { font-size: 14px; }
.chat-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: var(--chat);
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
}
.chat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-header small { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 12px; }
.chat-header span { color: var(--green); font-size: 13px; }
.chat-messages { display: grid; align-content: start; gap: 10px; overflow: auto; padding-right: 3px; }
.message { max-width: 88%; padding: 10px 12px; border-radius: var(--radius); background: var(--chat-soft); line-height: 1.45; white-space: pre-wrap; }
.message.user { justify-self: end; color: #111; background: var(--gold); }
.message.system { max-width: 100%; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-actions button { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.18); background: transparent; }
.quick-actions button:hover { background: rgba(255,255,255,.1); }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-input input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
}
.chat-input button,
.inline-form button,
.suggest-song-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  min-height: 42px;
  color: #111;
  background: var(--gold);
  font-weight: 800;
  cursor: pointer;
}
.inline-form { display: grid; gap: 10px; max-width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.inline-form input,
.inline-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
}
.inline-form .privacy { color: rgba(255,255,255,.62); font-size: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head span { color: var(--muted); font-size: 13px; }
.repertoire-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.repertoire-toolbar input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
}
.repertoire-toolbar > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.repertoire-table-wrap {
  max-height: min(58vh, 620px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.repertoire-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.repertoire-table th,
.repertoire-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  text-align: left;
  vertical-align: top;
}
.repertoire-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #755d27;
  background: #fff8e8;
  font-size: 12px;
  text-transform: uppercase;
}
.repertoire-table th:first-child,
.repertoire-table td:first-child { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.repertoire-table tr:last-child td { border-bottom: 0; }
.repertoire-table strong { font-size: 14px; }
.repertoire-table td:nth-child(3),
.repertoire-table td:nth-child(4) { color: var(--muted); }
.repertoire-empty { margin-bottom: 16px; font-size: 14px; }
.pricing-list { display: grid; gap: 8px; }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.78);
}
.price-row strong { display: block; margin-bottom: 5px; }
.price-row p { font-size: 13px; }
.price-row > span { font-weight: 900; color: #7b5a12; white-space: nowrap; }
.terms-summary { display: grid; gap: 10px; }
.terms-summary p { font-size: 14px; }
.suggest-song-form { display: grid; gap: 10px; background: var(--gold-soft); }
.suggest-song-form input,
.suggest-song-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}
.suggest-song-form input[name="website"] { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; position: static; }
  .nav { justify-content: flex-start; }
  .split-layout { display: flex; flex-direction: column; min-height: auto; }
  .chat-panel { order: 1; position: static; height: auto; min-height: calc(100vh - 122px); }
  .content-panel { order: 2; display: none; padding: 14px; }
  body.content-open .content-panel { display: block; }
  body.content-open .chat-panel { min-height: 360px; }
  .info-grid,
  .price-row { grid-template-columns: 1fr; }
  .repertoire-toolbar { grid-template-columns: 1fr; }
  .repertoire-table-wrap { max-height: none; }
  .repertoire-table { min-width: 520px; }
  h1 { font-size: 34px; }
}
