/* =====================================================
   SKYLER NEWMAN — Author Website
   Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */

:root {
  /* ─── Base Neutrals ─── */
  --cream:        #F4EFE5;
  --warm-white:   #FAF7F2;
  --paper:        #ECE6D8;
  --tan:          #C8B898;
  --parchment:    #E0D8C4;

  /* ─── Earth ─── */
  --earth-dark:   #2C2419;
  --earth-mid:    #5C4A35;
  --earth-light:  #8A7060;

  /* ─── Greens (the dominant palette) ─── */
  --forest:       #384830;
  --moss:         #4C6038;
  --sage-dark:    #5E7248;
  --sage:         #788E64;
  --sage-mid:     #94A878;
  --sage-light:   #B4C89A;
  --sage-pale:    #CDD9B8;
  --sage-mist:    #E4EDD8;
  --celadon:      #8EB0A0;

  /* ─── Cool Accents ─── */
  --teal:         #5C7C78;
  --teal-light:   #88AEAA;
  --blue-muted:   #6E88A4;
  --blue-pale:    #A4BCCC;
  --blue-mist:    #D0DCE8;

  /* ─── Purple Accents ─── */
  --purple-deep:  #685878;
  --purple:       #8C7AA0;
  --lavender:     #B0A4C4;
  --lavender-pale:#D4CEDF;

  /* ─── Rose / Dusty Pink ─── */
  --rose-deep:    #9C6060;
  --rose:         #C08070;
  --rose-light:   #D4A494;
  --rose-pale:    #EAD0C8;

  /* ─── Typography ─── */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Raleway', 'Helvetica Neue', Arial, sans-serif;

  /* ─── Scale ─── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.5rem;

  /* ─── Spacing ─── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ─── Radii ─── */
  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 16px;

  /* ─── Transitions ─── */
  --t-fast: 150ms ease;
  --t-mid:  280ms ease;
  --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── Shadows ─── */
  --shadow-xs: 0 1px 4px rgba(44, 36, 25, 0.06);
  --shadow-sm: 0 2px 10px rgba(44, 36, 25, 0.10);
  --shadow-md: 0 6px 24px rgba(44, 36, 25, 0.13);
  --shadow-lg: 0 12px 48px rgba(44, 36, 25, 0.16);

  /* ─── Layout ─── */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--earth-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* Paper grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--earth-dark);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--earth-mid);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.75;
  color: var(--earth-mid);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.text-italic {
  font-style: italic;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--narrow {
  max-width: 780px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section--sm {
  padding: var(--sp-16) 0;
}

.section--lg {
  padding: var(--sp-32) 0;
}

.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--t-mid);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background-color: var(--forest);
  color: var(--warm-white);
  border: 2px solid var(--forest);
}

.btn-primary:hover {
  background-color: var(--moss);
  border-color: var(--moss);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--forest);
  border: 2px solid var(--sage);
}

.btn-secondary:hover {
  background-color: var(--sage-mist);
  border-color: var(--forest);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--earth-mid);
  border: 1px solid var(--tan);
  padding: 0.65rem 1.5rem;
}

.btn-ghost:hover {
  background-color: var(--paper);
  border-color: var(--earth-light);
}

.btn-rose {
  background-color: var(--rose);
  color: var(--warm-white);
  border: 2px solid var(--rose);
}

.btn-rose:hover {
  background-color: var(--rose-deep);
  border-color: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  letter-spacing: 0.12em;
}

/* =====================================================
   DECORATIVE ELEMENTS
   ===================================================== */

.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--tan), transparent);
}

.divider-leaf {
  color: var(--sage);
  font-size: var(--text-md);
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background-color: var(--sage);
}

/* Leaf ornament SVG */
.ornament {
  color: var(--sage-pale);
  opacity: 0.6;
  pointer-events: none;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--t-mid), box-shadow var(--t-mid), backdrop-filter var(--t-mid);
}

