/* Songbird's Soul Circle — design system
   Bold & artistic meets warm jazz-club soul. Dark, intimate, photo-forward. */

:root {
  --ink: #14100e;
  --ink-2: #211a16;
  --ink-3: #2b221c;
  --wine: #7a2e3a;
  --wine-deep: #531f28;
  --gold: #c9a24b;
  --gold-bright: #e0b84c;
  --cream: #f5efe6;
  --cream-dim: #c9beb0;
  --line: #3a2f29;
  --ok: #5b8c6e;
  --err: #c25b4e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* soft radial warmth in the background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(122, 46, 58, 0.28), transparent 60%),
    radial-gradient(900px 520px at 6% 108%, rgba(201, 162, 75, 0.12), transparent 55%);
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
.script { font-family: 'Great Vibes', cursive; font-weight: 400; }
.muted { color: var(--cream-dim); }
.center { text-align: center; }

.wrap { width: min(var(--wrap), 92%); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: 2.5rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .74rem; color: var(--gold); font-weight: 600; font-family: 'Inter', sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .98rem;
  padding: .72rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold-bright); color: #241a0a; }
.btn--primary:hover { background: var(--gold); color: #241a0a; box-shadow: 0 8px 26px rgba(201, 162, 75, .28); }
.btn--wine { background: var(--wine); color: var(--cream); }
.btn--wine:hover { background: var(--wine-deep); color: var(--cream); }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold-bright); }
.btn--ghost:hover { background: rgba(201, 162, 75, .12); color: var(--gold-bright); }
.btn--sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 8px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 14, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.brand .mark { width: 42px; height: 42px; display: grid; place-items: center; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--cream-dim); font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500; padding: .4rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--cream); background: rgba(255, 255, 255, .05); }
.nav .btn { margin-left: .35rem; }
.avatar-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: 'Inter', sans-serif; overflow: hidden; }
.avatar-badge img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: 120%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: .4rem; min-width: 190px; box-shadow: var(--shadow); display: none; }
.menu-panel.open { display: block; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--cream-dim); padding: .55rem .7rem; border-radius: 8px; font-size: .92rem; cursor: pointer; font-family: 'Inter', sans-serif; }
.menu-panel a:hover, .menu-panel button:hover { background: rgba(255, 255, 255, .05); color: var(--cream); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: .4rem .6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero h1 { margin-bottom: .3rem; }
.hero .lede { font-size: 1.2rem; color: var(--cream-dim); max-width: 34ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card--pad { padding: 1.3rem 1.4rem; }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.25rem 1.35rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .6rem; font-weight: 600; }

/* ---------- Feature strip ---------- */
.teaser { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.teaser ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .5rem; }
.teaser li { color: var(--cream-dim); }
.teaser li::before { content: '♪'; color: var(--gold); margin-right: .5rem; }

/* ---------- Shows ---------- */
.show-row { display: flex; gap: 1.2rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.show-date { flex: 0 0 88px; text-align: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: .55rem; }
.show-date .m { text-transform: uppercase; color: var(--gold); font-size: .72rem; letter-spacing: .1em; }
.show-date .d { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.show-info { flex: 1; }
.show-info h3 { margin: 0 0 .2rem; }

/* ---------- Wall ---------- */
.wall { max-width: 720px; margin: 0 auto; }
.composer { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.4rem; }
.composer textarea { width: 100%; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; font-family: inherit; font-size: 1rem; resize: vertical; min-height: 72px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; gap: .6rem; }
.composer-preview { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; padding: .45rem .6rem; background: var(--ink); border: 1px solid var(--gold); border-radius: 10px; }
.composer-preview-img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.composer-preview-name { font-size: .85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold); }
.composer-preview-remove { background: none; border: 0; color: var(--cream-dim); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.composer-preview-remove:hover { color: var(--err); }
.post { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.post.pinned { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 162, 75, .25); }
.post-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.post-head .who { font-weight: 600; }
.badge-songbird { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--gold); border-radius: 999px; padding: .1rem .5rem; font-weight: 700; }
.badge-pin { color: var(--gold); font-size: .8rem; margin-left: auto; }
.post-body { white-space: normal; margin: .3rem 0 .7rem; }
.post-body img.post-image { border-radius: 10px; margin-top: .7rem; }
.post-actions { display: flex; gap: 1.2rem; align-items: center; color: var(--cream-dim); font-size: .92rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.like-btn { background: none; border: 0; color: var(--cream-dim); cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; font: inherit; }
.like-btn.liked { color: var(--wine); }
.like-btn .heart { font-size: 1.05rem; }
.comments { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; display: none; }
.comments.open { display: block; }
.comment { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .who { font-weight: 600; font-size: .9rem; }
.comment .meta { color: var(--cream-dim); font-size: .78rem; }

/* ---------- Photo grid (story range / galleries) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.photo-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 28%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .3s ease; }
.photo-grid img:hover { transform: translateY(-3px) scale(1.01); }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Content detail ---------- */
.embed { width: 100%; border: 0; border-radius: 12px; }
.embed--video { aspect-ratio: 16/9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gallery img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; cursor: pointer; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; color: var(--cream-dim); margin-bottom: .35rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); color: var(--cream); border: 1px solid var(--line);
  border-radius: 10px; padding: .7rem .8rem; font-family: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-narrow { max-width: 560px; }
.note { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.note--ok { background: rgba(91, 140, 110, .16); border: 1px solid var(--ok); color: #cfe9d8; }
.note--err { background: rgba(194, 91, 78, .16); border: 1px solid var(--err); color: #f2cfc9; }
.note--info { background: rgba(201, 162, 75, .12); border: 1px solid var(--line); color: var(--cream-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); margin-top: 3rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { color: var(--gold); font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: var(--cream-dim); display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--cream); }
.foot-sub input { width: 100%; }
.foot-bottom { border-top: 1px solid var(--line); text-align: center; color: #7d7367; font-size: .82rem; padding: 1rem 0 1.6rem; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.admin-nav { position: sticky; top: 80px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.admin-nav a { display: block; color: var(--cream-dim); padding: .55rem .7rem; border-radius: 8px; font-size: .93rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255, 255, 255, .05); color: var(--cream); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.stat .n { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); }
.stat .l { color: var(--cream-dim); font-size: .85rem; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
table.data th { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pill { font-size: .74rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--cream-dim); }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: .8rem; align-items: center; }
.flex-between { display: flex; gap: .8rem; align-items: center; justify-content: space-between; }
.pt0 { padding-top: 0; }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: .6rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .grid--3, .grid--2, .teaser ul, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
