:root {
  --bg: #f1ede3;
  --paper: #fcf8f0;
  --ink: #181613;
  --accent: #9c4322;
  --accent-soft: #c87d4f;
  --line: #d9cfbd;
  --maxw: 1100px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #fff7df, var(--bg) 36%, #ebe3d5);
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

p {
  margin: 0 0 1rem;
  max-width: 66ch;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d3f2a;
  font-weight: 600;
}

.section-head {
  margin-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(111, 84, 70, 0.15);
  backdrop-filter: blur(8px);
  background: rgba(252, 247, 237, 0.86);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e8dcc9;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  padding-top: 5.25rem;
}

.hero-copy {
  font-size: 1.08rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: 1px solid transparent;
}

.btn-solid {
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: #fffaf4;
}

.btn-outline {
  border-color: #6d3f2a;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.book-summary-note {
  color: #6f4a36;
  margin: 0;
}

.books-subtitle {
  margin: 2.2rem 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 14px 38px rgba(57, 37, 26, 0.08);
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(57, 37, 26, 0.14);
}

.book-card:focus-visible {
  outline: 2px solid #6d3f2a;
  outline-offset: 3px;
}

.book-cover {
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  margin-bottom: 1rem;
  background:
    linear-gradient(165deg, rgba(156, 67, 34, 0.92), rgba(70, 30, 16, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 42%);
  color: #fff6eb;
  display: grid;
  place-items: end start;
  padding: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.book-cover-image {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
}

.book-card a {
  font-weight: 700;
  text-underline-offset: 3px;
  color: #7d351a;
}

.book-modal[hidden] {
  display: none;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 7, 0.64);
}

.book-modal-panel {
  position: relative;
  width: min(100% - 2rem, 760px);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  margin: 1.5rem auto;
  background: #fff8ee;
  border: 1px solid #ddcfba;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 24px 60px rgba(21, 14, 9, 0.32);
}

.book-modal-close {
  border: 1px solid #c9b59b;
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  float: right;
}

body.modal-open {
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-photo-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #efe6d8;
  box-shadow: 0 12px 30px rgba(63, 39, 28, 0.2);
  overflow: hidden;
}

.about-photo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: 0 12px 30px rgba(57, 37, 26, 0.08);
  font-size: 0.97rem;
}

.blog-meta {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #7b4f38;
  font-weight: 600;
}

.blog-post-content {
  transition: max-height 220ms ease;
}

.blog-post.is-collapsed .blog-post-content {
  max-height: 8.6rem;
  overflow: hidden;
  position: relative;
}

.blog-post.is-collapsed .blog-post-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4rem;
  background: linear-gradient(to bottom, rgba(252, 248, 240, 0), rgba(252, 248, 240, 1));
}

.blog-post-toggle {
  margin-top: 0.45rem;
  border: 1px solid #c9b59b;
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6d3f2a;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  cursor: pointer;
}

.blog-toggle-icon {
  display: inline-block;
  transition: transform 170ms ease;
}

.blog-post:not(.is-collapsed) .blog-toggle-icon {
  transform: rotate(180deg);
}

.text-link {
  font-weight: 700;
  text-underline-offset: 3px;
  color: #7d351a;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  background: #fff5e2;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.05rem;
}

blockquote cite {
  margin-top: 0.75rem;
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: #68402d;
}

.testimonials blockquote {
  font-size: 0.94rem;
  line-height: 1.45;
}

.testimonials blockquote cite {
  font-size: 0.8rem;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.event-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 253, 249, 0.7);
}

.event-list span {
  color: #7b4f38;
  font-weight: 600;
}

.event-list em {
  font-style: normal;
  color: #7a6453;
}

.newsletter-card {
  background: linear-gradient(145deg, #f6e7d0, #fdf6eb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.newsletter-form input {
  min-width: 240px;
  border: 1px solid #bcae98;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #fffdf8;
  font: inherit;
}

.site-footer {
  background: #221913;
  color: #f4e6d3;
  padding-bottom: 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  border: 1px solid rgba(244, 230, 211, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.copyright {
  margin: 2rem auto 0;
  width: min(100% - 2rem, var(--maxw));
  color: #bfa88d;
  font-size: 0.88rem;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.38;
}

.bg-glow-a {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -90px;
  background: #eeb074;
}

.bg-glow-b {
  width: 270px;
  height: 270px;
  left: -80px;
  top: 52%;
  background: #cd7a54;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .menu-btn {
    display: grid;
  }

  .main-nav {
    position: absolute;
    right: 1rem;
    top: 70px;
    width: min(220px, 84vw);
    border: 1px solid var(--line);
    background: #fffaf2;
    border-radius: 10px;
    padding: 0.65rem;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .book-grid,
  .blog-grid,
  .quote-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }
}
