:root {
  /* Palette: near-black base streaked with forest green, burgundy calls to action, teal links and glow */
  --bg: #070c08;
  --bg-rgb: 7 12 8;
  --forest-rgb: 30 63 32;
  --ink: #e4dfd6;
  --ink-bright: #f1ede6;
  --ink-soft: #aaa49a;
  --ink-muted: #aaa49a;
  --ink-faint: #8f8a80;
  --blood: #800020;
  --blood-bright: #9c1232;
  --rose: #00ced1;
  --red: #e0475c;
  --red-rgb: 224 71 92;
  --gold: #d4af5a;
  --gold-rgb: 212 175 90;
  --rose-soft: #00ced1;
  --line: rgba(228, 223, 214, 0.12);
  --accent-rgb: 0 206 209;
  --teal-rgb: 0 206 209;
  --cta-rgb: 128 0 32;
  --on-accent: var(--ink-bright);
  --accent-hover: var(--blood-bright);
  --selection-ink: var(--ink-bright);
  --menu-bg: #060a07;
  --placeholder-bg: #0e1a10;
  --glow-top: rgba(0, 206, 209, 0.07);
  --glow-book: rgb(var(--forest-rgb) / 0.2);
  --serif-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --serif-body: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --gutter: clamp(20px, 6vw, 64px);
  --section-pad: clamp(60px, 9vw, 120px);
  --header-h: 92px;
}

/* Pages featuring Modern Monstrous Wolf swap the teal highlights for red,
   leaning into dark romance. Scoped to <main> so the nav stays consistent. */
.book-feature main {
  --rose: var(--red);
  --rose-soft: var(--red);
  --accent-rgb: var(--red-rgb);
}

/* Home hero: the title's highlight word and the trope tags go gold */
.page-home .hero h1 em { color: var(--gold); }
.page-home .tag { color: var(--gold); border-color: rgb(var(--gold-rgb) / 0.5); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--blood); color: var(--selection-ink); }

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 45% 30% at 82% -6%, var(--glow-top), transparent 70%),
    radial-gradient(ellipse 70% 55% at 88% 8%, rgb(var(--forest-rgb) / 0.55), transparent 70%),
    radial-gradient(ellipse 55% 45% at -5% 55%, rgb(var(--forest-rgb) / 0.4), transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 105%, rgb(var(--forest-rgb) / 0.45), transparent 70%),
    linear-gradient(112deg, transparent 32%, rgb(var(--forest-rgb) / 0.16) 46%, transparent 58%),
    linear-gradient(112deg, transparent 58%, rgb(var(--forest-rgb) / 0.1) 66%, transparent 74%);
}

/* Faint grain so the haze reads as mist rather than flat gradient */
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header & menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 5vw, 64px);
  background: rgb(var(--bg-rgb) / 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif-display);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
}

.icon-btn {
  background: none;
  border: 1px solid rgba(236, 228, 218, 0.25);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn span { width: 20px; height: 1px; background: var(--ink); }

/* Desktop: links sit in the top bar; the fullscreen menu is for small screens */
.site-nav { display: none; }

@media (min-width: 1080px) {
  .site-nav { display: flex; gap: clamp(24px, 2.6vw, 40px); }
  .site-header [data-menu-open] { display: none; }
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] { color: var(--rose-soft); border-bottom-color: rgb(var(--accent-rgb) / 0.6); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--menu-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 36px);
  padding: var(--gutter);
  text-align: center;
}

.menu[hidden] { display: none; }

.menu .icon-btn {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(20px, 5vw, 64px);
  font-size: 22px;
  line-height: 1;
}

.menu a {
  font-family: var(--serif-display);
  font-size: clamp(28px, 5vw, 42px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.menu a:hover { color: var(--rose-soft); }

.menu a[aria-current="page"] { color: var(--rose); font-style: italic; }

/* ---------- Shared pieces ---------- */

main { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; }

/* Single-section pages stretch to meet the footer */
main > section { width: 100%; }

main > section:only-child { flex: 1 0 auto; }

[id] { scroll-margin-top: var(--header-h); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  margin: 0;
  color: var(--ink-bright);
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 16px 30px;
  border-radius: 1px;
  border: 1px solid rgba(236, 228, 218, 0.4);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover { border-color: var(--ink); }

.btn-primary { background: var(--blood); border-color: var(--blood); color: var(--on-accent); }

.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.tag {
  border: 1px solid rgb(var(--accent-rgb) / 0.5);
  color: var(--rose-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Eight icons: one row on wide screens, two rows of four on phones */
@media (max-width: 600px) {
  .social-links { display: grid; grid-template-columns: repeat(4, 42px); gap: 14px 18px; }
  .contact .social-links { justify-content: center; }
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(228, 223, 214, 0.22);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--rose);
  border-color: rgb(var(--accent-rgb) / 0.6);
  box-shadow: 0 0 14px rgb(var(--accent-rgb) / 0.25);
}

.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* Stand-in for artwork that hasn't been supplied yet */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background:
    repeating-linear-gradient(135deg, rgba(236, 228, 218, 0.025) 0 12px, transparent 12px 24px),
    var(--placeholder-bg);
}

/* A slow "breathing" glow behind the text, for a bit of anticipation */
.placeholder { position: relative; isolation: isolate; }

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 55% at 50% 45%, rgb(var(--teal-rgb) / 0.18), transparent 70%),
    radial-gradient(ellipse 90% 45% at 50% 100%, rgb(var(--cta-rgb) / 0.55), transparent 70%);
  opacity: 0.15;
  animation: breathe 7s ease-in-out infinite;
}

.coming-card + .coming-card .placeholder::before { animation-delay: -3.5s; }

@keyframes breathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

.cover {
  aspect-ratio: 2 / 3;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(236, 228, 218, 0.12);
  overflow: hidden;
}

.cover img { width: 100%; height: 100%; object-fit: cover; }

/* Real artwork: match the cover's own 5:8 shape instead of cropping it */
.cover--image { aspect-ratio: 5 / 8; }

/* ---------- Newsletter form ---------- */

.signup { position: relative; display: flex; flex-wrap: wrap; width: 100%; max-width: 440px; }

.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(236, 228, 218, 0.3);
  border-right: none;
  border-radius: 0;
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--serif-body);
  font-size: 16px;
}

