:root {
  --bg: #f8f2f5;
  --surface: #ffffff;
  --surface-tint: #f3e9ee;
  --ink: #2a2333;
  --ink-soft: #5c5468;
  --ink-faint: #8a8194;
  --accent: #8a4f68;
  --accent-strong: #6e3a52;
  --accent-2: #3f7d8f;
  --accent-2-strong: #2c5f6e;
  --border: rgba(42, 35, 51, 0.13);
  --hero-top: #241b34;
  --hero-mid: #4a3357;
  --hero-bottom: #a9647a;
  --hero-text: #f7ecf1;
  --hero-text-soft: rgba(247, 236, 241, 0.75);
  --shadow: 0 20px 50px -25px rgba(42, 35, 51, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16121d;
    --surface: #201a29;
    --surface-tint: #241d2e;
    --ink: #f1ecf0;
    --ink-soft: #c7bfcf;
    --ink-faint: #8f8698;
    --accent: #e0a0b6;
    --accent-strong: #eab7c8;
    --accent-2: #8fd1e0;
    --accent-2-strong: #aadfe9;
    --border: rgba(241, 236, 240, 0.14);
    --hero-top: #0e0b16;
    --hero-mid: #241b34;
    --hero-bottom: #5c3d52;
    --hero-text: #f7ecf1;
    --hero-text-soft: rgba(247, 236, 241, 0.72);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; text-wrap: balance; margin: 0; }

.eyebrow {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink);
  font-size: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

@media (max-width: 680px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(175deg, var(--hero-top) 0%, var(--hero-mid) 52%, var(--hero-bottom) 100%);
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 44% 24%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 63% 12%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 78% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 90% 9%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 8% 35%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 33%, rgba(255,255,255,0.45), transparent);
  background-repeat: no-repeat;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero .eyebrow { color: var(--hero-text-soft); }
.hero h1 { font-size: clamp(2.8rem, 6vw + 1rem, 5.2rem); letter-spacing: 0.01em; line-height: 1; }
.hero .pen-signature {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--hero-text-soft);
  margin-top: 1rem;
}
.hero .epigraph {
  max-width: 34ch;
  margin: 2.6rem auto 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--hero-text-soft);
  line-height: 1.6;
}
.hero .epigraph::before, .hero .epigraph::after { content: "\201C"; }
.hero .epigraph::after { content: "\201D"; }

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(175deg, var(--hero-top) 0%, var(--hero-bottom) 130%);
  color: var(--hero-text);
  text-align: center;
}
.page-header .eyebrow { color: var(--hero-text-soft); }
.page-header h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); color: var(--hero-text); }
.page-header p.lede {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--hero-text-soft);
  font-size: 1.05rem;
}

/* ---------- SECTIONS ---------- */
section.block { padding: 5rem 0; }
section.block + section.block { border-top: 1px solid var(--border); }
section.block.tight { padding: 3.5rem 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.section-head { margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem); color: var(--ink); }

.bio p { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.bio strong { color: var(--ink); font-weight: 600; }

/* ---------- BOOK CARDS ---------- */
.book { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 2.75rem; align-items: start; }
@media (max-width: 640px) {
  .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 220px; margin: 0 auto; }
}
.cover { width: 100%; border-radius: 3px; box-shadow: var(--shadow); display: block; }
.cover-wrap { position: sticky; top: 6rem; }
@media (max-width: 640px) { .cover-wrap { position: static; } }

.book .kicker { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem; }
.book h3 { font-size: clamp(1.5rem, 1.8vw + 1rem, 2rem); color: var(--ink); margin-bottom: 0.3rem; }
.book .subtitle { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--accent); font-size: 1.15rem; margin-bottom: 1.4rem; }
.book.book-2 .subtitle { color: var(--accent-2); }
.book .synopsis { color: var(--ink-soft); max-width: 58ch; }

