:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-bright: #f0d483;
  --gold-dim: #8a6a28;
  --black: #000000;
  --surface: #0d0c09;
  --surface2: #161410;
  --border: #2e2a1a;
  --border-gold: rgba(201,168,76,0.25);
  --text: #e8dfc0;
  --text-muted: #8a7d5a;
  --text-dim: #4a4030;
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #1a1500 0%, transparent 60%),
    var(--black);
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* AGE BAR (after entry) */
.agebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  align-items: baseline;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: var(--black);
  border-bottom: 1px solid var(--border-gold);
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.agebar .dot { color: var(--gold-dim); opacity: 0.8; }

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  background: rgba(0,0,0,.93);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-logo-text {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
}
.nav-logo-text span { color: var(--gold-light); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); text-decoration: none; }
.nav-cta {
  padding: .42rem 1.3rem;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  color: var(--gold) !important;
  transition: all .25s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }

/* HEADER / WORDMARK */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 2rem 1.25rem 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--gold-dim);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1 a { color: inherit; text-decoration: none; }

.lede {
  max-width: 38rem;
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

.da-home {
  flex: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .25s;
}
.da-home:hover { background: var(--gold); color: var(--black); text-decoration: none; }

.controls {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.search-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-size: 1.05rem;
  padding: 0.65rem 0.1rem 0.55rem;
  outline: none;
  border-radius: 0;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-bottom-color: var(--gold); }

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem 0.6rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.is-on { color: var(--gold-light); border-bottom-color: var(--gold); }
.tab:hover { color: var(--gold-light); }

.status {
  max-width: 1100px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0.4rem 1.25rem 2rem;
}

/* Series cards */
.series-list { display: grid; gap: 0.65rem; }

.series-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 3px;
}
.series-card.is-open { border-color: var(--gold-dim); }

.series-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  align-items: start;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0.95rem 1rem 0.9rem;
  cursor: pointer;
}
.series-head:hover { background: rgba(201, 168, 76, 0.06); }
.series-card.has-thumb .series-head {
  grid-template-columns: 12rem 1fr auto;
  align-items: start;
}
.series-head .thumb {
  width: 12rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.series-name {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--gold-light);
}
.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.alias {
  color: var(--text-dim);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
}

.count-pill {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.blurb {
  margin: 0 1rem 0.85rem;
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  font-weight: 300;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0; }
.chip {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.18rem 0.42rem;
  background: var(--surface);
}

/* Gallery rows */
.parts { border-top: 1px solid var(--border); padding: 0.35rem 0 0.5rem; }
.part {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.6rem 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.part:last-child { border-bottom: 0; }
.part.is-also { background: rgba(201, 168, 76, 0.04); }

.part-num {
  font-family: "Cinzel", serif;
  font-style: normal;
  color: var(--gold);
  font-size: 1.02rem;
  line-height: 1.2;
}
.part-num span {
  display: block;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.part-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.part-title a { color: var(--text); }
.part-title a:hover { color: var(--gold-light); }

.price {
  display: inline-block;
  margin-left: 0.45rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.desc {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 300;
}

.ads {
  margin: 0.45rem 0 0;
  padding: 0 0 0 1.05rem;
  color: var(--text);
  font-size: 0.86rem;
}
.ads li { margin: 0.15rem 0; color: var(--text-muted); }

.row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.also-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Galleries view */
.gal-list { display: grid; gap: 0.7rem; }
.gal-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
}
.gal-card.has-thumb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.gal-card .thumb { width: 100%; }
.gal-body {
  padding: 0.95rem 1rem 1rem;
}
.thumb {
  aspect-ratio: 16 / 9;
  background: #0a0906;
  border: 1px solid var(--border-gold);
  overflow: hidden;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0a0906;
}
.gal-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.gal-card h3 a { color: var(--gold-light); }
.gal-card h3 a:hover { color: var(--gold-bright); }
.gal-sub {
  margin: 0.3rem 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty {
  padding: 2.5rem 0.5rem;
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
}

.kind {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* HOW IT WORKS */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 0;
}
.how {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--surface);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 .8rem;
  text-align: center;
}
.section-title {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: .08em;
  text-align: center;
  margin: 0 0 .6rem;
  font-weight: 600;
}
.section-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: .8rem auto 1.75rem;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.how-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.3rem 1.2rem;
}
.how-card.featured {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, #1a1500 0%, var(--surface2) 100%);
}
.how-card-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 .55rem;
}
.how-card-title {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  color: var(--gold-light);
  letter-spacing: .05em;
  margin: 0 0 .7rem;
  font-weight: 600;
}
.how-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.how-card strong { color: var(--text); font-weight: 500; }

/* FOOTER */
.foot, footer.foot {
  max-width: none;
  margin: 0;
  padding: 1.8rem 1.25rem 3rem;
  border-top: 1px solid var(--border-gold);
  background: var(--black);
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-bottom: .5rem;
}
.footer-logo-text {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .15em;
}
.footer-sub {
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .06em;
  margin: 0 0 .7rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .68rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }
.fine {
  margin: 1rem auto 0;
  max-width: 40rem;
  color: var(--text-dim);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
}

/* LEGAL OVERLAY */
#legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.95);
  overflow-y: auto;
  padding: 3rem 2rem;
}
#legal-overlay .inner { max-width: 760px; margin: 0 auto; }
#legal-overlay .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
#legal-overlay .header span {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: #e8c97a;
  letter-spacing: .08em;
}
#legal-overlay .header button {
  background: none;
  border: none;
  color: #8a7d5a;
  font-size: 1.3rem;
  cursor: pointer;
}
#legal-overlay .body {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #8a7d5a;
  line-height: 1.85;
}
#legal-overlay .body strong { color: #e8dfc0; }
.legal-updated { color: #4a4030; font-size: .8rem; margin-bottom: 1.5rem; }
#legal-overlay .footer-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,.15);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
#legal-overlay .footer-links button {
  padding: .4rem 1rem;
  background: transparent;
  border: 1px solid #2e2a1a;
  color: #4a4030;
  font-family: "Jost", sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}
#legal-overlay .footer-links button:hover { border-color: var(--gold); color: var(--gold); }

/* AGE GATE */
#age-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
html.age-ok #age-gate { display: none; }
#age-gate .box {
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  background: #0d0c09;
}
#age-gate .age-kicker {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #8a6a28;
  margin: 0 0 .6rem;
  font-family: "Jost", sans-serif;
}
#age-gate h2 {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  color: #e8c97a;
  letter-spacing: .1em;
  margin: 0 0 1rem;
  font-weight: 600;
}
#age-gate p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: #8a7d5a;
  line-height: 1.75;
  margin: 0 0 2rem;
}
#age-gate p strong { color: #e8dfc0; }
#age-gate .btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
#age-gate .btn-enter {
  padding: .75rem 2rem;
  background: #c9a84c;
  color: #000;
  border: none;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
}
#age-gate .btn-enter:hover { background: #f0d483; }
#age-gate .btn-exit {
  padding: .75rem 2rem;
  background: transparent;
  color: #4a4030;
  border: 1px solid #2e2a1a;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
#age-gate .btn-exit:hover { border-color: #8a6a28; color: #8a7d5a; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: .9rem 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .part { grid-template-columns: 1fr; gap: 0.25rem; }
  .part-num { font-size: 0.95rem; }
  .series-name { font-size: 1.15rem; }
  .agebar span:last-child { display: none; }
  .series-card.has-thumb .series-head { grid-template-columns: 1fr auto; }
  .series-head .thumb {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
  }
}

@media (min-width: 860px) {
  .series-list.compact { grid-template-columns: 1fr; }
}