.signup input::placeholder { color: var(--ink-faint); }

.signup button {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 0;
  padding: 14px 22px;
  font-family: var(--serif-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

.signup button:disabled { opacity: 0.7; cursor: default; }

.signup-status {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
  min-height: 1.4em;
}

.signup-status.is-error { color: var(--rose-soft); }

/* On success the field and button fade away and the welcome fades in
   in their place, so the box keeps its height */
.signup input,
.signup button { transition: opacity 0.45s ease, visibility 0s linear 0s; }

.signup.is-done input,
.signup.is-done button {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.signup-status.is-success {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  line-height: 1.25;
  color: rgb(var(--teal-rgb));
  animation: signup-in 0.6s ease 0.35s both;
}

.signup-welcome {
  font-family: var(--serif-display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(var(--teal-rgb) / 0.35);
}

@keyframes signup-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.signup-status:empty { display: none; }

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 90px) var(--gutter);
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap-reverse;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeUp 0.8s ease-out both;
}

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  margin: 0;
  color: var(--ink-bright);
}

.hero h1 em { color: var(--rose); }

.hero-hook {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.hero .btn-row { margin-top: 12px; }

.hero .cover {
  flex: 0 1 320px;
  min-width: 220px;
  max-width: 380px;
  margin-inline: auto;
  animation: fadeUp 0.8s 0.15s ease-out both;
}

/* Phones: keep the cover modest so the title shows on the first screen */
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero .cover { flex: 0 0 auto; width: min(62vw, 260px); min-width: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero .cover { animation: none; }
  .placeholder::before { animation: none; opacity: 0.5; }
  .signup-status.is-success { animation: none; }
  .signup input, .signup button { transition: none; }
}

/* ---------- Newsletter strip ---------- */

.strip {
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  background: rgba(236, 228, 218, 0.04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.strip-title { font-family: var(--serif-display); font-size: 20px; color: var(--ink-bright); }

.strip-sub { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }

.strip .signup { flex: 1 1 320px; }

/* ---------- About ---------- */

.about {
  padding: var(--section-pad) var(--gutter);
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-photo { flex: 0 0 auto; width: min(260px, 100%); margin: 0 auto; }

.about-photo .frame {
  width: min(260px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(236, 228, 218, 0.15);
  margin: 0 auto;
}

/* The portrait artwork has its own ring, so drop the frame's border */
.about-photo .frame:has(img) { border: none; }

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy .social-links { margin-top: 8px; }

/* ---------- Book ---------- */

.book {
  padding: var(--section-pad) var(--gutter);
  background: linear-gradient(180deg, var(--glow-book), rgb(var(--bg-rgb) / 0) 40%);
}

.book-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
}

.book .cover { flex: 0 1 320px; min-width: 220px; max-width: 360px; align-self: flex-start; margin-inline: auto; }

.book-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.book-copy .prose { line-height: 1.8; font-size: 18px; max-width: 37rem; }

.label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.warnings {
  border: 1px solid rgb(var(--cta-rgb));
  background: rgb(var(--cta-rgb) / 0.35);
  border-radius: 2px;
  padding: 16px 18px;
  margin: 0;
  max-width: 37rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.book .btn-row { margin-top: 6px; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quotes blockquote {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: #e3dcd3;
}

.quotes footer {
  margin-top: 8px;
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Coming soon ---------- */

.coming {
  padding: var(--section-pad) var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.coming-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.coming-head .section-title { margin-top: 10px; }

.coming-head p { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 14px 0 0; }

.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: 760px;
  margin: 0 auto;
}

.coming-card { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 340px; justify-self: center; }

.coming-card .cover { position: relative; box-shadow: none; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgb(var(--bg-rgb) / 0.8);
  color: var(--rose-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
}

.coming-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  color: var(--ink-bright);
}

.coming-card p { font-size: 14px; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.6; }

/* ---------- Contact & footer ---------- */

.contact {
  padding: var(--section-pad) var(--gutter);
  background: rgba(236, 228, 218, 0.03);
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.contact-inner > p { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 0; max-width: 44ch; }

.contact .signup-status { text-align: center; }

.contact .social-links { justify-content: center; margin-top: 10px; }

.site-footer {
  padding: 28px var(--gutter);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-top: 1px solid rgba(236, 228, 218, 0.08);
  position: relative;
  z-index: 1;
}
