:root {
  --bg: #f5efe6;
  --bg-soft: #fbf7f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffaf3;
  --text: #2c231d;
  --muted: #6e6258;
  --accent: #9a6238;
  --accent-strong: #6f4325;
  --border: rgba(90, 66, 46, 0.14);
  --shadow: 0 20px 50px rgba(61, 39, 22, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(154, 98, 56, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(64, 45, 32, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f2eb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.12;
  z-index: -1;
}

body::before {
  top: -8rem;
  right: -6rem;
  background: var(--accent);
}

body::after {
  left: -8rem;
  bottom: -8rem;
  background: #5d4839;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(245, 239, 230, 0.78);
  border-bottom: 1px solid rgba(90, 66, 46, 0.09);
}

.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), #c89262);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(154, 98, 56, 0.24);
  flex: none;
}

.brand__text {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand__text strong {
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(61, 39, 22, 0.06);
}

.nav-toggle__icon {
  width: 1.15rem;
  display: grid;
  gap: 0.22rem;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.75rem);
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: var(--shadow);
  transform-origin: top center;
  transform: scaleY(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scaleY(1);
}

.site-nav a,
.footer-nav a {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-strong);
  background: rgba(154, 98, 56, 0.08);
}

.site-nav a.is-active {
  background: rgba(154, 98, 56, 0.12);
  color: var(--accent-strong);
}

.nav-group {
  display: grid;
  gap: 0.25rem;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  user-select: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group[open] summary {
  color: var(--accent-strong);
  background: rgba(154, 98, 56, 0.08);
}

.nav-group__links {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(90, 66, 46, 0.12);
}

.nav-group__links a {
  padding-left: 0.8rem;
}

.section {
  padding: 4.25rem 0;
  scroll-margin-top: 6rem;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero {
  padding-top: 3.25rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  display: grid;
  gap: 1.15rem;
}

.hero__book-title {
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  color: var(--accent-strong);
}

.hero__lede {
  font-size: 1.06rem;
  max-width: 42rem;
}

.hero__actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

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

.hero__meta span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__visual {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.book-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(251,247,241,0.9));
  box-shadow: var(--shadow);
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card--hero {
  aspect-ratio: 4 / 5;
  padding: 0.85rem;
}

.hero__visual figcaption {
  color: var(--muted);
  font-size: 0.96rem;
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.book-showcase {
  display: grid;
  gap: 1.5rem;
}

.book-showcase__media {
  max-width: 28rem;
}

.book-showcase .book-card {
  aspect-ratio: 2 / 3;
  padding: 0.8rem;
}

.book-showcase__body {
  display: grid;
  gap: 1rem;
}

.book-showcase__body p {
  font-size: 1.02rem;
}

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

.facts__item {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.facts__label {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.facts__value {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.1rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.story-grid,
.review-grid,
.store-grid,
.contact-grid,
.bio-layout {
  display: grid;
  gap: 1rem;
}

.info-card,
.quote-card,
.store-card,
.contact-copy,
.contact-form,
.bio-layout__content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: 0 12px 30px rgba(61, 39, 22, 0.05);
}

.info-card,
.quote-card,
.store-card,
.contact-copy {
  padding: 1.25rem;
}

.info-card {
  display: grid;
  gap: 0.8rem;
}

.info-card p,
.quote-card p,
.store-card li span,
.contact-copy li {
  font-size: 0.98rem;
}

.review-grid {
  gap: 1rem;
}

.quote-card {
  margin: 0;
  display: grid;
  gap: 1rem;
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(154, 98, 56, 0.16);
  line-height: 1;
}

.quote-card footer {
  color: var(--accent-strong);
  font-weight: 700;
}

.store-grid {
  gap: 1rem;
}

.store-card h3 {
  margin-bottom: 0.9rem;
}

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

.store-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(90, 66, 46, 0.1);
}

.store-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.store-list a {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.store-list span {
  color: var(--muted);
}

.store-card__note {
  margin-top: 0.9rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.bio-layout {
  align-items: start;
}

.bio-layout__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.bio-layout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.bio-layout__content {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.bio-layout__content a {
  color: var(--accent-strong);
  font-weight: 600;
}

.contact-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.contact-grid > * {
  min-width: 0;
  width: 100%;
}

.contact-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.contact-copy__socials,
.contact-copy__email {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-copy__socials,
.contact-copy__email,
.contact-copy p,
.contact-copy a,
.turnstile-placeholder,
.form-feedback,
.contact-form label,
.contact-form input,
.contact-form textarea {
  word-break: break-word;
}

.contact-copy__socials a,
.contact-copy__email a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form span {
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(90, 66, 46, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(154, 98, 56, 0.5);
  box-shadow: 0 0 0 4px rgba(154, 98, 56, 0.12);
}

.turnstile-slot {
  padding: 1rem;
  border: 1px dashed rgba(154, 98, 56, 0.3);
  border-radius: 18px;
  background: rgba(154, 98, 56, 0.05);
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.turnstile-slot iframe,
.turnstile-slot > div,
.turnstile-slot > * {
  display: block;
  max-width: 100%;
  width: 100% !important;
}

.turnstile-placeholder {
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.form-feedback {
  min-height: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-feedback.is-success {
  color: #1f6b42;
}

.form-feedback.is-error {
  color: #a13b2a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(145deg, var(--accent), #b77a4b);
  color: #fff;
  box-shadow: 0 14px 26px rgba(154, 98, 56, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 18px 30px rgba(154, 98, 56, 0.28);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  border-color: rgba(154, 98, 56, 0.22);
}

.btn--full {
  width: 100%;
}

.site-footer {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid rgba(90, 66, 46, 0.1);
  background: rgba(255, 250, 243, 0.6);
}

.site-footer__inner {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}

.site-footer__brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-footer__copy,
.site-footer__small {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.footer-nav a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (min-width: 720px) {
  .section {
    padding: 5.25rem 0;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .hero {
    padding-top: 4rem;
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-grid,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .site-footer__inner {
    grid-template-columns: 1.15fr 1fr auto;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.72rem 0.95rem;
  }

  .nav-group {
    position: relative;
  }

  .nav-group summary {
    padding: 0.72rem 0.95rem;
  }

  .nav-group__links {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 14rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow);
    z-index: 5;
  }

  .hero__grid,
  .book-showcase,
  .bio-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid {
    gap: 3rem;
  }

  .book-showcase {
    align-items: center;
    gap: 2rem;
  }

  .book-showcase__media {
    max-width: none;
  }

  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .hero__content {
    order: 2;
  }

  .hero__visual {
    order: 1;
  }

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

  .footer-nav {
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(154, 98, 56, 0.42);
  outline-offset: 3px;
}
