/* The showcase — a warm editorial atelier.
   Jewel plum and cream, gold used the way a bookbinder uses it: on an edge, never
   on a surface. Type is large and quiet; the pictures are the loud thing. */

:root {
  --plum-deep: #2A1030;
  --plum: #3D1742;
  --plum-soft: #4E2154;
  --cream: #FBF4E6;
  --cream-dim: #EFE3CE;
  --ink: #2B1A2E;
  --gold: #C9973F;
  --gold-soft: rgba(201, 151, 63, 0.28);
  --rose: #B35470;
  --shadow: 0 18px 48px rgba(42, 16, 48, 0.18);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(78, 33, 84, 0.10), transparent 62%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── chrome ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  background: var(--plum-deep);
  color: var(--cream);
  border-bottom: 1px solid var(--gold-soft);
}
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .mark { color: var(--gold); font-size: 22px; line-height: 1; }
.wordmark strong { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em; }
.wordmark small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 244, 230, 0.62); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.whoami { font-size: 13px; color: rgba(251, 244, 230, 0.76); }

.footer {
  margin-top: 72px; padding: 28px 24px 44px;
  text-align: center; font-size: 13px; color: rgba(43, 26, 46, 0.5);
  border-top: 1px solid rgba(43, 26, 46, 0.08);
}

.wrap { max-width: 940px; margin: 0 auto; padding: 40px 24px 0; }
.page-title { font-family: var(--serif); font-size: clamp(28px, 5vw, 42px); font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.lede { font-size: 17px; color: rgba(43, 26, 46, 0.72); margin: 0 0 24px; max-width: 62ch; }
.empty {
  margin: 24px 0; padding: 26px 24px; border: 1px dashed rgba(43, 26, 46, 0.22);
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.55); color: rgba(43, 26, 46, 0.66);
}

/* ── the gate ───────────────────────────────────────────────────────────── */
.gate { display: flex; justify-content: center; padding: 8vh 20px 0; }
.gate-card { max-width: 480px; width: 100%; }
.gate-card h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 12px; }

.card {
  background: #fff;
  border: 1px solid rgba(43, 26, 46, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(43, 26, 46, 0.55); margin: 18px 0 6px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid rgba(43, 26, 46, 0.16);
  border-radius: 9px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }

button { font: inherit; cursor: pointer; border-radius: 9px; }
.primary {
  margin-top: 20px; width: 100%; padding: 13px 18px;
  background: var(--plum); color: var(--cream); border: 1px solid var(--plum-soft);
  letter-spacing: 0.02em;
}
.primary:hover { background: var(--plum-soft); }
.primary:disabled { opacity: 0.55; cursor: progress; }
.ghost {
  padding: 8px 14px; background: transparent; color: inherit;
  border: 1px solid currentColor; opacity: 0.75; font-size: 13px;
}
.ghost:hover { opacity: 1; }
.back { margin-bottom: 18px; color: rgba(43, 26, 46, 0.7); }

.fineprint { font-size: 13px; color: rgba(43, 26, 46, 0.55); margin: 14px 0 0; }
.message { display: block; margin-top: 14px; font-size: 14px; min-height: 1.2em; color: var(--rose); }
.message.ok { color: #2F7A52; }
.message.closed { color: rgba(43, 26, 46, 0.62); }

/* ── the list of stories ────────────────────────────────────────────────── */
.story-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.story-card {
  text-align: left; width: 100%; padding: 0; overflow: hidden;
  background: #fff; border: 1px solid rgba(43, 26, 46, 0.08);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.story-card:hover { border-color: var(--gold-soft); }
.story-card .cover { aspect-ratio: 4 / 3; background: var(--plum-deep); display: block; width: 100%; object-fit: cover; }
.story-card .cover-empty { aspect-ratio: 4 / 3; background: linear-gradient(140deg, var(--plum), var(--plum-deep)); display: grid; place-items: center; color: var(--gold); font-size: 28px; }
.story-card .body { padding: 18px 20px 22px; }
.story-card h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.story-card p { margin: 0; font-size: 15px; color: rgba(43, 26, 46, 0.68); }
.story-card .meta { margin-top: 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(43, 26, 46, 0.42); }

/* ── tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; border-bottom: 1px solid rgba(43, 26, 46, 0.12); }
.tab {
  padding: 10px 16px; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: rgba(43, 26, 46, 0.55); border-radius: 0;
}
.tab.is-on { color: var(--plum); border-bottom-color: var(--gold); }

/* ── scenes ─────────────────────────────────────────────────────────────── */
.scene { margin: 0 0 56px; }
.scene-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.scene-no { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: 0.18em; }
.scene h3 { font-family: var(--serif); font-size: 25px; margin: 0; font-weight: 600; }
.scene-figure { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--plum-deep); box-shadow: var(--shadow); }
.scene-figure img, .scene-figure video { display: block; width: 100%; height: auto; }
.scene-missing {
  padding: 40px 24px; text-align: center; color: rgba(251, 244, 230, 0.7);
  background: linear-gradient(140deg, var(--plum), var(--plum-deep)); border-radius: var(--radius);
}
.scene-beat { font-size: 17.5px; max-width: 62ch; }

.review-card { margin-top: 18px; padding: 22px 22px 26px; }
.review-card h4 { font-family: var(--serif); font-size: 18px; margin: 0 0 4px; }
.stars { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.star-row { flex: 1 1 200px; }
.star-row .dim { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(43, 26, 46, 0.5); }
.star-buttons { display: flex; gap: 4px; margin-top: 4px; }
.star {
  width: 38px; height: 38px; padding: 0; font-size: 17px; line-height: 1;
  background: var(--cream); border: 1px solid rgba(43, 26, 46, 0.14); color: rgba(43, 26, 46, 0.35);
}
.star.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }
.radio { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.radio input { width: auto; }
fieldset { border: 0; padding: 0; margin: 8px 0 0; }
legend { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(43, 26, 46, 0.5); }

/* ── side by side ───────────────────────────────────────────────────────── */
.compare-pickers { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.compare-pickers label { flex: 1 1 220px; margin-top: 0; }
.compare-stage { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.compare-stage figure { margin: 0; }
.compare-stage figcaption { font-size: 13px; color: rgba(43, 26, 46, 0.6); margin-top: 6px; }
.compare-stage img, .compare-stage video { width: 100%; height: auto; border-radius: 10px; display: block; background: var(--plum-deep); }

/* ── the notes ──────────────────────────────────────────────────────────── */
.note { padding: 16px 18px; border-left: 3px solid var(--gold-soft); background: #fff; border-radius: 0 10px 10px 0; margin-bottom: 12px; }
.note-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; color: rgba(43, 26, 46, 0.55); }
.note-head strong { color: var(--ink); font-size: 15px; }
.note-scores { font-size: 13px; color: rgba(43, 26, 46, 0.62); margin-top: 4px; }
.note p { margin: 6px 0 0; }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 28px 18px 0; }
  .card { padding: 24px 20px; }
  .compare-stage { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; }
}
[hidden] { display: none !important; }