.site-header.scrolled {
  background-color: rgba(244, 239, 229, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44,36,25,0.08), var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--sp-8);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav-logo__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--earth-dark);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
}

.nav-logo__tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.nav-logo:hover .nav-logo__name {
  color: var(--forest);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-mid);
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--sage);
  transition: width var(--t-mid);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav actions (cart, etc) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--earth-mid);
  border: 1px solid var(--tan);
  border-radius: var(--r-sm);
  background-color: transparent;
  transition: all var(--t-fast);
  position: relative;
}

.cart-btn:hover {
  background-color: var(--paper);
  border-color: var(--earth-light);
  color: var(--earth-dark);
}

.cart-btn svg {
  width: 16px;
  height: 16px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--rose);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--t-mid);
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--earth-dark);
  transition: all var(--t-mid);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: rgba(244, 239, 229, 0.97);
  backdrop-filter: blur(12px);
  padding: var(--sp-8) var(--sp-6) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-mid);
  z-index: 99;
  border-bottom: 1px solid var(--tan);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--earth-dark);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--paper);
  transition: color var(--t-fast), padding-left var(--t-mid);
}

.mobile-menu a:hover {
  color: var(--sage-dark);
  padding-left: var(--sp-4);
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 36, 25, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background-color: var(--warm-white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  box-shadow: var(--shadow-lg);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--paper);
}

.cart-sidebar__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
}

.cart-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--earth-light);
  transition: all var(--t-fast);
}

.cart-close:hover {
  background-color: var(--paper);
  color: var(--earth-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--sp-4);
  color: var(--earth-light);
  text-align: center;
}

.cart-empty svg {
  opacity: 0.3;
  color: var(--sage);
}

.cart-empty p {
  font-size: var(--text-sm);
  color: var(--earth-light);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--sp-4);
  align-items: start;
}

.cart-item__cover {
  width: 72px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.cart-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.3;
}

.cart-item__type {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 500;
}

.cart-item__price {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--earth-mid);
  margin-top: var(--sp-2);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--tan);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  color: var(--earth-mid);
  transition: all var(--t-fast);
  line-height: 1;
}

.qty-btn:hover {
  background-color: var(--paper);
  border-color: var(--earth-light);
  color: var(--earth-dark);
}

.qty-display {
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  color: var(--earth-light);
  font-size: var(--text-base);
  padding: var(--sp-1);
  transition: color var(--t-fast);
  line-height: 1;
}

.cart-item__remove:hover {
  color: var(--rose-deep);
}

.cart-sidebar__footer {
  border-top: 1px solid var(--paper);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-total__label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-light);
}

.cart-total__amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.cart-note {
  font-size: var(--text-xs);
  color: var(--earth-light);
  text-align: center;
  font-style: italic;
}

/* =====================================================
   HERO — HOME
   ===================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--sp-24);
  padding-top: calc(var(--nav-height) + var(--sp-16));
  position: relative;
  overflow: hidden;
}

/* Botanical background illustration */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(138, 174, 160, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(180, 200, 154, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(192, 128, 112, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 60%, var(--paper) 100%);
}

.hero-bg__circles {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(120, 142, 100, 0.12);
  animation: slowRotate 80s linear infinite;
}

.hero-bg__circles::before {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(120, 142, 100, 0.08);
}

.hero-bg__circles::after {
  content: '';
  position: absolute;
  inset: 140px;
  border-radius: 50%;
  border: 1px solid rgba(120, 142, 100, 0.06);
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero-eyebrow__line {
  width: 48px;
  height: 1px;
  background-color: var(--sage);
}

.hero-eyebrow__text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-8);
  color: var(--earth-dark);
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--sage-dark);
}

.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.75;
  color: var(--earth-mid);
  max-width: 560px;
  margin-bottom: var(--sp-12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 1;
  color: var(--earth-light);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

/* =====================================================
   SECTION HEADERS (reusable)
   ===================================================== */

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-12);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--sp-4);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.section-body {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--earth-mid);
  max-width: 580px;
  line-height: 1.8;
}

