/* Starlit Grove Press — dark starry-night theme */
:root {
  --night: #070b16;
  --night-2: #0b1122;
  --card: #101828;
  --card-2: #0d1425;
  --ink: #f2ecdd;
  --muted: #a9b1c7;
  --gold: #e0aa5e;
  --gold-soft: #f0c98a;
  --gold-deep: #b77934;
  --line: rgba(240, 201, 138, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #17130e;
  padding: 10px 16px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em;
}
.wordmark-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.wordmark em { font-style: normal; color: var(--gold-soft); }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  text-decoration: none; color: var(--muted);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-soft); border-color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(64, 86, 160, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(183, 121, 52, 0.14), transparent 60%),
    var(--night);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars-a {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 32% 68%, #fff, transparent),
    radial-gradient(2px 2px at 48% 12%, #fff, transparent),
    radial-gradient(1px 1px at 64% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 74%, #fff, transparent),
    radial-gradient(1px 1px at 88% 18%, #fff, transparent),
    radial-gradient(2px 2px at 22% 82%, #fff, transparent),
    radial-gradient(1px 1px at 42% 48%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 88%, #fff, transparent),
    radial-gradient(1px 1px at 8% 52%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 94% 58%, #fff, transparent),
    radial-gradient(1px 1px at 70% 8%, #fff, transparent);
  opacity: 0.75;
}
.stars-b {
  background-image:
    radial-gradient(2.5px 2.5px at 18% 32%, var(--gold-soft), transparent),
    radial-gradient(2px 2px at 54% 22%, var(--gold-soft), transparent),
    radial-gradient(2.5px 2.5px at 82% 44%, var(--gold-soft), transparent),
    radial-gradient(2px 2px at 36% 78%, var(--gold-soft), transparent),
    radial-gradient(2px 2px at 68% 66%, var(--gold-soft), transparent);
  opacity: 0.8;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars-b { animation: none; }
}

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px; color: var(--gold);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.kicker-rule { width: 44px; height: 2px; background: currentColor; }
.hero h1 {
  margin-bottom: 24px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  letter-spacing: -0.03em; line-height: 0.98;
  text-wrap: balance;
}
.lede {
  max-width: 640px; margin-bottom: 38px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5; color: var(--muted);
}
.lede strong { color: var(--ink); font-weight: 600; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid var(--gold); border-radius: 999px;
  text-decoration: none; font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.button.primary { background: var(--gold); color: #17130e; }
.button.primary:hover, .button.primary:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: rgba(242, 236, 221, 0.4); }
.button.ghost:hover, .button.ghost:focus-visible { border-color: var(--gold); color: var(--gold-soft); }
.button.ghost-light { background: transparent; color: var(--ink); border-color: var(--gold-soft); }
.button.ghost-light:hover, .button.ghost-light:focus-visible { background: var(--gold); color: #17130e; }
.button.small { min-height: 42px; padding: 10px 18px; font-size: 0.72rem; }
.button.big { font-size: 0.95rem; padding: 16px 30px; }
.button.disabled {
  border-color: rgba(169, 177, 199, 0.35); color: var(--muted);
  cursor: default; background: transparent;
}

.hero-stats { display: flex; gap: 54px; margin: 0; }
.hero-stats > div { display: flex; flex-direction: column-reverse; }
.hero-stats dt {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero-stats dd {
  margin: 0 0 4px; font-family: var(--serif);
  font-size: 2.2rem; font-weight: 500; color: var(--gold-soft);
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--night-2); border-block: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 56px; padding-top: 26px; border-top: 1px solid var(--line);
}
.eyebrow {
  margin-bottom: 14px; color: var(--gold);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
}
h2 {
  margin-bottom: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.02em; line-height: 1;
  text-wrap: balance;
}
.section-intro { max-width: 480px; margin: 0 0 4px auto; color: var(--muted); font-size: 1.02rem; }

/* ---------- book cards ---------- */
.book-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.book-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; min-width: 0;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 170, 94, 0.45);
  box-shadow: var(--shadow);
}
.cover-frame {
  border-radius: 8px; overflow: hidden; margin-bottom: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.cover-frame img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book-series {
  margin-bottom: 8px; color: var(--gold);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.book-card h3 {
  margin-bottom: 10px; font-family: var(--serif);
  font-size: 1.55rem; font-weight: 600; line-height: 1.08;
}
.book-card h3 .subtitle { display: block; font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.book-blurb { flex: 1; margin-bottom: 16px; color: var(--muted); font-size: 0.92rem; }
.book-formats {
  margin-bottom: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--gold-soft); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.soon-inline { color: var(--muted); font-weight: 600; }
.book-card .button { align-self: flex-start; }

/* ---------- OUT teaser ---------- */
.out-teaser {
  margin-top: 64px; padding: 48px 8px 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.out-status {
  margin-bottom: 10px; color: var(--gold);
  font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.out-teaser h3 {
  margin-bottom: 10px; font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1;
}
.out-teaser p:last-child { color: var(--muted); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 70px; align-items: center; }
.portrait-frame {
  position: relative; padding: 20px 0 0 20px;
}
.portrait-frame::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 70%; height: 70%; background: var(--gold-deep); border-radius: 4px;
}
.portrait-frame img {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top;
  border-radius: 4px; filter: saturate(0.85);
}
.about-copy h2 { margin: 12px 0 26px; }
.about-copy p {
  max-width: 660px; margin-bottom: 20px;
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; color: var(--muted);
}
.signature { color: var(--gold-soft) !important; font-size: 2rem !important; font-style: italic; margin: 28px 0 0 !important; }

/* ---------- giving ---------- */
.giving { background: linear-gradient(180deg, #0a1428, #0b1122); border-block: 1px solid var(--line); }
.giving-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.giving h2 { margin-top: 12px; }
.giving-copy { padding-top: 10px; border-top: 1px solid var(--line); }
.giving-sponsor {
  margin-bottom: 18px; color: var(--gold-soft);
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.3;
}
.giving-copy p:not(.giving-sponsor) { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: 1.02rem; }

/* ---------- contact ---------- */
.contact-inner { max-width: 720px; }
.contact-inner h2 { margin: 12px 0 18px; }
.contact-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: #05080f; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-imprint {
  margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-soft);
}
.footer-meta { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.7; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 42px; }
  .section-intro { margin-left: 0; }
  .about-grid, .giving-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait-frame { width: min(460px, 100%); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(7, 11, 22, 0.98); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .header-inner { position: relative; }
  .site-header .header-inner { flex-wrap: wrap; }
  .hero { padding: 80px 0 70px; }
  .hero-stats { gap: 36px; }
  .section { padding: 76px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
