:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --text: #ffffff;
  --muted: #aaa;
  --border: rgba(255,255,255,0.08);
  --pad: 52px;
}
@media (max-width: 760px) { :root { --pad: 16px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900; letter-spacing: 1px;
  text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 1px; white-space: nowrap; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-admin {
  font-size: 0.75rem; font-weight: 700; color: var(--bg); background: var(--gold);
  padding: 6px 12px; border-radius: 3px; text-decoration: none; white-space: nowrap;
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 10px; }
  .nav-links { order: 3; flex-basis: 100%; gap: 18px; }
  .nav-admin { margin-left: auto; }
}

/* HERO */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) 90px; overflow: hidden;
}
.hero-small { min-height: 40vh; padding-top: 80px; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroPan 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.97) 30%, rgba(10,10,10,0.35) 70%, rgba(10,10,10,0.7) 100%),
    linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.3) 35%, transparent 60%);
}
.hero-plain { background: radial-gradient(ellipse at 70% 30%, #2a2312, var(--bg) 70%); }
@keyframes heroPan { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-content { position: relative; max-width: 580px; animation: fadeUp 0.9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
  border-left: 3px solid var(--gold); padding-left: 12px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 900; line-height: 1.1; margin-bottom: 16px;
}
.hero-desc { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,0.72); margin-bottom: 30px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .hero { min-height: 70vh; padding-bottom: 48px; } }

/* BUTTONS */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 3px; text-decoration: none;
  font-size: 0.88rem; font-weight: 700; letter-spacing: 1px; transition: all .2s;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); font-weight: 400; }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ROWS */
.rows { padding: 24px 0 24px; }
.row { padding: 0 var(--pad) 44px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.row-title {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.row-title::before { content: ''; width: 3px; height: 1.2em; background: var(--gold); border-radius: 2px; }
.row-link { font-size: 0.72rem; letter-spacing: 1px; color: var(--gold); text-decoration: none; font-weight: 700; }
.row-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }

/* CARDS */
.card { flex-shrink: 0; width: 210px; text-decoration: none; transition: transform .3s; }
.card:hover { transform: scale(1.03); }
.card-wide { width: 340px; }
@media (max-width: 760px) { .card { width: 150px; } .card-wide { width: 260px; } }
.card-cover {
  position: relative; aspect-ratio: 3/4; background: var(--surface2);
  border-radius: 6px; overflow: hidden; margin-bottom: 10px;
}
.card-cover.wide { aspect-ratio: 16/9; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: filter .3s; }
.card:hover .card-cover img { filter: brightness(1); }
.cover-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  background: linear-gradient(145deg, #2a2312, #141414 70%);
  font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold2); font-size: 1.05rem;
}
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--bg);
  font-size: 0.55rem; font-weight: 800; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 2px; text-transform: uppercase;
}
.wide-overlay {
  position: absolute; inset: 0; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent 60%);
}
.wide-overlay .tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.wide-overlay strong { font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.card-title {
  font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-meta { font-size: 0.72rem; color: var(--muted); }

/* LIST PAGE */
.page-head { padding: 48px var(--pad) 24px; }
.page-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
  font-size: 0.8rem; color: rgba(255,255,255,0.75); background: var(--surface);
}
.chip.on, .chip:hover { border-color: var(--gold); color: var(--gold2); }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px;
  padding: 12px var(--pad) 48px;
}
.grid .card { width: auto; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.empty { padding: 48px var(--pad); color: var(--muted); }

/* STORY PAGE */
.story-head {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: end;
  padding: 48px var(--pad) 32px; max-width: 1100px;
}
.story-cover { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--surface2); }
.story-cover img, .story-cover .cover-empty { width: 100%; height: 100%; object-fit: cover; }
.story-info h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin-bottom: 14px; }
.story-excerpt { color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 12px; font-weight: 300; }
.story-info .card-meta { margin-bottom: 24px; }
@media (max-width: 760px) {
  .story-head { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
  .story-cover { max-width: 220px; }
}
.part-list { padding: 8px var(--pad) 40px; max-width: 900px; }
.part-list .row-title { margin-bottom: 14px; }
.part-list ol { list-style: none; border-top: 1px solid var(--border); }
.part-list a {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .2s;
}
.part-list a:hover { background: var(--surface); }
.part-no { color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
.part-name { font-family: 'Playfair Display', serif; }
.part-date { color: var(--muted); font-size: 0.75rem; }
@media (max-width: 760px) { .part-list a { grid-template-columns: 64px 1fr; } .part-date { display: none; } }

/* READER */
.reader { max-width: 720px; margin: 0 auto; padding: 40px 16px 56px; }
.reader-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.crumb { display: table; color: var(--muted); text-decoration: none; font-size: 0.8rem; margin-bottom: 22px; }
.crumb:hover { color: var(--gold2); }
.reader-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 8px; }
.reader-part { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold2); font-size: 1.2rem; margin-bottom: 10px; }
.part-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.part-pills a {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 4px; text-decoration: none; font-size: 0.85rem; background: var(--surface);
}
.part-pills a.on { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.reader-text { font-family: Georgia, 'Times New Roman', serif; font-size: 1.16rem; line-height: 1.85; color: #e9e6df; }
.reader-text p { margin-bottom: 1.25em; }
.reader-text h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 1.6em 0 0.6em; color: #fff; }
.reader-text hr.scene { border: 0; text-align: center; margin: 2em 0; }
.reader-text hr.scene::after { content: '✦  ✦  ✦'; color: var(--gold); letter-spacing: 6px; }
@media (max-width: 760px) { .reader-text { font-size: 1.08rem; line-height: 1.8; } }
.coming-soon, .the-end { margin: 36px 0 8px; text-align: center; }
.coming-soon { padding: 22px; border: 1px dashed rgba(201,168,76,0.5); border-radius: 6px; color: var(--gold2); }
.coming-soon p { margin-top: 8px; font-size: 0.9rem; }
.coming-soon a { color: #fff; }
.the-end { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold2); font-size: 1.2rem; }
.part-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 28px; }
@media (max-width: 760px) { .part-nav a { flex: 1 1 100%; justify-content: center; } .part-nav span { display: none; } }
.fiction-note { font-size: 0.78rem; color: var(--muted); line-height: 1.6; font-style: italic; }

/* ADS */
.ad { margin: 28px auto; text-align: center; min-height: 100px; }
.ad-row, .ad-grid { padding: 0 var(--pad); }

/* TEXT PAGES */
.text-page { max-width: 760px; margin: 0 auto; padding: 56px 16px; line-height: 1.8; color: rgba(255,255,255,0.82); }
.text-page.center { text-align: center; }
.text-page h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; margin-bottom: 26px; }
.text-page h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold2); margin: 30px 0 10px; }
.text-page p { margin-bottom: 1em; }
.text-page strong { color: #fff; }

.draft-banner {
  background: #5a4410; color: #ffe9a8; text-align: center; padding: 8px 16px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
}

/* FOOTER */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px var(--pad) 24px; margin-top: 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; margin-top: 12px; max-width: 360px; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 0.75rem;
}
.gold { color: var(--gold); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-brand { grid-column: 1 / -1; } }