/* =====================================================
   BOOK CARDS
   ===================================================== */

.book-card {
  display: flex;
  flex-direction: column;
  background-color: var(--warm-white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  position: relative;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.04);
}

/* Cover placeholder (when no image available) */
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.cover-placeholder__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  text-align: center;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.cover-placeholder__author {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: var(--sp-2);
  position: relative;
  z-index: 1;
}

.cover-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(30, 40, 25, 0.7), transparent);
  z-index: 0;
}

/* Book cover color themes */
.cover-owl     { background: linear-gradient(135deg, #1C2E20 0%, #3A5238 40%, #2C4A3A 70%, #1A3020 100%); }
.cover-mushroom{ background: linear-gradient(135deg, #2A3830 0%, #3D5040 40%, #4A5E48 70%, #2E3E30 100%); }
.cover-bramble { background: linear-gradient(135deg, #3A3020 0%, #5C4A30 40%, #6A5A3A 60%, #3A2E1A 100%); }
.cover-garden  { background: linear-gradient(135deg, #2A2840 0%, #3C3858 40%, #4A4460 60%, #2E2A3C 100%); }
.cover-novel   { background: linear-gradient(135deg, #1C1C28 0%, #2C2C40 40%, #3A3454 60%, #1E1E2C 100%); }

.book-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-children {
  background-color: rgba(180, 200, 154, 0.85);
  color: var(--forest);
  border: 1px solid rgba(180, 200, 154, 0.4);
}

.badge-novel {
  background-color: rgba(176, 164, 196, 0.85);
  color: var(--purple-deep);
  border: 1px solid rgba(176, 164, 196, 0.4);
}

.badge-upcoming {
  background-color: rgba(208, 164, 148, 0.85);
  color: var(--rose-deep);
  border: 1px solid rgba(208, 164, 148, 0.4);
}

.book-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.book-card__year {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.book-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
  color: var(--earth-dark);
}

.book-card__desc {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: var(--earth-light);
  flex: 1;
}

.book-card__footer {
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--paper);
  margin-top: auto;
  gap: var(--sp-3);
}

.book-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--earth-dark);
}

.book-card__actions {
  display: flex;
  gap: var(--sp-2);
}

.book-card__actions .btn {
  flex: 1;
  justify-content: center;
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}

/* =====================================================
   HOMEPAGE — INTRO SECTION
   ===================================================== */

.intro-section {
  background-color: var(--warm-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: center;
}

.intro-portrait {
  position: relative;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--sage-mist) 0%, var(--sage-pale) 40%, var(--lavender-pale) 70%, var(--rose-pale) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--sage-dark);
}

.portrait-placeholder svg {
  opacity: 0.4;
}

.portrait-placeholder p {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--earth-light);
}

.portrait-accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 180px;
  height: 180px;
  border-radius: var(--r-lg);
  background-color: var(--sage-mist);
  border: 3px solid var(--warm-white);
  z-index: -1;
}

.portrait-accent-2 {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--rose-pale);
  z-index: -1;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--sage-dark);
  padding-left: var(--sp-6);
  border-left: 2px solid var(--sage-pale);
  margin: var(--sp-4) 0;
}

/* =====================================================
   HOMEPAGE — BOOKS PREVIEW
   ===================================================== */

.books-preview {
  background-color: var(--cream);
}

/* =====================================================
   HOMEPAGE — DUAL AUDIENCE
   ===================================================== */

.dual-section {
  background: linear-gradient(to bottom right, var(--forest) 0%, var(--moss) 60%, var(--teal) 100%);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.dual-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.dual-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  margin: var(--sp-16) 0;
}

.dual-item {
  padding: var(--sp-24) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.dual-item__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-pale);
  margin-bottom: var(--sp-2);
}

.dual-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-pale);
  opacity: 0.8;
}

.dual-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.2;
  color: var(--warm-white);
}

.dual-item__title em {
  font-style: italic;
  color: var(--sage-light);
}

