/* Scarybooks — dark, bookish theme */
:root {
  --color-background: #120e10;
  --color-surface: #1b1518;
  --color-surface-2: #241c20;
  --color-ink: #eee6da;
  --color-muted: #b3a797;
  --color-accent: #e4776b;      /* accent text, 6:1 on background */
  --color-action: #a8322c;      /* button fill, ink text 6:1 */
  --color-action-hover: #bd3a33;
  --color-line: rgba(238, 230, 218, 0.13);
  --color-destructive: #f08a7e;
  --cover-1: #6e1f1c;
  --cover-2: #2c2a3b;
  --cover-3: #3a2a1d;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-control: 6px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--color-background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .88 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--color-accent); font-weight: 500; }
.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--color-accent);
  margin: 0 0 12px;
}
.muted { color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(18, 14, 16, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em;
}
.wordmark span { color: var(--color-accent); font-style: italic; font-weight: 500; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 30px); font-family: var(--font-display); font-style: italic; font-size: 18px; }
.site-nav a { text-decoration: none; color: var(--color-muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  padding: 12px 26px; border-radius: var(--radius-control);
  background: var(--color-action); color: var(--color-ink);
  border: 1px solid var(--color-action); text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-action-hover); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-quiet {
  background: transparent; border: 1px solid var(--color-line); color: var(--color-ink);
  font-family: var(--font-body); font-size: 16px; padding: 9px 18px; border-radius: var(--radius-control); cursor: pointer;
}
.btn-quiet:hover { border-color: var(--color-muted); }
.btn-quiet:disabled { opacity: 0.6; cursor: default; }
.text-action { background: none; border: 0; padding: 0; color: var(--color-accent); font: inherit; font-size: 15px; font-style: italic; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 100px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.section-head p { margin: 8px 0 0; color: var(--color-muted); max-width: 560px; }
.section-head a { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--color-accent); }
.flourish { display: block; width: 100%; text-align: center; color: var(--color-accent); opacity: 0.55; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.6em; padding: 4px 0; }

a.buy-link {
  font-family: var(--font-body); font-size: 15px; text-decoration: none;
  padding: 6px 13px; border-radius: var(--radius-control);
  border: 1px solid var(--color-line); color: var(--color-ink); background: var(--color-surface);
}
a.buy-link:hover { border-color: var(--color-accent); }
a.buy-link.primary { background: transparent; border-color: rgba(228,119,107,0.55); }
a.buy-link.primary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* post cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card-media { aspect-ratio: 16 / 9; background: var(--color-surface); overflow: hidden; border-radius: var(--radius-lg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card h3 { font-size: 25px; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card p { margin: 0; color: var(--color-muted); font-size: 16.5px; }
.meta { font-style: italic; font-size: 15px; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.meta .pin { color: var(--color-accent); }
.card-placeholder { height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 48px; color: var(--color-surface-2); }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  font-family: var(--font-body); font-size: 16px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--color-line); background: transparent; color: var(--color-muted); cursor: pointer; text-decoration: none;
}
.chip:hover { color: var(--color-ink); border-color: var(--color-muted); }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-background); border-color: var(--color-ink); }

.page-head { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; max-width: 980px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); }
.page-head p { color: var(--color-muted); font-size: 19px; max-width: 620px; margin: 18px 0 0; }

