/* =========================================================
   Gideon Paull — Author Site
   Design language: Cormorant Garamond + Inter, warm paper tones
   ========================================================= */

:root {
  --bg:           #f8f4ee;
  --bg-alt:       #f0ebe1;
  --bg-dark:      #1a1714;
  --bg-mid:       #2a2520;
  --ink:          #1c1914;
  --ink-soft:     #4a443c;
  --ink-muted:    #8a827a;
  --stone:        #b8a98f;
  --warm:         #e6dece;
  --border:       #ddd6c8;

  /* Book accent colours */
  --accent-held:  #8a3324;   /* The Held Breath — deep red */
  --accent-soul:  #b08a4d;   /* The Soul Framework — gold */
  --accent-holl:  #2a5c4a;   /* Holloway — forest teal */
  --accent:       var(--accent-held);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1160px;
  --max-narrow: 760px;
  --ease: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 300;
  padding: 8px 14px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; border-radius: 2px;
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent-soul); outline-offset: 2px; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(248, 244, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.nav-logo span { color: var(--ink-muted); font-weight: 400; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links .nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.nav-links .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
@media (max-width: 700px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0; padding: 1rem 1.5rem 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta { border: none; padding-left: 0; text-transform: none; font-size: 1rem; letter-spacing: 0; }
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--max-narrow); }
.section { padding: 100px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section--dark { background: var(--bg-dark); color: var(--bg); }
.section--alt  { background: var(--bg-alt); }
.section--warm { background: var(--warm); }
.section--mid  { background: var(--bg-mid); color: var(--bg); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 14px;
}
.eyebrow.light { color: var(--stone); }
.eyebrow.accent-held  { color: var(--accent-held); }
.eyebrow.accent-soul  { color: var(--accent-soul); }
.eyebrow.accent-holl  { color: #5a9e82; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 28px;
}
.section-title.light { color: var(--bg); }
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.lead.light { color: var(--stone); }
p { margin-bottom: 1.25rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--bg-mid); }
.btn-outline { background: transparent; border: 1px solid currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline.light { color: var(--bg); border-color: rgba(255,255,255,0.65); }
.btn-outline.light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-accent-held { background: var(--accent-held); color: var(--bg); }
.btn-accent-held:hover { background: #a23d2b; }
.btn-accent-soul { background: var(--accent-soul); color: var(--bg); }
.btn-accent-soul:hover { background: #8a6a39; }
.btn-accent-holl { background: var(--accent-holl); color: var(--bg); }
.btn-accent-holl:hover { background: #1e4535; }

/* =========================================================
   HERO — home page
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%),
              url('/images/hero.jpg') center/cover no-repeat;
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 740px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0;
  margin-bottom: 20px;
  color: var(--bg);
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--stone);
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--stone);
  opacity: 0.6;
}

/* =========================================================
   BOOKS GRID — home page preview
   ========================================================= */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.book-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.2); }
.book-card-accent-held { border-top: 3px solid var(--accent-held); }
.book-card-accent-soul { border-top: 3px solid var(--accent-soul); }
.book-card-accent-holl { border-top: 3px solid var(--accent-holl); }
.book-card-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.book-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card:hover .book-card-cover img { transform: scale(1.04); }
.book-card-body { padding: 1.75rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.book-card-genre { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.book-card-title { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; margin-bottom: 6px; color: var(--ink); }
.book-card-subtitle { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-muted); margin-bottom: 1rem; }
.book-card-desc { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.5rem; flex: 1; }
.book-card-link { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-top: auto; }
.book-card-link.held  { color: var(--accent-held); }
.book-card-link.soul  { color: var(--accent-soul); }
.book-card-link.holl  { color: var(--accent-holl); }
.book-card-link::after { content: ' →'; }

@media (max-width: 860px) { .books-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull-quote {
  padding: 80px 24px;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  max-width: 860px; margin: 0 auto;
}
.pull-quote cite {
  display: block; margin-top: 20px;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-style: normal; color: var(--ink-muted);
}
.pull-quote.dark blockquote { color: var(--bg); }
.pull-quote.dark cite { color: var(--stone); }

/* =========================================================
   AUTHOR BIO — home teaser + full about page
   ========================================================= */
.author-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem; align-items: start;
}
.author-photo {
  position: sticky; top: 100px;
}
.author-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.35);
}
.author-text p { font-size: 1.05rem; line-height: 1.75; }
.author-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.5rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 820px) {
  .author-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .author-photo { position: static; max-width: 260px; }
  .author-text p:first-of-type::first-letter { display: none; }
}

/* =========================================================
   BOOK DETAIL PAGE
   ========================================================= */
.book-hero {
  padding: 140px 24px 80px;
  background: var(--bg-dark);
  color: var(--bg);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.book-hero-cover {
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.7);
  border-radius: 3px;
  overflow: hidden;
}
.book-hero-cover img { width: 100%; height: auto; display: block; }
.book-hero-meta { }
.book-hero-genre { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.book-hero h1 { color: var(--bg); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 8px; }
.book-hero-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--stone); margin-bottom: 2rem; }
.book-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.book-status { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.5rem; }
.book-status.coming { border-color: var(--accent-holl); color: #5a9e82; }

@media (max-width: 760px) {
  .book-hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 120px 24px 60px; text-align: center; }
  .book-hero-cover { max-width: 200px; margin: 0 auto; }
  .book-hero-actions { justify-content: center; }
}

/* Synopsis */
.synopsis-body { columns: 2; column-gap: 3rem; font-size: 1.05rem; }
.synopsis-body p { break-inside: avoid; margin-bottom: 1.25rem; color: var(--ink-soft); }
@media (max-width: 640px) { .synopsis-body { columns: 1; } }

/* Reviews / praise grid */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.praise-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}
.praise-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}
.praise-card cite {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

/* "Also by" strip */
.alsoby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.alsoby-card {
  display: flex; flex-direction: column; align-items: flex-start;
}
.alsoby-card img {
  width: 100%; max-width: 180px;
  border-radius: 3px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.alsoby-card:hover img { transform: translateY(-4px); }
.alsoby-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.3rem; color: var(--bg); }
.alsoby-card .genre { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form { max-width: 580px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.5rem; }
label {
  display: block; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 6px; color: var(--ink-muted);
  font-weight: 500;
}
input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color var(--ease);
  appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-status {
  margin-top: 1rem; text-align: center;
  font-size: 0.95rem; min-height: 1.5rem;
}
.form-status.success { color: #2d5a2d; }
.form-status.error   { color: var(--accent-held); }

@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  padding: 140px 24px 80px;
  background: var(--bg-dark);
  color: var(--bg);
  text-align: center;
}
.page-header h1 { color: var(--bg); font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-header .lead { color: var(--stone); max-width: 600px; margin: 1rem auto 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-dark);
  color: var(--stone);
  padding: 56px 24px;
  text-align: center;
  font-size: 14px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--bg);
  margin-bottom: 16px;
}
.footer-links {
  display: flex; gap: 2rem; justify-content: center;
  list-style: none; margin: 16px 0;
}
.footer-links a { color: var(--stone); font-size: 13px; letter-spacing: 0.08em; }
.footer-links a:hover { color: var(--bg); }
.footer-copy { color: var(--ink-muted); font-size: 12px; margin-top: 24px; }

/* =========================================================
   RESPONSIVE — general
   ========================================================= */
@media (max-width: 900px) { .section { padding: 72px 0; } }
@media (max-width: 600px) { .section { padding: 56px 0; } .container { padding: 0 18px; } }
