:root {
  --ivory: #f7f0e2;
  --parchment: #efe3cc;
  --paper: #fffaf0;
  --charcoal: #2c2823;
  --brown: #4a3527;
  --muted-brown: #765f4b;
  --gold: #b98a3d;
  --gold-soft: #e5c989;
  --green: #66785c;
  --green-dark: #3f513a;
  --line: rgba(74, 53, 39, 0.18);
  --shadow: 0 24px 60px rgba(50, 35, 22, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 16%, rgba(185, 138, 61, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(102, 120, 92, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(74, 53, 39, 0.035) 25%, transparent 25%) 0 0 / 26px 26px,
    var(--ivory);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.65rem 1rem;
  color: var(--paper);
  background: var(--green-dark);
  border-radius: 999px;
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 240, 226, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(185, 138, 61, 0.55);
  border-radius: 50%;
  color: var(--brown);
  background: linear-gradient(135deg, #fff8e9, #e8d5aa);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
}

.brand-line {
  color: var(--muted-brown);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
}

.nav-links a,
.footer-nav a {
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.footer-nav a:hover {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brown);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow,
.card-label {
  margin: 0 0 0.9rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 9vw, 8.5rem);
}

h2 {
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

p {
  margin: 0;
}

.hero-subhead {
  max-width: 680px;
  margin-top: 1.5rem;
  color: var(--muted-brown);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--brown);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(74, 53, 39, 0.16);
}

.button.primary {
  color: var(--paper);
  background: var(--brown);
}

.button.secondary {
  color: var(--brown);
  background: rgba(255, 250, 240, 0.66);
}

.retailer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.retailer-actions .button {
  min-height: 44px;
  padding-inline: 1rem;
  font-size: 0.78rem;
}

.hero-art {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(239, 227, 204, 0.5)),
    repeating-linear-gradient(90deg, rgba(74, 53, 39, 0.035) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(185, 138, 61, 0.35);
  border-radius: 50%;
}

.hero-art::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -16%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(102, 120, 92, 0.16);
}

.book-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.book-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(255px, 62%);
  aspect-ratio: 0.68;
  padding: 1.5rem;
  border-radius: 6px;
  color: #fff8eb;
  box-shadow: 0 28px 50px rgba(43, 30, 20, 0.28);
}

.book-card strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.book-card small,
.book-kicker {
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.book-card small {
  font-size: 0.68rem;
}

.book-kicker {
  font-size: 0.7rem;
}

.book-card.memoir {
  z-index: 2;
  transform: translate(-20%, -6%) rotate(-7deg);
  background: linear-gradient(145deg, #68442e, #2d2520);
}

.hero-cover-card {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(239, 227, 204, 0.42)),
    radial-gradient(circle at 48% 26%, rgba(229, 201, 137, 0.36), transparent 42%),
    #4a3527;
}

.hero-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(43, 30, 20, 0.24));
}

.book-card.marlee {
  transform: translate(22%, 13%) rotate(7deg);
}

.hero-marlee-cover img {
  object-fit: cover;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.split-heading p:last-child,
.book-displays .split-heading p,
.author-copy p,
.book-copy p,
.order-section p {
  color: var(--muted-brown);
  font-size: 1.02rem;
}

.featured-book {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.62);
  box-shadow: 0 20px 42px rgba(74, 53, 39, 0.1);
}

.featured-book.reverse {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.featured-book.reverse .cover-panel {
  grid-column: 2;
  grid-row: 1;
}

.featured-book.reverse .book-cover-card {
  grid-column: 2;
  grid-row: 1;
}

.featured-book.reverse .book-copy {
  grid-column: 1;
}

.cover-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  padding: 2rem;
  border-radius: 6px;
  color: #fff7e8;
  box-shadow: 0 20px 42px rgba(43, 30, 20, 0.22);
}

.cover-panel span,
.cover-panel em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover-panel strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.7rem);
  line-height: 0.9;
}

.memoir-cover {
  background:
    linear-gradient(145deg, rgba(43, 30, 20, 0.26), rgba(43, 30, 20, 0.78)),
    radial-gradient(circle at 24% 20%, rgba(229, 201, 137, 0.5), transparent 32%),
    #62422e;
}

.marlee-cover {
  background:
    linear-gradient(145deg, rgba(29, 48, 29, 0.18), rgba(29, 48, 29, 0.78)),
    radial-gradient(circle at 72% 24%, rgba(229, 201, 137, 0.48), transparent 30%),
    #6f855f;
}

.book-cover-card {
  position: relative;
  padding: 0.8rem;
  border: 1px solid rgba(185, 138, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(239, 227, 204, 0.62)),
    radial-gradient(circle at 50% 20%, rgba(185, 138, 61, 0.14), transparent 42%);
  box-shadow: 0 22px 46px rgba(43, 30, 20, 0.18);
}

.book-cover-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 36px rgba(43, 30, 20, 0.2);
}

.marlee-book-cover {
  max-width: 360px;
}