blockquote.pull {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.55;
}
.book.book-2 blockquote.pull { border-left-color: var(--accent-2); }
blockquote.pull cite { display: block; margin-top: 0.6rem; font-family: "Newsreader", serif; font-style: normal; font-size: 0.85rem; color: var(--ink-faint); }

.verse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.verse-card { background: var(--surface-tint); border-radius: 4px; padding: 1.3rem 1.4rem; }
.verse-card p { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0.7rem; }
.verse-card cite { font-family: "Newsreader", serif; font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }

.meta-line { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1.2rem; letter-spacing: 0.02em; }

.buy-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 2px;
  background: var(--accent); color: #fdf7f9;
  text-decoration: none; font-family: "Newsreader", serif; font-size: 0.95rem;
  letter-spacing: 0.02em; border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.book.book-2 .btn { background: var(--accent-2); }
.book.book-2 .btn:hover { background: var(--accent-2-strong); }
.book.book-2 .btn.btn-ghost { background: transparent; color: var(--ink-soft); }
.book.book-2 .btn.btn-ghost:hover { background: var(--surface-tint); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-tint); transform: none; color: var(--ink); }
.btn-outline-light { background: transparent; border: 1px solid rgba(247,236,241,0.5); color: var(--hero-text); }
.btn-outline-light:hover { background: rgba(247,236,241,0.12); transform: translateY(-1px); }
.btn-solid-light { background: var(--hero-text); color: var(--hero-top); }
.btn-solid-light:hover { background: #ffffff; transform: translateY(-1px); }

/* ---------- HOME: teaser grids ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.4rem; text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.teaser-card img { width: 72px; border-radius: 2px; box-shadow: var(--shadow); flex-shrink: 0; }
.teaser-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.3rem; }
.teaser-card p.subtitle { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--accent); font-size: 0.95rem; margin-bottom: 0.5rem; }
.teaser-card p.excerpt { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.cta-band {
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ---------- FUTURE WORK ---------- */
.future { background: var(--surface-tint); border-radius: 4px; padding: 2.4rem 2rem; text-align: center; }
.future h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.future p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }

/* ---------- BLOG: listing ---------- */
.blog-list { display: flex; flex-direction: column; }
.blog-card {
  display: block; padding: 2.2rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.blog-list .blog-card:first-child { padding-top: 0; }
.blog-card .post-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.7rem;
}
.blog-card .post-tag { color: var(--accent); }
.blog-card h2 {
  font-size: 1.6rem; color: var(--ink); margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.blog-card:hover h2 { color: var(--accent); }
.blog-card .excerpt { color: var(--ink-soft); max-width: 62ch; margin-bottom: 0.6rem; }
.blog-card .read-more { font-size: 0.9rem; color: var(--accent); }

/* ---------- BLOG: single post ---------- */
.post-meta-single {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1rem; justify-content: center;
}
.post-meta-single .post-tag { color: var(--accent); }
.poem-body {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 auto;
}
.poem-body .stanza { margin-bottom: 2rem; }
.poem-body .stanza:last-child { margin-bottom: 0; }
.poem-body .refrain { color: var(--ink-soft); font-style: italic; }
.back-to-blog { display: inline-block; margin-top: 3rem; font-size: 0.95rem; }

.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface-tint);
  border-radius: 6px;
  color: var(--ink-soft);
}
.empty-state .eyebrow { justify-content: center; display: flex; }

/* ---------- FOOTER ---------- */
footer.site-footer { padding: 3.5rem 0 3rem; text-align: center; border-top: 1px solid var(--border); }
footer.site-footer .signature { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.3rem; color: var(--ink); margin-bottom: 1.1rem; }
.contact-row { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.6rem; font-size: 0.95rem; }
.contact-row a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.contact-row a:hover { color: var(--accent); border-color: var(--accent); }
footer.site-footer .copyright { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- CONTACT PAGE ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 2.5rem; text-align: center;
}
.contact-card .big-link { display: block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.4rem; margin: 0.6rem 0; }
