/* Layout: one centred column; each series gets a full-width band. Brides of Paradise is light,
   the Hellfire Universe is dark (.night swaps the tokens). The covers do the colour work. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Figtree"; font-style: italic; font-display: swap; font-weight: 300 900;
  src: url("fonts/figtree-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --bg: #f4f7fa;          /* page: cool off-white, sky-leaning */
  --surface: #ffffff;
  --ink: #172a48;         /* navy from the cover titles */
  --ink-2: #4b5a74;
  --line: #d8e1ea;
  --coral: #e5484f;       /* BRIDE red: large type and accents only */
  --link: #c4343c;
  --link-hover: #a82a31;
  --button: #c4343c;      /* deep enough for white text */
  --button-hover: #a82a31;
  --shadow: rgba(23, 42, 72, 0.16);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 6vw, 3.6rem);
  --measure: 64ch;
  --wrap: 72rem;
  color-scheme: light;
}

/* Hellfire Universe: same components, night tokens. On <body> or on a section. */
.night {
  --bg: #12151e;
  --surface: #171b26;
  --ink: #ece8e2;
  --ink-2: #a9a8b4;
  --line: #2b3040;
  --link: #f0676d;
  --link-hover: #ff9094;
  --shadow: rgba(0, 0, 0, 0.5);
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header & footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1.1rem; align-items: center;
}
.brand { display: grid; gap: 0.1rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark {
  margin: 0; font-family: var(--display); font-size: var(--step-2); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.01em; font-variation-settings: "SOFT" 50, "opsz" 72;
}
.tagline { font-size: var(--step--1); color: var(--ink-2); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; padding-block: 0.3rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--coral); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-block: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: var(--step--1); color: var(--ink-2);
}
.site-footer a { color: var(--ink-2); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.eyebrow { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin: 0; }
.title-word { color: var(--coral); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 0.5em; }


/* Bands */
.band { background: var(--surface); border-top: 1px solid var(--line); }
.band.night { background: var(--bg); }
.band-first { border-top: 0; }
.band .wrap { padding-block: 3rem 3.5rem; display: grid; gap: 1.75rem; }
.band-head { display: grid; gap: 0.6rem; max-width: var(--measure); }
.band-head h2 { font-size: var(--step-3); }
.hook-line { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); }
.more { font-weight: 600; margin: 0; }

/* Shelf of covers */
.shelf {
  list-style: none; margin: 0; padding: 0; align-items: start;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 42%), 1fr)); gap: 1.75rem 1.25rem;
}
.shelf a { display: grid; gap: 0.6rem; text-decoration: none; color: inherit; }
.shelf img {
  width: 100%; border-radius: 3px;
  box-shadow: 0 1px 2px var(--shadow), 0 8px 22px var(--shadow);
  transition: transform 0.2s ease;
}
.shelf a:hover img { transform: translateY(-3px); }
.cap { display: grid; gap: 0.1rem; min-height: 3.2em; align-content: start; }
.cap-label { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.cap-title { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }

/* Series header (romance, urban fantasy) */
.series-head .wrap { padding-block: 3rem 2.5rem; display: grid; gap: 1rem; }
.series-head h1 { font-size: var(--step-4); }
.series-head .prose { color: var(--ink-2); }
.order { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order a {
  display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500;
}
.order a:hover { border-color: var(--coral); color: var(--ink); }
.order .n { color: var(--ink-2); margin-right: 0.35em; }

/* Book entries */
.book { background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.book:nth-of-type(even) { background: var(--bg); }
.book .wrap {
  padding-block: 3rem; display: grid; gap: 2rem 3rem;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start;
}
.book-cover img { width: 100%; border-radius: 3px; box-shadow: 0 2px 4px var(--shadow), 0 14px 30px var(--shadow); }
.book-text { display: grid; gap: 0.9rem; min-width: 0; }
.book h2 { font-size: var(--step-3); }
.book h2 a { color: inherit; text-decoration: none; }
.book h2 a:hover { text-decoration: underline; }
.subtitle { margin: -0.4rem 0 0; font-family: var(--display); font-style: italic; color: var(--ink-2); font-size: var(--step-1); }
.hook { margin: 0.4rem 0 0; font-weight: 700; font-size: var(--step-1); line-height: 1.4; max-width: var(--measure); }
.book .prose p:last-child { margin-bottom: 0; }
.content-line, .series-note, .audio, .ku, .extra { font-size: var(--step--1); color: var(--ink-2); }
.series-note { font-style: italic; }
.audio, .extra { margin: 0; }
.review { margin: 0.2rem 0 0; max-width: var(--measure); }
.review blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.4; }
.review figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.4rem; }
.button {
  display: inline-block; padding: 0.7rem 1.25rem; border-radius: 4px; background: var(--button); color: #fff;
  font-weight: 600; text-decoration: none; letter-spacing: 0.01em;
}
.button:hover { background: var(--button-hover); color: #fff; }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--bg); color: var(--ink); border-color: var(--ink-2); }
.free-note { font-weight: 600; margin: 0; }

/* Plain pages (about, privacy, 404) */
.page .wrap { padding-block: 3rem 4rem; display: grid; gap: 1.5rem; }
.page h1 { font-size: var(--step-4); }
.about { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.about img { border-radius: 50%; width: 100%; max-width: 14rem; }

@media (max-width: 640px) {
  .book .wrap, .about { grid-template-columns: 1fr; }
  .book .wrap { padding-block: 2.25rem; }
  .book-cover { max-width: 12rem; }
  .about img { max-width: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
