:root {
  --bg: #f7f2ea;
  --surface: #fffdf9;
  --surface-2: #f0e8dc;
  --text: #1d1d1b;
  --muted: #5f5b54;
  --line: #d9cebe;
  --accent: #7d3e2f;
  --accent-dark: #5d291e;
  --shadow: 0 18px 45px rgba(35, 28, 21, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 111, 86, 0.11), transparent 25%),
    linear-gradient(180deg, #fbf7f1, #f7f2ea 35%, #f3ede4 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  border-bottom: 1px solid rgba(117, 98, 76, 0.14);
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: .9rem; }
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #87624f, #5f372a);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1;
}
.brand-text small {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--accent-dark); }

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: .2rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

main { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 4.6rem 0 0; }
.eyebrow {
  margin: 0 0 .75rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}
.section-heading h2,
.hero h1,
.about-copy h2,
.contact-section h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: .97;
  letter-spacing: -0.02em;
}
.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
}
.section-heading p,
.about-copy p,
.book-meta p,
.news-card p,
.contact-section p,
.hero-text {
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 2rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.7rem);
  max-width: 10ch;
}
.hero-copy { max-width: 650px; }
.hero-text { margin: 1.25rem 0 0; font-size: 1.05rem; max-width: 58ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 16px 28px rgba(125, 62, 47, 0.22);
}
.btn-secondary {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
}

.hero-books {
  position: relative;
  min-height: 470px;
}
.hero-book {
  position: absolute;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid rgba(113, 97, 76, 0.12);
}
.hero-book::before,
.hero-book::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.book-one {
  width: 220px;
  height: 320px;
  left: 8%;
  top: 18%;
  background: linear-gradient(160deg, #214344, #0e1f2b 58%, #c1a362 58%, #d8c089 100%);
}
.book-two {
  width: 250px;
  height: 360px;
  right: 14%;
  top: 5%;
  background: linear-gradient(160deg, #f2ece6, #cfb8ab 60%, #6f3145 60%, #4b1d2e 100%);
}
.book-three {
  width: 210px;
  height: 300px;
  right: 2%;
  bottom: 10%;
  background: linear-gradient(150deg, #7b5b41, #4f3524 58%, #ede2d3 58%, #fff8ef 100%);
}
.book-one::after { content: "Edmund Street"; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 700; display: grid; place-items: center; }
.book-two::after { content: "Unexpected\A Gift"; white-space: pre; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 700; display: grid; place-items: center; text-align: center; }
.book-three::after { content: "The Price\A of Hope"; white-space: pre; color: #3a2214; font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 700; display: grid; place-items: center; text-align: center; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.book-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(117, 98, 76, 0.14);
  box-shadow: var(--shadow);
}
.book-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #ede4d8;
}
.book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
}
.book-fallback span,
.book-fallback small { display: block; }
.book-fallback span {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .88;
  margin-bottom: .7rem;
}
.book-fallback strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: .95;
  margin-bottom: .5rem;
}
.book-fallback small {
  font-size: .85rem;
  line-height: 1.3;
  opacity: .92;
}
.theme-deep-green { background: linear-gradient(160deg, #294345, #14202a 60%, #d1b986 60%, #a07d47 100%); }
.theme-navy-gold { background: linear-gradient(160deg, #0f2a38, #213f53 62%, #cfa45f 62%, #e4c48d 100%); }
.theme-plum-blush { background: linear-gradient(160deg, #efe5dd, #d3b9ad 55%, #6a3245 55%, #4d1e2d 100%); }
.theme-sand-red { background: linear-gradient(150deg, #f2e4d2, #ddc0a2 55%, #92453f 55%, #652320 100%); }
.theme-ink-blue { background: linear-gradient(160deg, #182839, #0c1621 58%, #b9c4d0 58%, #708198 100%); }

.book-type {
  margin: .15rem 0 .4rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  font-weight: 700;
}
.book-meta h3 {
  margin: 0 0 .55rem;
  font-size: 1.45rem;
  font-family: "Cormorant Garamond", serif;
}
.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-top: 1rem;
}
.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}
.text-link:hover { text-decoration: underline; }

.about-section { padding-top: 5rem; }
.about-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.7rem;
  align-items: stretch;
  padding: 1.2rem;
  border-radius: 34px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(117, 98, 76, 0.14);
  box-shadow: var(--shadow);
}
.author-media {
  position: relative;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background: #e8ded0;
}
.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  background: linear-gradient(150deg, #eaddcf, #d7c0ae 55%, #87624f 55%, #5f372a 100%);
  color: white;
  padding: 1.2rem;
}
.author-photo-fallback span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-bottom: .9rem;
}
.author-photo-fallback small { font-size: .95rem; opacity: .95; }
.about-copy { align-self: center; padding: .6rem .4rem; }
.about-copy .lead { font-size: 1.08rem; color: #423c35; }
.about-note {
  margin-top: 1rem;
  font-size: .92rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(117, 98, 76, 0.18);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}
.news-card {
  padding: 1.5rem;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(117, 98, 76, 0.14);
  box-shadow: var(--shadow);
}
.news-card h3 {
  margin: .25rem 0 .7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}
.news-date {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
}
.featured {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(246,235,222,.9));
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 4.5rem;
}
.contact-email {
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.contact-email:hover { color: var(--accent-dark); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 5vw 2rem;
  border-top: 1px solid rgba(117, 98, 76, 0.14);
  color: var(--muted);
}
.site-footer strong { color: var(--text); display: block; }
.site-footer span { font-size: .88rem; }

@media (max-width: 980px) {
  .hero,
  .about-panel,
  .news-grid,
  .books-grid,
  .book-card {
    grid-template-columns: 1fr;
  }

  .hero-books {
    min-height: 360px;
    order: -1;
  }

  .book-card {
    max-width: 700px;
  }

  .book-image-wrap {
    max-width: 220px;
  }

  .contact-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header { padding: 1rem 1rem; }
  main { width: min(100% - 1rem, 1200px); }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + .5rem);
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    min-width: 210px;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(117, 98, 76, 0.14);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: .2s ease;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hero { padding-top: 2.6rem; }
  .hero-books { min-height: 300px; }
  .book-one { width: 170px; height: 250px; left: 0; top: 18%; }
  .book-two { width: 190px; height: 280px; right: 12%; top: 0; }
  .book-three { width: 160px; height: 235px; right: 0; bottom: 6%; }
}
