/* Lamplight Romance — static site styles. No build step. */
:root {
  --bg: #120c0e;
  --bg-raise: #1b1316;
  --bg-card: #22181b;
  --bg-card-hover: #2a1e22;
  --ink: #f6ead7;
  --ink-dim: #cbbba6;
  --ink-mute: #9a8b79;
  --gold: #d4b483;
  --gold-bright: #f0d5a0;
  --amber: #c9853a;
  --amber-deep: #8a5a22;
  --rule: rgba(212, 180, 131, 0.28);
  --rule-strong: rgba(212, 180, 131, 0.5);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 14px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 133, 58, 0.16), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(120, 40, 50, 0.18), transparent 40%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff6e4; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--gold-bright);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Age gate: hide the site until confirmed. */
#age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201, 133, 58, 0.22), transparent 55%),
    #0c0809;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
html:not(.age-ok) #age-gate { display: flex; }
html:not(.age-ok) .site { visibility: hidden; pointer-events: none; }
html.age-ok #age-gate { display: none; }

.age-card {
  max-width: 32rem;
  text-align: center;
  padding: 2.5rem 2rem 2.25rem;
  border: 1px solid var(--rule-strong);
  background: var(--bg-raise);
  box-shadow: var(--shadow), 0 0 80px rgba(201, 133, 58, 0.12);
  border-radius: 4px;
}
.age-card .logo-mark { width: 52px; height: 64px; margin: 0 auto 1.25rem; }
.age-card h1 {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}
.age-card p { color: var(--ink-dim); }
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-bright);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.brand:hover { color: #fff6e4; }
.brand img, .brand svg { width: 28px; height: 36px; flex: none; }
.brand span { line-height: 1; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--gold);
  padding: 0.4rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}
.site-nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--gold); }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #160f11;
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0; }
}

/* Hero / layout */
main { padding: 0 0 4rem; }
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero .kicker, .kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--ink-dim);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--gold); color: #1a1008; }
.btn-solid, a.btn-solid, button.btn-solid {
  background: var(--gold);
  color: #1a1008;
  border-color: var(--gold);
}
.btn-solid:hover, a.btn-solid:hover, button.btn-solid:hover {
  background: var(--gold-bright);
  color: #1a1008;
}
.btn-solid:hover { background: var(--gold-bright); color: #1a1008; }
.btn-ghost { border-color: var(--rule); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-soon, a.btn-soon, a.btn-soon:hover {
  border-color: var(--rule);
  color: var(--ink-mute);
  background: transparent;
  cursor: default;
  pointer-events: none;
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.buy-row .btn { padding: 0.5rem 0.95rem; font-size: 0.78rem; }

/* Sections */
section { padding: 2.5rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head p { color: var(--ink-dim); max-width: 38rem; margin-inline: auto; }
.rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
  border: 0;
  opacity: 0.7;
}

/* Door pair on home */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 2rem 1.6rem 1.7rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.door:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: inherit;
}
.door h2 { margin-bottom: 0.5rem; }
.door p { color: var(--ink-dim); margin: 0; }

/* Book cards */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.book-grid.featured {
  grid-template-columns: 1fr;
}
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.book-card.horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
@media (max-width: 640px) {
  .book-card.horizontal { grid-template-columns: 1fr; }
  .book-card.horizontal .cover { max-width: 220px; margin: 1.25rem auto 0; }
}
.cover {
  background: #0a0708;
}
.cover img {
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: cover;
}
.book-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.book-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.book-card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--gold-bright); margin-bottom: 0.15rem; }
.byline { color: var(--ink-dim); font-style: italic; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.8rem; }
.blurb { color: var(--ink-dim); font-size: 0.98rem; }
.blurb p:last-child { margin-bottom: 0; }
.status-pill {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--rule);
  color: var(--gold);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.status-pill.soon { color: var(--ink-mute); }

/* Prose pages */
.prose {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.12rem;
}
.prose.wide { max-width: 48rem; }
.prose h1, .prose h2 { text-align: center; }
.prose .kicker { text-align: center; }
.prose p, .prose li { color: var(--ink-dim); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { padding-left: 1.2rem; }
.page-hero { padding: 3.2rem 0 1.5rem; text-align: center; }

/* Series list on lamp page */
.series-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.sample {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin: 2rem auto;
  max-width: 42rem;
  text-align: center;
}
.sample audio { width: 100%; margin-top: 0.75rem; }
.sample .todo-note, .todo-note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 0.6rem;
}

