/* The Velvet Rope — self-hosted rebuild theme.
   Velvet burgundy + brass on charcoal; Fraunces display serif.
   Light + dark via prefers-color-scheme. */
:root {
  --bg: #171216;
  --surface: #221a20;
  --surface-2: #2c2129;
  --text: #f2e9e4;
  --dim: #bfa9a0;
  --border: #453239;
  --velvet: #8e2438;
  --velvet-bright: #c03a52;
  --brass: #c9a227;
  --teal: #2a7f6f;
  --danger: #d9534f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf5f0;
    --surface: #ffffff;
    --surface-2: #f3e9e2;
    --text: #2a1c22;
    --dim: #7a6359;
    --border: #e0cfc4;
    --velvet: #8e2438;
    --velvet-bright: #a92c44;
    --brass: #9a7b14;
    --teal: #22705f;
    --danger: #b3352c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.1rem; }
a { color: var(--velvet-bright); }
.hidden { display: none !important; }
.dim { color: var(--dim); }
.big { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; margin-bottom: .35rem; }

nav.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
nav.top .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; overflow-x: auto; }
nav.top .brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; white-space: nowrap; }
nav.top .navlink { color: var(--dim); text-decoration: none; font-size: .92rem; white-space: nowrap; }
nav.top .navlink:hover { color: var(--text); }

header.hero { background: linear-gradient(160deg, #2b0f1a 0%, #171216 70%); color: #f2e9e4; padding: 3.2rem 0 2.6rem; border-bottom: 3px solid var(--velvet); }
@media (prefers-color-scheme: light) {
  header.hero { background: linear-gradient(160deg, #57182a 0%, #8e2438 75%); }
}
header.hero h1 { font-size: 2.6rem; margin: .2rem 0 .6rem; }
header.hero p { max-width: 46rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brass); }
section { padding: 2rem 0 .5rem; }
section h2 { font-size: 1.8rem; margin: .15rem 0 .5rem; }
h3.sub { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.intro { max-width: 46rem; }

.btn { display: inline-block; border: 1px solid transparent; border-radius: .5rem; padding: .55rem 1.05rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--text); }
.btn.brass { background: var(--brass); color: #221a10; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.ghost { background: transparent; border-color: #f2e9e4; color: #f2e9e4; }
.btn.small { padding: .3rem .7rem; font-size: .88rem; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }

.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: .7rem; padding: 1rem 1.1rem; }
.card h3 { margin: .1rem 0 .35rem; font-size: 1.15rem; }
.card .meta { color: var(--dim); font-size: .9rem; }
.chip { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; margin: .1rem .25rem .1rem 0; background: var(--surface-2); }
.chip.status-open { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.chip.status-filled { border-color: var(--brass); color: var(--brass); font-weight: 700; }
.chip.status-closed { border-color: var(--danger); color: var(--danger); font-weight: 700; }
.chip.status-booked { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.chip.status-passed { border-color: var(--dim); color: var(--dim); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: .7rem; padding: 1rem 1.1rem; display: grid; gap: .7rem; max-width: 620px; }
.panel label { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; }
.panel input, .panel select, .panel textarea, .toolbar select, .toolbar input {
  font: inherit; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--bg); color: var(--text);
}
.panel textarea { min-height: 4.2rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-weight: 400; }
.checks label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1em; }
.form-error.ok { color: var(--teal); }
.toolbar { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 1rem; flex-wrap: wrap; }
.empty { border: 1px dashed var(--border); border-radius: .7rem; padding: 1.2rem; color: var(--dim); margin: .8rem 0; max-width: 46rem; }
.queue { display: grid; gap: .6rem; margin: .6rem 0 1.4rem; }
.queue .row { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; padding: .6rem .8rem; }
.queue .row .who { font-weight: 700; }
.queue .row .acts { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
table.books { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.books td { padding: .18rem .4rem .18rem 0; }
table.books td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
footer.site { margin-top: 3rem; border-top: 1px solid var(--border); padding: 2rem 0 3rem; background: var(--surface); }
footer.site .credits { color: var(--dim); font-size: .85rem; }
