/* ============================================================
   Bias Brain Press — biasbrain.press
   Single-page site. Dark theme, bright accents from the cover.
   ============================================================ */

:root {
  --bg:        #0c0c0a;
  --bg-alt:    #14140f;
  --panel:     #1c1c16;
  --ink:       #f8f6f0;
  --ink-dim:   #e9e4d9;
  --gold:      #f0c14b;
  --gold-deep: #c9982e;
  --gold-soft: #c9a44f;
  --line:      rgba(240, 193, 75, 0.28);
  --serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:      "EB Garamond", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 1.9em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: #141005;
  box-shadow: 0 0 0 1px rgba(240,193,75,.4), 0 6px 22px rgba(240,193,75,.18);
}
.btn-gold:hover { background: #ffd465; }
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(240,193,75,.05);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn-large { font-size: 1.15rem; padding: 1em 2.4em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4vw;
  background: rgba(12, 12, 10, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.wordmark:hover { text-decoration: none; color: #ffd465; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a:not(.btn) {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-links a:not(.btn):hover { color: var(--gold); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--gold); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4vw 5rem;
  background:
    radial-gradient(ellipse 70% 55% at 18% 40%, rgba(240,193,75,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(98,200,222,0.055), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-cover { position: relative; }
.hero-cover img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 60px rgba(240,193,75,0.10);
}
.cover-glow {
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at center, rgba(240,193,75,0.12), transparent 65%);
  z-index: -1;
}
.kicker {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.lede {
  font-size: 1.3rem;
  color: var(--ink);
  max-width: 34em;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--gold);
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint:hover { text-decoration: none; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 4vw; }
.section-alt { background: var(--bg-alt); border-top: 1px solid rgba(240,193,75,0.12); border-bottom: 1px solid rgba(240,193,75,0.12); }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap-narrow { max-width: 780px; }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: center;
}
.rule {
  width: 90px;
  height: 2px;
  margin: 1.4rem auto 3rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-lede {
  text-align: center;
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 46em;
  margin: 0 auto 3rem;
}
.book-text { max-width: 720px; margin: 0 auto; text-align: center; }
.book-text p + p { margin-top: 1.4rem; }
.book-text em { color: var(--gold); font-style: normal; }
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold);
}
.gift-note {
  max-width: 640px;
  margin: 2.6rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}

/* ---------- Buy + badge ---------- */
.book-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  margin-top: 3.2rem;
}
.amazon-badge { width: 170px; height: auto; opacity: 0.9; }

/* ---------- Contest ---------- */
.contest {
  border-top: 1px solid rgba(240, 193, 75, 0.12);
  background:
    radial-gradient(ellipse 65% 75% at 50% 30%, rgba(240,193,75,0.07), transparent 70%),
    var(--bg);
}
.contest-inner { text-align: center; }
.steps {
  list-style: none;
  counter-reset: step;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15em;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
}
.photo-help { margin-top: 0.7rem; }
.photo-help summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(240,193,75,0.35);
  padding-bottom: 2px;
}
.photo-help summary::-webkit-details-marker { display: none; }
.photo-help summary::after { content: " +"; }
.photo-help[open] summary::after { content: " \2013"; }
.photo-help ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}
.photo-help li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  color: var(--ink);
}
.photo-help li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.55rem;
  color: var(--gold);
}

.contest-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
}
.btn.is-disabled {
  pointer-events: none;
  opacity: 0.38;
  border-style: dashed;
  box-shadow: none;
}
.contest-meta {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.contest-list {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.gallery-item {
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 30px rgba(240,193,75,0.10);
}
.gallery-item figcaption {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-dim);
  padding: 0.7rem 0.4rem;
  border-top: 1px solid rgba(240,193,75,0.15);
}
.download-cta { text-align: center; }
.download-note { margin-top: 1rem; color: var(--ink-dim); font-size: 1rem; }

/* ---------- Volume 2 ---------- */

/* ---------- Bio ---------- */
.bio p { margin-bottom: 1.4rem; color: var(--ink); }
.bio p:first-child { color: var(--ink); font-size: 1.35rem; }
.bio-signoff {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold) !important;
  text-align: center;
  margin-top: 2.4rem;
}

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.contact-email:hover { color: #ffd465; }
.contact-signup { margin-top: 1.6rem; color: var(--ink-dim); }

/* ---------- Footer ---------- */
.footer {
  padding: 3.5rem 4vw 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-dim);
}
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.footer p { margin-bottom: 0.4rem; }
.footer-small { font-size: 0.9rem; opacity: 0.75; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 4, 0.93);
  padding: 3rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  width: auto;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cover { max-width: 360px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contest-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 720px) {
  .nav-toggle { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.btn) { font-size: 0.85rem; letter-spacing: 0.1em; }
  .nav { padding: 0.75rem 4vw; }
  .wordmark { font-size: 1.1rem; letter-spacing: 0.16em; }
  .section { padding: 4rem 5vw; }
  .hero { padding: 3rem 5vw 5rem; min-height: auto; }
  .scroll-hint { display: none; }
}