.status { color: var(--color-muted); font-style: italic; font-size: 16px; }
.status.error { color: var(--color-destructive); }
.more { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- post page ---------- */
.post-cover { width: 100%; height: clamp(220px, 46vh, 520px); object-fit: cover; }
.post-wrap { padding: clamp(36px, 6vw, 72px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.post-head, .prose, .post-foot { width: 100%; max-width: 720px; }
.post-head h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 20px; }
.post-head .chips { margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--color-line); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.prose { font-size: 19.5px; line-height: 1.72; padding: 12px 0 8px; }
.prose h2 { font-size: 30px; margin: 2.1em 0 0.5em; }
.prose h3 { font-size: 24px; margin: 1.8em 0 0.4em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--color-accent); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--color-accent); font-style: italic; color: var(--color-muted); }
.prose img { border-radius: var(--radius-md); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose p:first-child em:only-child, .prose p:first-child i:only-child { font-size: 16px; color: var(--color-muted); display: block; }
.prose p:has(> a.buy-link) {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0; /* hides the separator dots between the buttons */
  margin: 0.4em 0 1.6em;
}
.prose a.buy-link { color: var(--color-ink); font-size: 15px; }
.post-foot { padding: 28px 0 0; border-top: 1px solid var(--color-line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.like[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); }
.related { padding-top: clamp(56px, 7vw, 96px); }

/* comments */
.comments { width: 100%; max-width: 720px; padding-top: 56px; }
.comments h2 { font-size: 30px; margin-bottom: 20px; }
.comment-form { display: grid; gap: 12px; margin-bottom: 32px; }
.comment-form textarea {
  width: 100%; min-height: 110px; resize: vertical; font: inherit; font-size: 17px;
  color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.comment-form .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.comment { padding: 18px 0; border-top: 1px solid var(--color-line); }
.comment .who { font-size: 15px; font-style: italic; display: flex; gap: 12px; flex-wrap: wrap; color: var(--color-muted); }
.comment .who strong { color: var(--color-ink); font-weight: 600; font-style: normal; }
.comment p { margin: 6px 0 8px; font-size: 17px; }
.comment .actions { display: flex; gap: 16px; }
.replies { margin-left: clamp(16px, 4vw, 40px); }
.pending { font-size: 14px; color: var(--color-accent); }

/* ---------- static pages ---------- */
.longform { max-width: 720px; font-size: 19px; }
.longform h2 { font-size: 30px; margin: 1.8em 0 0.5em; }
.longform p { margin: 0 0 1.1em; }
.longform a { color: var(--color-accent); }
.longform a.btn { color: var(--color-ink); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--color-line);
  padding: 44px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px;
  font-size: 15.5px; color: var(--color-muted);
}
.site-footer .wordmark { font-size: 22px; color: var(--color-ink); }
.site-footer p { margin: 10px 0 0; max-width: 560px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-style: italic; font-size: 17px; justify-self: end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--color-ink); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-nav .opt { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .prose { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* =========================================================
   Home page: title, fog, crows, and the animated shelf
   ========================================================= */
.home .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.home .site-header .wordmark { visibility: hidden; }

.title-hero {
  position: relative; overflow: hidden;
  min-height: min(68vh, 620px);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(90px, 12vw, 140px);
  background-color: #0b0809;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(10,7,8,0.25) 0%, rgba(10,7,8,0.7) 70%),
    linear-gradient(0deg, var(--color-background) 0%, rgba(18,14,16,0) 38%),
    url("https://static.wixstatic.com/media/f3d4da_29048dce0daa4da59d6172cf4f20c6f1~mv2.png/v1/fill/w_1900,h_1060,q_82/crows-fog.jpg");
  background-size: cover; background-position: center 40%;
}
.fog { position: absolute; inset: -10% -50%; pointer-events: none; opacity: 0.55; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 30% 14% at 20% 70%, rgba(220,214,206,0.22), transparent 70%),
    radial-gradient(ellipse 28% 12% at 55% 78%, rgba(220,214,206,0.18), transparent 70%),
    radial-gradient(ellipse 34% 16% at 85% 66%, rgba(220,214,206,0.2), transparent 70%);
  animation: drift 48s linear infinite alternate; }
.fog.two { opacity: 0.4; animation-duration: 70s; animation-direction: alternate-reverse; top: 6%; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.title-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.site-title {
  font-family: "IM Fell English", Georgia, serif; font-weight: 400;
  font-size: clamp(64px, 13vw, 168px); line-height: 0.95; letter-spacing: -0.01em;
  color: #f3ebe0; text-shadow: 0 4px 40px rgba(0,0,0,0.75);
}
.site-title span { color: var(--color-accent); font-style: italic; }
.tagline {
  font-family: "IM Fell English", Georgia, serif; font-style: italic;
  font-size: clamp(22px, 3vw, 32px); color: #e9dfd2; margin: 14px 0 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.tagline-small { margin: 16px 0 0; font-size: 15px; letter-spacing: 0.04em; color: var(--color-muted); }

/* the shelf */
.shelf-section { position: relative; z-index: 3; margin-top: clamp(-90px, -9vw, -60px); padding: 0 0 clamp(40px, 6vw, 72px); }
.shelf-heading { text-align: center; font-family: "IM Fell English", Georgia, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 30px); color: var(--color-ink); margin: 0 0 22px; }
.shelf-heading::before, .shelf-heading::after { content: ""; display: inline-block; width: 46px; height: 1px; background: var(--color-accent); opacity: 0.6; vertical-align: middle; margin: 0 14px; }
.shelf { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelf-track { display: flex; gap: clamp(22px, 3vw, 40px); width: max-content; padding: 10px 0 18px; animation: shelf var(--shelf-dur, 60s) linear infinite; }
.shelf:hover .shelf-track, .shelf:focus-within .shelf-track, .shelf.paused .shelf-track { animation-play-state: paused; }
@keyframes shelf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.shelf-book { width: 172px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.shelf-book .book { width: 172px; }
.shelf-book h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.shelf-book .by { font-style: italic; color: var(--color-muted); font-size: 15px; margin: 0; }
.shelf-book .genre { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--color-accent); margin: 0; }
.shelf-book .buy { font-size: 14.5px; color: var(--color-muted); margin: 2px 0 0; }
.shelf-book .buy a.buy-link, .shelf-book .buy a {
  background: none; border: 0; padding: 0; border-radius: 0; font-size: 14.5px;
  color: var(--color-ink); text-decoration: underline; text-decoration-color: rgba(228,119,107,0.6); text-underline-offset: 3px;
}
.shelf-book .buy a:hover { color: var(--color-accent); }
.shelf-controls { display: flex; justify-content: center; gap: 18px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.shelf-genres { text-align: center; color: var(--color-muted); font-style: italic; margin: 18px var(--gutter) 0; }
.shelf-genres a { color: var(--color-ink); text-decoration-color: rgba(228,119,107,0.6); text-underline-offset: 3px; }

/* drawn book covers (used until a cover image is added) */
.book {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden;
  background: var(--cover-1);
  box-shadow: inset 7px 0 0 rgba(0,0,0,0.28), inset 9px 0 0 rgba(255,255,255,0.06), 0 12px 26px rgba(0,0,0,0.5);
  padding: 30px 12px 14px 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.25s ease;
}
.book::after { content: ""; position: absolute; left: 20px; right: 12px; top: 22px; height: 1px; background: rgba(245,237,226,0.25); }
.shelf-book:hover .book { transform: translateY(-4px) rotate(-1deg); }
.book.c2 { background: var(--cover-2); }
.book.c3 { background: var(--cover-3); }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-title { font-family: "IM Fell English", Georgia, serif; font-size: 19px; line-height: 1.12; color: #f5ede2; }
.book-author { font-family: var(--font-display); font-style: italic; font-size: 13px; color: rgba(245,237,226,0.75); }
.book-rank { position: absolute; top: 7px; left: 20px; font-family: var(--font-display); font-style: italic; font-size: 12px; color: rgba(245,237,226,0.6); }

/* the owl band and the note */
.owl-band {
  position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter);
  background-color: #0b0809;
  background-image:
    linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0.55) 22%, rgba(18,14,16,0.55) 78%, var(--color-background) 100%),
    url("https://static.wixstatic.com/media/f3d4da_ba634dc74d9343a4bd0531256e8850ac~mv2.png/v1/fill/w_1900,h_1060,q_80/owl-trees.jpg");
  background-size: cover; background-position: center;
}
.note { max-width: 640px; margin: 0 auto; text-align: center; position: relative; }
.note h2 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 18px; }
.note h2 em { color: var(--color-accent); }
.note p { font-size: 19px; color: #ddd3c5; margin: 0 0 14px; text-shadow: 0 1px 12px rgba(0,0,0,0.8); }
.note .sig { font-family: "IM Fell English", Georgia, serif; font-style: italic; color: var(--color-accent); font-size: 24px; margin-top: 18px; }

.section-head h2.fell { font-family: "IM Fell English", Georgia, serif; font-weight: 400; }

@media (max-width: 720px) {
  .shelf-book, .shelf-book .book { width: 148px; }
  .book-title { font-size: 17px; }
  .title-hero { min-height: 62vh; background-position: 38% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .fog { animation: none; }
  .shelf { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .shelf-track { animation: none; padding-left: var(--gutter); padding-right: var(--gutter); }
  .shelf-track [data-clone] { display: none; }
  #shelf-toggle { display: none; }
}

/* ---------- contact ---------- */
.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: 16px; font-style: italic; color: var(--color-muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 17px; font-style: normal;
  color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 11px 14px;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.contact-form .row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.contact-form .row .status { margin: 0; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-thanks { font-family: "Fraunces", serif; font-style: italic; font-size: 22px; margin-top: 28px; }

/* ---------- instagram ---------- */
.site-footer .follow { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.site-footer .follow a { color: var(--color-accent); text-decoration: none; }
.site-footer .follow a span { color: var(--color-ink); }
.site-footer .follow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.follow-note { margin-top: 36px; font-style: italic; color: var(--color-muted); }
.site-nav .insta { display: inline-flex; align-items: center; gap: 6px; color: var(--color-accent); }
.site-nav .insta:hover { color: var(--color-ink); }
.site-nav .insta svg { flex: none; }
@media (max-width: 720px) {
  .site-nav .insta span { display: none; }
}
/* phone header: keep the wordmark and every menu item on one line */
@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .wordmark { font-size: 21px; }
  .site-header .site-nav { gap: 12px; font-size: 15px; }
}

/* ---------- review voices ---------- */
.voice-avatar { flex: none; width: 44px; height: 44px; display: block; }
.voice-avatar svg { width: 100%; height: 100%; display: block; }
.byline .voice-name { font-style: normal; font-family: var(--font-display); font-weight: 600; color: var(--color-ink); flex-basis: 100%; }
.card-voice { margin: 0 0 4px; font-family: var(--font-display); font-style: italic; font-size: 14px; letter-spacing: 0.02em; color: var(--color-accent); }
.card-voice.voice-owl::before { content: "\2766\00a0"; }

/* ---------- for writers ---------- */
.writers-hero { overflow: hidden; padding-top: clamp(110px, 14vw, 180px); }
.writers-hero .note { z-index: 2; }
.writers-hero h1 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(48px, 8vw, 92px); margin: 6px 0 10px; }
.writers-hero h1 em { color: var(--color-accent); }
.writers-hero .writers-sub { font-family: "IM Fell English", Georgia, serif; font-style: italic; font-size: clamp(22px, 2.6vw, 28px); color: var(--color-ink); }
@media (max-width: 520px) {
  .site-nav .opt-word { display: none; }
}
/* two-row phone header: the menu sits on its own row under the wordmark */
@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .site-header .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .home .site-header .wordmark { display: none; }
}
/* writers signup, front and center in the hero */
.writers-hero .signup-card {
  margin: 34px auto 30px; max-width: 480px; text-align: left;
  background: rgba(18, 14, 16, 0.78); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px);
}
.writers-hero .signup-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 6px; text-align: center; }
.writers-hero .signup-card .signup-lede { font-size: 17px; text-align: center; color: var(--color-muted); text-shadow: none; margin: 0; }
.writers-hero .signup-card .contact-form { margin-top: 20px; }
.writers-hero .signup-card .row { justify-content: center; }
.writers-hero .signup-card .row .btn { width: 100%; }
.writers-hero .signup-card .status { font-size: 15px; text-shadow: none; margin: 0; }
.writers-hero .signup-card .signup-fine { font-size: 14px; font-style: italic; text-align: center; color: var(--color-muted); text-shadow: none; margin: 14px 0 0; }
.writers-hero .signup-card .contact-thanks { text-align: center; color: var(--color-ink); text-shadow: none; }
.writers-hero .writers-teaser { font-size: 17px; }
.writers-hero .writers-teaser { max-width: 560px; margin: 18px auto 0; }
.writers-hero .writers-teaser strong { display: block; margin-top: 10px; font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--color-ink); }
.writers-hero .signup-card .contact-form { margin-top: 0; }
/* pull up a chair: rocking chair behind the home page note */
.home .owl-band {
  min-height: min(92vh, 860px); display: grid; align-items: center;
  background-image:
    linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0.35) 18%, rgba(18,14,16,0.35) 82%, var(--color-background) 100%),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,7,8,0.72) 0%, rgba(10,7,8,0.35) 60%, rgba(10,7,8,0) 100%),
    url("https://static.wixstatic.com/media/f3d4da_48b29d5b64474e15aff0d466f4ba3e65~mv2.png/v1/fit/w_1800,h_1800,q_85/empty-rocking-chair.jpg");
  background-size: cover; background-position: center 55%;
}
/* chair visible beside the note on wider screens */
@media (min-width: 900px) {
  .home .owl-band {
    background-image:
      linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0.2) 16%, rgba(18,14,16,0.2) 84%, var(--color-background) 100%),
      linear-gradient(90deg, rgba(10,7,8,0.88) 0%, rgba(10,7,8,0.7) 28%, rgba(10,7,8,0.15) 46%, rgba(10,7,8,0) 60%),
      url("https://static.wixstatic.com/media/f3d4da_48b29d5b64474e15aff0d466f4ba3e65~mv2.png/v1/fit/w_1800,h_1800,q_85/empty-rocking-chair.jpg");
  }
  .home .owl-band .note { margin: 0 auto 0 clamp(24px, 6vw, 96px); max-width: min(440px, 34vw); text-align: left; }
}

