/*
  Unscattered landing page styles.
  Palette is sampled directly from the Borrowed and Bound logo (warm cream +
  taupe-brown) plus one complementary earthy clay accent, so the site matches
  the brand mark rather than whichever book cover happens to be current.
  Fonts are system stacks on purpose: no external font requests, no build step.
*/

:root {
  --color-bg: #faf8f5;
  --color-bg-earthy: #e3e2dd;
  --color-bg-warm: #f1e6d8;
  --color-ink: #4a463d;
  --color-ink-soft: #7b776f;
  --color-accent: #96593a;
  --color-body: #3a362f;
  --color-border: rgba(74, 70, 61, 0.18);
  --color-card-bg: #ffffff;

  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-garamond: Garamond, 'Apple Garamond', 'Adobe Garamond Pro', 'Times New Roman', Georgia, serif;

  --max-width-text: 640px;
  --max-width-wide: 1080px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  margin-top: var(--space-4);
}

p {
  margin: 0 0 var(--space-2);
}

em {
  font-style: italic;
}

a {
  color: var(--color-ink);
}

.wrap {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink);
  opacity: 0.7;
  margin: 0 0 var(--space-1);
}

.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;
}

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.button-primary {
  background: var(--color-ink);
  color: var(--color-bg);
}

.button-primary:hover {
  background: var(--color-accent);
}

/* Header */

.site-header {
  padding: var(--space-2) 0;
  background: var(--color-bg-earthy);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  /*
    The logo image is a wide lockup where the "BORROWED and BOUND" wordmark
    only occupies the top ~21% of the file's height (the rest is whitespace
    and the bookshelf icon). At 72px display height, the wordmark itself
    renders at roughly 15px tall, matching the nav-link font-size next to it.
  */
  display: block;
  height: 72px;
  width: auto;
}

.site-header .nav-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
}

.site-header .nav-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Hero */

.hero {
  background: var(--color-bg-earthy);
  padding: var(--space-5) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
}

.hero-body {
  font-size: 1.125rem;
  max-width: 46ch;
  margin-bottom: var(--space-3);
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  height: auto;
  box-shadow: 0 24px 48px rgba(74, 70, 61, 0.3);
}

/* Teaser / page-card */

.teaser {
  padding: var(--space-6) 0;
}

.teaser .wrap {
  max-width: var(--max-width-text);
}

.page-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-4);
  margin: var(--space-3) 0 var(--space-5);
}

.page-card-theme {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

/*
  Body copy, heading, and affirmation inside the excerpt card are set in
  Garamond (with serif fallbacks) at print-style point sizes, to read like a
  page lifted from the actual book rather than the rest of the website.
*/

.page-card h3 {
  font-family: var(--font-garamond);
  font-size: 16pt;
  font-weight: 700;
  margin-top: 0;
}

.page-card p {
  font-family: var(--font-garamond);
  font-size: 11.3pt;
  line-height: 1.65;
}

.page-card-mantra {
  font-family: var(--font-garamond);
  font-size: 11.3pt;
  font-style: italic;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}

/* Signup blocks (shared by teaser + closing sections) */

.signup-block h3 {
  margin-top: 0;
}

.closing-signup {
  background: var(--color-bg-earthy);
  padding: var(--space-6) 0;
  text-align: center;
}

.closing-signup .wrap {
  max-width: var(--max-width-text);
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.closing-signup .email-form {
  justify-content: center;
}

.email-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-card-bg);
  color: var(--color-body);
}

.email-form input[type="email"]:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 1px;
}

.form-message {
  flex-basis: 100%;
  margin: var(--space-1) 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-message-success {
  color: var(--color-ink);
  font-weight: 600;
}

.form-message-error {
  color: #8a3a24;
  font-weight: 600;
}

/* Belief statement ("Everything's borrowed") on the landing page */

.belief {
  background: var(--color-bg-warm);
  padding: var(--space-6) 0;
}

.belief .wrap {
  max-width: var(--max-width-text);
}

/* About Me story, split into bands (about.html) so the page has more
   dimension than one long scroll. Backgrounds alternate earthy/warm/plain so
   no two consecutive bands share a background. */

.about-intro {
  background: var(--color-bg-earthy);
  padding: var(--space-6) 0;
}

.about-intro .wrap {
  max-width: var(--max-width-wide);
}

/*
  This is the page's only h1 (added for SEO — every page needs exactly one),
  but it sits where a section heading used to be, so it's sized to match the
  site's normal h2 scale rather than the much larger hero h1.
*/
.about-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

/*
  The photo floats so text wraps around it, top-aligned with the first
  heading, and drops to full width once the copy runs past the image's
  height, rather than being pinned to a fixed-height grid row.
*/

.about-intro-grid {
  margin-top: var(--space-3);
}

.about-intro-grid::after {
  content: "";
  display: table;
  clear: both;
}

.about-intro-photo {
  float: right;
  width: 42%;
  margin: 0 0 var(--space-3) var(--space-4);
}

.about-intro-copy h3:first-child {
  margin-top: 0;
}

.about-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(74, 70, 61, 0.3);
}

.about-problems {
  background: var(--color-bg-warm);
  padding: var(--space-6) 0;
}

.about-problems .wrap {
  max-width: var(--max-width-text);
}

.about-craft {
  background: var(--color-bg);
  padding: var(--space-6) 0;
}

.about-craft .wrap {
  max-width: var(--max-width-text);
}

/* Other books */

.other-books {
  padding: var(--space-6) 0 var(--space-6);
}

.other-books .wrap {
  max-width: var(--max-width-wide);
}

.other-books > .wrap > p {
  max-width: 60ch;
}

.book-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

.book-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.book-card p {
  flex-grow: 1;
}

.book-card a {
  font-weight: 600;
  text-decoration: underline;
}

/* Testimonials: an editorial pull-quote treatment (no cards/borders), an
   overview of reader confidence rather than tied to any one book. */

.testimonials {
  background: var(--color-bg-earthy);
  padding: var(--space-6) 0;
}

.testimonials .wrap {
  max-width: var(--max-width-wide);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-3);
}

.testimonial {
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin: 0 0 var(--space-1);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0 0 var(--space-1);
}

.testimonial-attribution {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.testimonial-verified {
  opacity: 0.85;
}

/* Footer */

.site-footer {
  padding: var(--space-4) 0 var(--space-5);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .brand {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.site-footer a {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.footer-note {
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .about-intro-photo {
    float: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto var(--space-4);
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    gap: var(--space-2);
  }

  .email-form {
    flex-direction: column;
    align-items: stretch;
  }
}