.memoir-book-cover {
  max-width: 360px;
}

.memoir-book-cover img {
  object-fit: contain;
}

.book-copy {
  max-width: 680px;
}

.book-displays {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.book-displays .section-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.display-subtitle {
  margin-bottom: 0.75rem;
  color: var(--green-dark);
  font-weight: 700;
}

.display-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}

.display-card {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.78), rgba(239, 227, 204, 0.52)),
    rgba(255, 250, 240, 0.68);
  box-shadow: 0 18px 38px rgba(74, 53, 39, 0.11);
}

.display-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(43, 30, 20, 0.14);
}

.display-card figcaption {
  margin-top: 0.75rem;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.featured-display {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-display img {
  aspect-ratio: 1 / 1.16;
}

.byline {
  margin: 0.45rem 0 1rem;
  color: var(--green-dark);
  font-weight: 800;
}

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

.isbn-list div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 240, 226, 0.72);
}

.isbn-list dt {
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.isbn-list dd {
  margin: 0.25rem 0 0;
  color: var(--brown);
  font-weight: 800;
}

.author-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.portrait-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 320px);
  padding: 0.75rem;
  aspect-ratio: 0.82;
  border: 1px solid rgba(185, 138, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(239, 227, 204, 0.8)),
    radial-gradient(circle at 50% 38%, rgba(102, 120, 92, 0.2), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  z-index: -1;
  border: 1px solid rgba(255, 250, 240, 0.78);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(185, 138, 61, 0.16), rgba(102, 120, 92, 0.12));
}

.portrait-card img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
}

.author-copy {
  max-width: 780px;
}

.card-grid,
.theme-grid {
  display: grid;
  gap: 1rem;
}

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

.preview-card,
.theme-grid article {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.64);
  box-shadow: 0 12px 30px rgba(74, 53, 39, 0.08);
}

.preview-card h3,
.theme-grid h3 {
  font-size: 1.7rem;
  line-height: 1.05;
}

.preview-card p,
.theme-grid p {
  margin-top: 1rem;
  color: var(--muted-brown);
}

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

.theme-grid article {
  position: relative;
  padding-top: 3.4rem;
}

.theme-grid article::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(185, 138, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 53, 39, 0.9), rgba(63, 81, 58, 0.9)),
    var(--brown);
  box-shadow: var(--shadow);
}

.order-section h2,
.order-section .eyebrow,
.order-section p {
  color: var(--paper);
}

.order-section p {
  opacity: 0.82;
  margin-top: 1rem;
}

.order-section .button.primary {
  border-color: var(--gold-soft);
  color: var(--brown);
  background: var(--gold-soft);
}

.order-section .button.secondary {
  border-color: rgba(255, 250, 240, 0.58);
  color: var(--paper);
  background: transparent;
}

.order-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 1rem;
  min-width: min(100%, 560px);
}

.order-option {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.order-option h3 {
  color: var(--paper);
  font-size: 1.55rem;
  line-height: 1.05;
}

.order-option .retailer-actions {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem max(1rem, calc((100% - 1180px) / 2));
  background: rgba(239, 227, 204, 0.58);
}

.site-footer h2 {
  font-size: 2rem;
}

.site-footer p {
  color: var(--muted-brown);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.4rem 0;
}

.copyright {
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 82px 1rem auto 1rem;
    display: grid;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: var(--ivory);
  }

  .hero,
  .featured-book,
  .featured-book.reverse,
  .author-section,
  .split-heading,
  .order-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-art {
    min-height: 460px;
  }

  h1 {
    max-width: 10ch;
  }

  .featured-book.reverse .cover-panel,
  .featured-book.reverse .book-cover-card,
  .featured-book.reverse .book-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .cover-panel {
    min-height: 380px;
  }

  .marlee-book-cover {
    max-width: 320px;
  }

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

  .featured-display {
    grid-column: span 2;
    grid-row: auto;
  }

  .featured-display img {
    aspect-ratio: 1.2;
  }

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

  .order-section .button-row {
    margin-top: 0;
  }

  .order-options {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 1rem, 1180px);
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-line {
    font-size: 0.66rem;
  }

  .section {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  h2 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .hero-art {
    min-height: 390px;
  }

  .book-card {
    width: min(220px, 66%);
    padding: 1.15rem;
  }

  .featured-book {
    padding: 0.85rem;
  }

  .cover-panel {
    min-height: 330px;
    padding: 1.35rem;
  }

  .book-cover-card {
    padding: 0.6rem;
  }

  .cover-panel strong {
    font-size: clamp(2.5rem, 15vw, 3.6rem);
  }

  .isbn-list,
  .display-gallery,
  .three,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .featured-display {
    grid-column: auto;
  }

  .display-card img,
  .featured-display img {
    aspect-ratio: 1;
  }

  .portrait-card {
    max-width: 320px;
  }

  .button {
    width: 100%;
  }

  .retailer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 1rem;
  }
}