/* ---------- candle ratings ---------- */
.candles { display: inline-flex; gap: 3px; vertical-align: middle; }
.candle svg { width: 13px; height: 21px; display: block; overflow: visible; }
.candle .wax { fill: #e9dcc6; }
.candle .wick { fill: #3a2a1d; }
.candle .flame { fill: #f4b45e; filter: drop-shadow(0 0 3px rgba(244, 180, 94, 0.75)); }
.candle.half .flame { fill: #b9864a; filter: none; opacity: 0.7; }
.candle.half .wax { fill: #b9ad9a; }
.candle.out .flame { fill: none; stroke: #5a4d45; stroke-width: 1; filter: none; }
.candle.out .wax { fill: #3d332e; }
.ratings { width: 100%; max-width: 720px; padding: 8px 0 28px; }
.ratings h2 { font-size: 30px; margin: 0 0 4px; }
.ratings-key { font-style: italic; color: var(--color-muted); font-size: 16px; margin: 0 0 20px; }
.rating-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rating-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 18px 20px; }
.rating-card h3 { font-size: 21px; margin: 0; }
.rating-card .by { margin: 2px 0 12px; font-style: italic; color: var(--color-muted); font-size: 15px; }
.rating-overall, .rating-row { display: grid; grid-template-columns: 96px auto 1fr; align-items: center; gap: 10px; }
.rating-overall { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--color-line); }
.rating-overall .rating-label { font-family: var(--font-display); font-weight: 600; }
.rating-overall .candle svg { width: 15px; height: 24px; }
.rating-row { padding: 3px 0; }
.rating-label { font-size: 15px; color: var(--color-muted); }
.rating-overall .rating-label, .rating-overall .score { color: var(--color-ink); }
.rating-card .score { font-size: 14px; color: var(--color-muted); justify-self: end; font-variant-numeric: tabular-nums; }
.shelf-rating { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.shelf-rating .candle svg { width: 10px; height: 16px; }
.shelf-rating .score { font-size: 13px; color: var(--color-muted); }

/* ---------- rating method note (All reviews) ---------- */
.page-head .rating-method { margin-top: 18px; max-width: 640px; font-size: 15px; color: var(--color-muted); }
.page-head .rating-method p { font-size: 15px; margin: 0; max-width: none; }
.rating-method-lede { display: flex; gap: 10px; align-items: flex-start; font-style: italic; }
.rating-method-lede strong { font-style: normal; font-weight: 600; color: var(--color-ink); }
.method-candles { flex: none; padding-top: 1px; }
.method-candles .candle svg { width: 9px; height: 15px; }
.rating-method details { margin-top: 8px; }
.rating-method summary { cursor: pointer; color: var(--color-accent); font-family: var(--font-display); font-style: italic; width: fit-content; }
.rating-method summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.rating-method dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; margin: 12px 0 10px; }
.rating-method dt { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.rating-method dd { margin: 0; }
.page-head .rating-method details p { font-style: italic; }
@media (max-width: 520px) {
  .rating-method dl { grid-template-columns: 1fr; gap: 2px; }
  .rating-method dd { margin-bottom: 8px; }
}
.rating-card.overall-only .rating-overall { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* ---------- events hero: the house with the lamppost ---------- */
.writers-hero {
  background-image:
    linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0.45) 14%, rgba(18,14,16,0.55) 60%, var(--color-background) 100%),
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(10,7,8,0.55) 0%, rgba(10,7,8,0) 100%),
    url("https://static.wixstatic.com/media/f3d4da_d5cbffaac24b4520b6d7b073fe7aff17~mv2.png/v1/fit/w_1800,h_2700,q_85/house-lamppost.jpg");
  background-size: cover; background-position: center 45%;
}
/* events hero, wide screens: words and form on the left, the house on the right */
@media (min-width: 900px) {
  .writers-hero {
    display: flex; align-items: center;
    background-color: var(--color-background);
    background-image:
      linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0) 12%, rgba(18,14,16,0) 88%, var(--color-background) 100%),
      linear-gradient(90deg, var(--color-background) 0%, var(--color-background) 36%, rgba(18,14,16,0.6) 46%, rgba(18,14,16,0.1) 58%, rgba(18,14,16,0) 70%),
      url("https://static.wixstatic.com/media/f3d4da_d5cbffaac24b4520b6d7b073fe7aff17~mv2.png/v1/fit/w_1800,h_2700,q_85/house-lamppost.jpg");
    background-size: auto, auto, auto 100%;
    background-repeat: no-repeat;
    background-position: center, center, right 0 center;
  }
  .writers-hero .note { margin: 0 auto 0 clamp(24px, 6vw, 96px); max-width: 500px; text-align: left; }
  .writers-hero .writers-teaser { margin-left: 0; }
  .writers-hero .signup-card { margin-left: 0; }
}
@media (max-width: 899px) {
  .writers-hero {
    background-image:
      linear-gradient(180deg, var(--color-background) 0%, rgba(18,14,16,0.3) 12%, rgba(18,14,16,0.45) 55%, var(--color-background) 100%),
      url("https://static.wixstatic.com/media/f3d4da_d5cbffaac24b4520b6d7b073fe7aff17~mv2.png/v1/fit/w_1800,h_2700,q_85/house-lamppost.jpg");
    background-position: center 30%;
  }
}

/* ---------- home: static picks row, theme rotation, favorites shelf ---------- */
.shelf.static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.shelf.static .shelf-track { animation: none; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fav-section { margin-top: 0; padding-top: clamp(40px, 6vw, 80px); }

.themes { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(20px, 3vw, 40px); }
.themes .status { text-align: center; }
.theme-stage { display: grid; max-width: 1120px; margin: 0 auto; }
.theme-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 48px); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.theme-slide.is-active { opacity: 1; visibility: visible; }
.theme-media { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); aspect-ratio: 16 / 9; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.theme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.theme-slide:hover .theme-media img { transform: scale(1.03); }
.theme-kicker { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--color-accent); }
.theme-copy h3 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.theme-copy h3 a { text-decoration: none; }
.theme-copy h3 a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.theme-excerpt { margin: 12px 0 14px; color: var(--color-muted); font-size: 17px; }
.theme-books { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.theme-books li { font-family: var(--font-display); font-size: 17px; line-height: 1.35; padding-left: 18px; position: relative; }
.theme-books li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 1px; background: var(--color-accent); }
.theme-books li span { font-family: var(--font-body); font-style: italic; color: var(--color-muted); font-size: 15.5px; }
.text-link { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--color-accent); text-underline-offset: 4px; }
.theme-controls { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(22px, 3vw, 32px); }
.theme-controls[hidden] { display: none; }
.theme-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-line); background: transparent;
  color: var(--color-ink); font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.theme-arrow:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-dots { display: flex; gap: 6px; }
