/* Lia Hart book pages. Same night-pitch world as the homepage: tracked Cinzel capitals, gold rules, covers as the hero. */
:root {
  color-scheme: dark;
  --night: #0D1017;
  --night-2: #151A24;
  --night-3: #1D2331;
  --line: #2B3242;
  --chalk: #EEEBE5;
  --mist: #A4A8B2;
  --gold: #D4B068;
  --gold-glow: rgba(212, 176, 104, 0.13);
  --on-gold: #15120B;
  --pitch: rgba(238, 235, 229, 0.07);

  --display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--night);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
a:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { margin: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
h2 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
}

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 1rem;
  text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top nav a { color: var(--mist); text-decoration: none; font-size: 0.9rem; }
.top nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  background: radial-gradient(ellipse 50% 60% at 22% 40%, var(--gold-glow), transparent 70%);
}
.pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--pitch);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.hero-cover {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  justify-self: center;
}
.info { display: grid; gap: 18px; min-width: 0; }
.info .eyebrow { margin: 0; }
.title {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  margin: 0;
}
.hook {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: var(--gold);
  max-width: 34ch;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 1px;
  color: var(--mist);
  white-space: nowrap;
}
.chip.is-out { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip.mood { color: var(--gold); border-color: var(--gold); }
.ku { font-size: 0.8rem; color: var(--mist); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 1px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
}
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.line { border-color: var(--chalk); color: var(--chalk); }
.btn.line:hover { background: var(--chalk); color: var(--night); }

.store { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--mist); }
.store select {
  font: inherit;
  font-weight: 600;
  color: var(--chalk);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 7px 10px;
}

.facts {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.facts dt {
  color: var(--mist);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-top: 0.25em;
}
.facts dd { margin: 0; min-width: 0; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.section.alt { background: var(--night-2); }

.blurb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.blurb { display: grid; gap: 18px; max-width: 64ch; min-width: 0; font-size: 1.05rem; }
.blurb .eyebrow { margin-bottom: 0; }
.closer {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
  margin-top: 6px;
}
.series-line { color: var(--mist); font-size: 0.92rem; font-style: italic; }

.loves {
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
  min-width: 0;
}
.loves h3 {
  font-family: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0;
}
.tropes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tropes li { position: relative; padding-left: 22px; line-height: 1.5; }
.tropes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.58em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* Reading order */
.order-head { margin-bottom: clamp(28px, 4vw, 40px); }
.order {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(14px, 2.4vw, 28px);
}
@media (max-width: 720px) { .order { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order li { min-width: 0; }
.order a {
  display: grid;
  gap: 10px;
  text-decoration: none;
}
.order img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .order img { transition: transform 0.25s ease; }
  .order a:hover img { transform: translateY(-4px); }
}
.order-num {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.order-title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.15;
}
.order a:hover .order-title { color: var(--gold); }
.order .is-current img { outline: 1px solid var(--gold); outline-offset: 5px; }
.here { color: var(--gold); }

.pager {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pager a { display: grid; gap: 4px; text-decoration: none; min-width: 0; }
.pager .next { text-align: right; margin-left: auto; }
.pager small {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.pager span {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}
.pager a:hover span { color: var(--gold); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--gold); }

@media (max-width: 820px) {
  .hero-grid, .blurb-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cover { max-width: 300px; justify-self: start; }
}

/* Footer */
.foot-wrap { border-top: 1px solid var(--line); }
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 28px;
  color: var(--mist);
  font-size: 0.84rem;
}
.foot .wordmark { font-size: 0.85rem; color: var(--chalk); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--gold); }