/* Forms */
form.stack {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin: 1.5rem auto 0;
}
label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-dim); }
input[type="text"], input[type="email"], input[type="password"], textarea {
  font: inherit;
  color: var(--ink);
  background: #0e0a0b;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note { text-align: center; color: var(--ink-mute); font-size: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 2.5rem;
  color: var(--ink-mute);
  font-size: 0.92rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-bright); }
.eighteen { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--amber); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door, .btn { transition: none; }
  .door:hover { transform: none; }
}

/* Home series cover strip */
.cover-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.cover-strip a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.cover-strip a:hover { border-color: var(--gold); }
.cover-strip img { aspect-ratio: 5 / 8; object-fit: cover; width: 100%; }

code { font-size: 0.88em; color: var(--gold); }

.page-hero .prose p { text-align: left; }
.page-hero .prose .cta-row { text-align: center; }
.page-hero .prose .form-note, .page-hero .prose .todo-note { text-align: left; }

/* Coming Soon list */
.coming-list { display: flex; flex-direction: column; gap: 1.5rem; }
.coming-card .expected {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.coming-card .teaser {
  color: var(--ink-dim);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}
.coming-card a.cover-link {
  display: block;
  background: #0a0708;
}
.coming-card a.cover-link:hover img { opacity: 0.92; }
.status-pill.soon {
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}


/* Discussion board */
.board-wrap { max-width: 52rem; text-align: left; }
.board-hero { text-align: left; padding-top: 2.5rem; }
.board-hero .kicker { text-align: left; }
.board-lede { margin-left: 0; text-align: left; max-width: 42rem; }
.board-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.board-heading p { color: var(--ink-dim); max-width: 38rem; }
.board-crumb {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 0.8rem;
}
.account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  justify-content: flex-end;
  margin: -2.2rem 0 1.75rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.account-bar a { color: var(--gold-bright); }
.category-list { display: flex; flex-direction: column; gap: 1rem; }
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: inherit;
}
.category-card h2 { margin-bottom: 0.4rem; }
.category-card p { color: var(--ink-dim); margin-bottom: 0.6rem; }
.category-meta, .thread-meta, .muted {
  color: var(--ink-mute);
  font-size: 0.88rem;
  margin: 0;
}
.thread-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.thread-row, .thread-empty {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.thread-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
  text-decoration: none;
  margin-right: 0.5rem;
}
.thread-title:hover { color: #fff6e4; }
.thread-counts {
  color: var(--ink-mute);
  font-size: 0.88rem;
  text-align: right;
  display: grid;
  gap: 0.2rem;
}
.flag, .badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--rule);
  color: var(--gold);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-author { border-color: var(--gold); color: var(--gold-bright); }
.badge-admin { border-color: var(--amber); color: var(--amber); }
.board-post {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
  margin-bottom: 1rem;
}
.board-post.is-pending { border-style: dashed; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
  color: var(--ink-mute);
  font-size: 0.9rem;
}
.post-author { color: var(--ink); font-weight: 700; }
.post-body p { color: var(--ink-dim); }
.post-body p:last-child { margin-bottom: 0; }
.post-edited { font-style: italic; }
.board-form { margin-left: 0; max-width: 40rem; }
.check-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.45;
}
.check-label input { margin-top: 0.3rem; accent-color: var(--gold); }
.flash {
  border: 1px solid var(--rule-strong);
  background: var(--bg-raise);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  color: var(--ink-dim);
}
.flash-error { border-color: #a45c5c; color: #f0c4c4; }
.flash-ok { border-color: var(--gold); color: var(--gold-bright); }
.inline-form { display: inline; }
.admin-tools, .thread-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 1rem;
}
.btn-tiny, a.btn-tiny, button.btn-tiny {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}
.btn-danger, a.btn-danger, button.btn-danger {
  border-color: #a45c5c;
  color: #f0c4c4;
  background: transparent;
}
.btn-danger:hover, a.btn-danger:hover, button.btn-danger:hover {
  background: #a45c5c;
  color: #1a1008;
}
.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.member-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.member-table th, .member-table td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-dim);
}
.member-table th { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 700px) {
  .account-bar { margin-top: 0; justify-content: flex-start; }
  .thread-counts { text-align: left; }
}