.theme-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.theme-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--color-muted); transition: background 0.2s ease, border-color 0.2s ease; }
.theme-dot[aria-current="true"]::before { background: var(--color-accent); border-color: var(--color-accent); }
.theme-controls .text-action { margin-left: 6px; }
@media (max-width: 760px) {
  .theme-slide { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-slide { transition: none; }
}
@keyframes shelf-loop { from { transform: translateX(0); } to { transform: translateX(var(--shelf-shift, -50%)); } }
#fav-track { animation-name: shelf-loop; }
@media (prefers-reduced-motion: reduce) {
  #fav-track { animation: none; }
}

/* book covers inside a post */
.prose img.book-cover { float: right; width: 150px; height: auto; margin: 6px 0 16px 26px; border-radius: 3px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.prose h2 { clear: both; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 520px) {
  .prose img.book-cover { width: 112px; margin-left: 18px; }
}
.prose h2 a { color: inherit; text-decoration-color: rgba(228,119,107,0.6); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.prose h2 a:hover { color: var(--color-accent); }
/* book titles in post headings and theme lists are italic, in the heading's own color */
.prose h2 em, .prose h3 em { color: inherit; font-weight: inherit; }
.theme-books li em { font-style: italic; }

/* ---------- book page ---------- */
.book-page {
  max-width: 1000px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter);
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.book-page > .status { grid-column: 1 / -1; }
.book-page-cover .book { width: 100%; padding: 0; }
.book-page h1 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.book-page h1 em { color: var(--color-ink); font-weight: 400; }
.book-by { font-style: italic; color: var(--color-muted); font-size: 19px; margin: 8px 0 14px; }
.book-blurb { font-size: 19px; line-height: 1.7; margin: 16px 0 12px; }
.book-readif { margin: 0 0 18px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.book-links { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--color-line); color: var(--color-muted); font-style: italic; }
.book-links p { margin: 0 0 6px; }
.book-links a { color: var(--color-accent); text-underline-offset: 3px; }
.book-back { margin-top: 26px; font-family: var(--font-display); font-style: italic; }
.book-back a { color: var(--color-muted); text-decoration: none; }
.book-back a:hover { color: var(--color-ink); }
a.book { display: flex; text-decoration: none; }
.theme-books li a { color: inherit; text-decoration: none; }
.theme-books li a:hover { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 18px); }
@media (max-width: 640px) {
  .book-page { grid-template-columns: minmax(0, 1fr); }
  .book-page-cover { max-width: 190px; }
}

/* ---------- reading lists by theme: card grid ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); max-width: 1180px; margin: 0 auto; }
.theme-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-card[hidden] { display: none; }
.theme-card:hover, .theme-card:focus-visible { transform: translateY(-3px); border-color: rgba(228, 119, 107, 0.55); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); }
.theme-card-media { aspect-ratio: 16 / 9; background: var(--color-surface-2); overflow: hidden; }
.theme-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.theme-card:hover .theme-card-media img { transform: scale(1.04); }
.theme-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.theme-card h3 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.2vw, 29px); line-height: 1.1; }
.theme-card p { margin: 0; color: var(--color-muted); font-size: 16px; line-height: 1.5; }
.theme-card-cta { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--color-accent); }
.theme-more { display: flex; justify-content: center; margin-top: clamp(22px, 3vw, 34px); }
@media (max-width: 960px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .theme-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .theme-card, .theme-card-media img { transition: none; } }