.dual-item__text {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(244, 239, 229, 0.75);
}

.dual-item .btn-secondary {
  color: var(--sage-pale);
  border-color: rgba(255,255,255,0.2);
  width: fit-content;
}

.dual-item .btn-secondary:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: var(--sage-pale);
  color: var(--warm-white);
}

/* =====================================================
   HOMEPAGE — NEWSLETTER
   ===================================================== */

.newsletter-section {
  background-color: var(--paper);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: var(--sp-3);
  width: 100%;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 300;
  background-color: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--r-sm);
  color: var(--earth-dark);
  transition: border-color var(--t-fast);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(120, 142, 100, 0.12);
}

.newsletter-form input::placeholder {
  color: var(--earth-light);
  font-style: italic;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */

.about-hero {
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 100%);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-16);
  align-items: end;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}

.about-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.bio-section {
  background-color: var(--warm-white);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-16);
  align-items: start;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.bio-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-8));
}

.sidebar-card {
  background-color: var(--cream);
  border: 1px solid var(--parchment);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
}

.sidebar-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sidebar-card__list li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--earth-mid);
}

.sidebar-card__list li::before {
  content: '—';
  color: var(--sage);
  flex-shrink: 0;
}

/* =====================================================
   BOOKS PAGE
   ===================================================== */

.books-hero {
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 100%);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
  border-bottom: 1px solid var(--parchment);
  padding-bottom: var(--sp-1);
}

.filter-btn {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--earth-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--earth-dark);
}

.filter-btn.active {
  color: var(--forest);
  border-bottom-color: var(--sage);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-8);
}

/* =====================================================
   BOOK DETAIL MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 36, 25, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: var(--warm-white);
  border-radius: var(--r-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--t-slow), opacity var(--t-mid);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__cover {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow: hidden;
}

.modal__cover .cover-placeholder {
  height: 100%;
  min-height: 380px;
}

.modal__body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper);
  border-radius: var(--r-sm);
  color: var(--earth-light);
  font-size: 1.2rem;
  transition: all var(--t-fast);
  z-index: 1;
}

.modal__close:hover {
  background-color: var(--parchment);
  color: var(--earth-dark);
}

.modal__tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.15;
}

.modal__author {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.modal__desc {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--earth-mid);
}

.format-selector,
.modal__format {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.format-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border: 1px solid var(--parchment);
  border-radius: 999px;
  background: transparent;
  color: var(--earth-mid);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
  line-height: 1;
}

.format-btn:hover {
  border-color: var(--sage);
  color: var(--forest);
}

.format-btn.active {
  background-color: var(--sage-mist);
  border-color: var(--sage);
  color: var(--forest);
  font-weight: 600;
}

.modal__format {
  padding-top: var(--sp-4);
}

.modal__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
}

.keyword-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--purple-deep);
  background-color: rgba(176, 164, 196, 0.18);
  border: 1px solid rgba(176, 164, 196, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.modal__price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--paper);
}

.modal__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
}

/* =====================================================
   SHOP PAGE
   ===================================================== */

.shop-hero {
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-12);
  background: linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 100%);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.contact-hero {
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  background-color: var(--sage-mist);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  flex-shrink: 0;
}

.contact-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: var(--sp-1);
}

.contact-item__value {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--earth-mid);
}

.contact-form-card {
  background-color: var(--warm-white);
  border: 1px solid var(--parchment);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--earth-mid);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  background-color: var(--cream);
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  color: var(--earth-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(120, 142, 100, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--earth-light);
  font-style: italic;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background-color: var(--forest);
  color: var(--cream);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.04em;
}

.footer-brand__text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244, 239, 229, 0.55);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  color: rgba(244, 239, 229, 0.6);
  transition: all var(--t-fast);
  font-size: var(--text-sm);
}

.social-link:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--warm-white);
}

