/* ===== Madrona Bluff Press — warm literary theme ===== */
:root {
  /* Palette drawn from the logo: cream paper, evergreen, madrona bark, ink */
  --cream: #f4ecdc;
  --cream-2: #efe4cf;
  --paper: #faf5ea;
  --ink: #23241f;
  --ink-soft: #46453c;
  --evergreen: #2f4a37;
  --evergreen-deep: #223a2a;
  --bark: #a05a34;
  --bark-soft: #b9764c;
  --line: rgba(35, 36, 31, 0.14);

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'Work Sans', system-ui, sans-serif;

  --text-hero: clamp(2.6rem, 7vw, 5rem);
  --text-2xl: clamp(2rem, 4.5vw, 3rem);
  --text-xl: clamp(1.5rem, 3vw, 2.1rem);
  --text-lg: 1.25rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --maxw: 1120px;
  --radius: 4px;
  --shadow-book: 0 22px 50px -18px rgba(34, 40, 30, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.eyelash {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--bark);
  margin: 0 0 0.85rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--evergreen-deep); }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--font-ui); font-size: var(--text-sm); }
.site-nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover { color: var(--bark); }
.nav-contact {
  border: 1px solid var(--evergreen); color: var(--evergreen) !important;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 500;
}
.nav-contact:hover { background: var(--evergreen); color: var(--cream) !important; }

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-ui); font-weight: 500; font-size: var(--text-sm);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.6rem 1.1rem; }
.btn-primary { background: var(--evergreen); color: var(--cream); }
.btn-primary:hover { background: var(--evergreen-deep); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(34,58,42,.8); }
.btn-ghost { background: transparent; color: var(--evergreen); border-color: var(--evergreen); }
.btn-ghost:hover { background: var(--evergreen); color: var(--cream); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(160,90,52,.10), transparent 55%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  padding: clamp(4rem, 11vw, 8rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-hero);
  line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 1.2rem; color: var(--evergreen-deep);
}
.hero-sub { font-size: var(--text-lg); color: var(--ink-soft); max-width: 40ch; margin: 0 auto 2rem; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .section-about h2, .section-newsletter h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl);
  margin: 0 0 1rem; color: var(--evergreen-deep); line-height: 1.1;
}
.section-lede { font-size: var(--text-lg); color: var(--ink-soft); margin: 0; }

/* ===== Book list ===== */
.book-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.book { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.book-reverse { grid-template-columns: 1fr 260px; }
.book-reverse .book-cover { order: 2; }
.book-cover { display: block; width: 260px; max-width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-book); transition: transform .25s ease; }
.book-cover img { width: 100%; height: auto; display: block; }
.book-cover:hover { transform: translateY(-4px) rotate(-0.5deg); }
.book-meta { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--text-xs); font-weight: 600; color: var(--bark); margin: 0 0 0.5rem; }
.book-body h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); margin: 0 0 0.9rem; color: var(--evergreen-deep); line-height: 1.1; }
.book-blurb { margin: 0 0 0.9rem; color: var(--ink-soft); }
.book-forfans { font-style: italic; color: var(--ink-soft); font-size: var(--text-sm); margin: 0 0 1.3rem; }
.book-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ku-badge { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--evergreen); border: 1px dashed var(--evergreen); border-radius: 999px; padding: 0.35rem 0.8rem; }

/* ===== Also by ===== */
.section-alsoby { background: var(--evergreen-deep); max-width: none; padding-left: 0; padding-right: 0; }
.alsoby-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 170px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; color: var(--cream);
}
.alsoby-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-book); transition: transform .25s ease; }
.alsoby-cover img { width: 170px; height: auto; }
.alsoby-cover:hover { transform: translateY(-4px); }
.section-alsoby .eyelash { color: var(--bark-soft); }
/* Ghost button legible on the dark green band */
.section-alsoby .btn-ghost { color: var(--cream); border-color: rgba(244,236,220,0.55); }
.section-alsoby .btn-ghost:hover { background: var(--cream); color: var(--evergreen-deep); border-color: var(--cream); }
.alsoby-body h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); margin: 0 0 0.8rem; line-height: 1.1; }
.alsoby-body p { color: rgba(244, 236, 220, 0.85); margin: 0 0 1.3rem; }

/* ===== About ===== */
.section-about { }
.about-inner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-photo img { border-radius: 6px; box-shadow: var(--shadow-book); width: 100%; }
.about-body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.about-body p:first-of-type { color: var(--ink); }
.about-imprint { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.4rem !important; }

/* ===== Newsletter ===== */
.section-newsletter {
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: none;
}
.newsletter-inner { max-width: 620px; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.signup-form { display: flex; gap: 0.6rem; margin: 1.8rem auto 0; max-width: 460px; }
.signup-form input {
  flex: 1; font-family: var(--font-body); font-size: var(--text-base);
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
}
.signup-form input:focus { outline: 2px solid var(--evergreen); outline-offset: 1px; border-color: transparent; }
.signup-form .btn { flex: none; }
.form-status { min-height: 1.4em; margin: 0.9rem 0 0; font-size: var(--text-sm); font-family: var(--font-ui); }
.form-status.ok { color: var(--evergreen); }
.form-status.err { color: #a3341f; }

/* ===== Footer ===== */
.site-footer { background: var(--evergreen-deep); color: var(--cream); padding: clamp(2.5rem, 5vw, 4rem) 1.5rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-logo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 0.9rem; }
.footer-brand p { color: rgba(244,236,220,.7); font-size: var(--text-sm); margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; font-family: var(--font-ui); font-size: var(--text-sm); }
.footer-links a { color: rgba(244,236,220,.85); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--bark-soft); }
.footer-copy { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(244,236,220,.15); font-family: var(--font-ui); font-size: var(--text-xs); color: rgba(244,236,220,.55); text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-contact) { display: none; }
  .book, .book-reverse { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
  .book-reverse .book-cover { order: 0; }
  .book-cover { max-width: 220px; }
  .book-actions { justify-content: center; }
  .alsoby-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .alsoby-cover { max-width: 170px; }
  .alsoby-body .book-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin: 0 auto; }
  .about-inner, .about-body { text-align: center; }
  .signup-form { flex-direction: column; }
  .footer-inner { flex-direction: column; }
}
