/* Nancy Wolf author site. Palette drawn from the WolfGirl logo. */
:root {
  --paper: #f7f6f3;
  --paper-2: #eef1f3;
  --ink: #1f2a33;
  --slate: #2e4a5c;
  --steel: #5b7a8c;
  --mist: #c9d6de;
  --sand: #e4d3c2;
  --blossom: #a8325a;      /* accent from the Dear G-d hardcover (palette B, 28 Nov 2026) */
  --blossom-deep: #8a2549;
  --blossom-light: #e8c3cf;
  --muted: #4a5864;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
p { margin: 0 0 1.1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 246, 243, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 74, 92, .12);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font: 600 1.5rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 3vw, 32px); margin: 0; padding: 0; }
.nav a:not(.brand) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; padding: 4px 0; }
.nav a:not(.brand)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--slate); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:not(.brand):hover::after, .nav a:not(.brand):focus-visible::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0; }
.wash { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.wash-1 { width: 520px; height: 520px; background: var(--mist); top: -140px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.wash-2 { width: 420px; height: 420px; background: var(--sand); bottom: -160px; right: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--slate); margin-bottom: 1em; }
.lede { font: italic 500 clamp(1.4rem, 3vw, 1.9rem)/1.35 var(--serif); color: var(--muted); max-width: 26ch; }
.hero-text { animation: rise .9s ease-out both; }
.hero-art { animation: rise 1.1s .15s ease-out both; }
.hero-art img { width: min(420px, 100%); margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(31, 42, 51, .18)); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--slate); color: #fff; box-shadow: 0 8px 20px rgba(46, 74, 92, .25); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--slate); color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; transform: translateY(-2px); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }

/* Book */
.book { background: var(--ink); color: #eef1f3; padding: clamp(64px, 10vw, 120px) 0; }
.book .eyebrow { color: var(--mist); }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.subtitle { display: block; font-style: italic; font-weight: 500; font-size: .55em; color: var(--mist); margin-top: .35em; line-height: 1.3; }
.award { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; padding: 18px 20px; border: 1px solid rgba(232, 195, 207, .45); border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--blossom-light); }
.award p { margin: 0; color: #eef1f3; line-height: 1.5; }
.award svg { flex: none; margin-top: 2px; }

.placeholder { border: 2px dashed currentColor; border-radius: 12px; display: grid; place-items: center; text-align: center; opacity: .8; }
.cover-ph { aspect-ratio: 2 / 3; max-width: 340px; margin-inline: auto; font: italic 500 1.4rem/1.3 var(--serif); color: var(--mist); background: rgba(255, 255, 255, .03); }
.placeholder-text { font-style: italic; opacity: .85; }

/* About */
.about { padding: clamp(64px, 10vw, 120px) 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.about p { color: var(--ink); }

/* Contact */
.contact { padding: clamp(64px, 10vw, 110px) 0; text-align: center; }
.contact .narrow { margin-inline: auto; }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); padding: 28px 0; font-size: .95rem; text-align: center; }
.site-footer p { margin: .2em 0; }

/* Scroll reveal (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 70vw); }
}
@media (max-width: 480px) {
  .brand { font-size: 1.25rem; }
  .nav ul { gap: 14px; }
  .nav a:not(.brand) { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Book facts */
.facts { display: grid; gap: 6px; margin: 8px 0 4px; padding: 0; font-size: 1rem; }
.facts div { display: flex; gap: 10px; flex-wrap: wrap; }
.facts dt { font-weight: 600; color: var(--mist); min-width: 6.5em; }
.facts dd { margin: 0; }
.book .btn-primary { background: var(--blossom); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.book .btn-primary:hover { background: var(--blossom-deep); }

/* Blog */
.blog-teaser { padding: clamp(56px, 8vw, 96px) 0; text-align: center; background: var(--paper-2); }
.blog-teaser .narrow { margin-inline: auto; }
.page-head { padding: clamp(48px, 8vw, 90px) 0 24px; }
.posts { list-style: none; margin: 0 0 80px; padding: 0; display: grid; gap: 20px; }
.post-card { background: #fff; border: 1px solid rgba(46, 74, 92, .12); border-radius: 16px; padding: 24px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 42, 51, .08); }
.post-card h2 { font-size: 1.8rem; margin-bottom: .2em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-meta { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.post { padding: clamp(48px, 8vw, 90px) 0 80px; }
.post h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.back { display: inline-block; margin-top: 32px; font-weight: 600; }
.cover-img { width: min(340px, 100%); margin-inline: auto; border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .4s ease, box-shadow .4s ease; }
.cover-img:hover { transform: translateY(-4px); box-shadow: 0 40px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }

/* Palette B accents */
.wash-2 { background: #efd9df; }
.btn-ghost:hover { background: var(--blossom); border-color: var(--blossom); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--blossom); vertical-align: middle; margin-right: 10px; }
.contact .eyebrow::before, .blog-teaser .eyebrow::before { display: none; }
.post-card h2 a:hover, .back:hover { color: var(--blossom); }

/* Blog post body */
.post h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-top: 1.6em; }
.post ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.post li { margin-bottom: .4em; }
.post li::marker { color: var(--blossom); }
.post-cta { margin-top: 2em; }

/* Two covers: paperback (now) + hardcover (coming soon) */
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: end; max-width: 480px; margin-inline: auto; }
.cover { margin: 0; position: relative; display: grid; gap: 14px; }
.covers .cover-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.cover figcaption { text-align: center; font-size: .95rem; line-height: 1.35; color: var(--mist); }
.cover figcaption strong { display: block; color: #eef1f3; font-weight: 600; }
.badge { position: absolute; top: -12px; right: -10px; z-index: 1; background: var(--blossom); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
@media (max-width: 860px) { .covers { max-width: 420px; } }

/* Contact */
.contact .actions { justify-content: center; }
.contact .btn-primary { background: var(--blossom); box-shadow: 0 8px 20px rgba(168, 50, 90, .25); }
.contact .btn-primary:hover { background: var(--blossom-deep); }
.contact-email { margin-top: 18px; font-weight: 600; }