.footer-col__title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(244, 239, 229, 0.55);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(244, 239, 229, 0.35);
  font-weight: 300;
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 200ms; }
.fade-in-delay-3 { transition-delay: 300ms; }
.fade-in-delay-4 { transition-delay: 400ms; }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */

.toast {
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--forest);
  color: var(--warm-white);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 400;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  opacity: 0;
  transition: all var(--t-mid);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   PAGE TRANSITIONS
   ===================================================== */

.page-enter {
  animation: pageEnter 400ms ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  :root {
    --sp-24: 5rem;
    --sp-32: 7rem;
  }

  .intro-grid,
  .bio-grid,
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

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

  .dual-divider {
    display: none;
  }

  .dual-item {
    padding: var(--sp-12) var(--sp-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--sp-16) 0;
  }

  .section--lg {
    padding: var(--sp-24) 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

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

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

  .modal__cover {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .modal__cover .cover-placeholder {
    min-height: 220px;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-6);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.mt-auto { margin-top: auto; }
.hidden  { display: none !important; }
.block   { display: block; }

/* "Upcoming" overlay */
.upcoming-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 25, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.upcoming-tag {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--warm-white);
  letter-spacing: 0.06em;
  text-align: center;
}

/* =====================================================
   BOTANICAL DECALS & PURPLE ACCENTS
   ===================================================== */

/* ─── Leaf divider ─── */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-2) 0;
  color: var(--lavender);
}

.leaf-divider::before,
.leaf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--lavender), transparent);
}

.leaf-divider svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Centered leaf ornament (no lines) */
.leaf-ornament {
  display: flex;
  justify-content: center;
  color: var(--lavender);
  opacity: 0.65;
  margin: var(--sp-2) 0;
}

/* ─── Pull-quote purple variant ─── */
.pull-quote--purple {
  color: var(--purple-deep);
  border-left-color: var(--lavender);
}

/* ─── Eyebrow purple variant ─── */
.eyebrow--purple {
  color: var(--purple);
}

/* ─── Section tint variants ─── */
.section--lavender-tint {
  background: linear-gradient(160deg,
    rgba(212, 206, 223, 0.22) 0%,
    var(--paper) 55%,
    rgba(212, 206, 223, 0.14) 100%);
}

/* Newsletter section gets lavender wash */
.newsletter-section {
  background: linear-gradient(135deg,
    rgba(212, 206, 223, 0.20) 0%,
    var(--paper) 40%,
    rgba(180, 168, 196, 0.14) 100%);
}

/* ─── Purple accent borders ─── */
.border-purple-top {
  border-top: 1px solid var(--lavender);
}

.border-purple-left {
  border-left: 2px solid var(--lavender) !important;
}

/* ─── Botanical positioning helpers ─── */
.botanical-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.leaf-decal {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ─── Small purple dot accent ─── */
.purple-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--lavender);
  vertical-align: middle;
  margin: 0 var(--sp-3);
}

/* ─── Section header with botanical underline ─── */
.title-botanical-underline {
  position: relative;
  display: inline-block;
}

.title-botanical-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--lavender), var(--sage-pale), var(--lavender));
  border-radius: 999px;
  opacity: 0.6;
}

/* ─── Sidebar card purple variant ─── */
.sidebar-card--purple {
  background-color: rgba(212, 206, 223, 0.2);
  border-color: var(--lavender-pale);
}

/* ─── About/bio leaf accent strip ─── */
.botanical-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) 0;
  color: var(--sage-pale);
  opacity: 0.5;
}

.botanical-strip::before,
.botanical-strip::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-pale));
}

.botanical-strip::after {
  background: linear-gradient(to left, transparent, var(--sage-pale));
}

/* ─── Hero gradient updated with purple radial ─── */
.hero-bg__gradient {
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(138, 174, 160, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(180, 200, 154, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(192, 128, 112, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse 50% 50% at 5% 20%,  rgba(176, 164, 196, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 50% 5%,  rgba(140, 122, 160, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, var(--warm-white) 0%, var(--cream) 60%, var(--paper) 100%) !important;
}
