/* ============================================================
   Judy Allen Dodson — Author Website
   Modern redesign · Static HTML/CSS/JS
   ============================================================ */

/* ---------- Fonts are loaded via Google Fonts in <head> ----------
   Display: "Fraunces" (serif)  ·  Body/UI: "Outfit" (sans)
------------------------------------------------------------------ */

:root {
  /* Palette */
  --ink: #26191d;
  --ink-soft: #4d3d43;
  --muted: #7c6b70;
  --paper: #fdf9f4;
  --paper-2: #f7efe6;
  --white: #ffffff;
  --accent: #d93a5c;          /* raspberry red — Judy's signature red */
  --accent-dark: #b02545;
  --accent-soft: #fbe3e9;
  --gold: #e9a83b;
  --gold-soft: #fdf1dc;
  --teal: #2e6e65;
  --teal-soft: #e0efec;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(38, 25, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 25, 29, 0.1);
  --shadow-lg: 0 24px 60px rgba(38, 25, 29, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--tint {
  background: var(--paper-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

.display-xl {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  letter-spacing: -0.015em;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.squiggle {
  display: block;
  width: 96px;
  height: 12px;
  margin-top: 14px;
  color: var(--gold);
}

.section-head--center .squiggle {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 58, 92, 0.32);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(217, 58, 92, 0.4);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-3px);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    padding 0.35s var(--ease);
  padding: 18px 0;
}

.site-header.is-scrolled {
  background: rgba(253, 249, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(38, 25, 29, 0.08);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
}

.brand img {
  width: 54px;
  height: auto;
  transition: transform 0.3s var(--ease);
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 11px 24px;
  font-size: 0.82rem;
}

.nav-cta .btn.is-active {
  background: var(--accent-dark);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 10px 24px rgba(217, 58, 92, 0.32);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: var(--white);
  border: 1px solid rgba(38, 25, 29, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  z-index: 130;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(150px, 20vw, 210px) 0 clamp(56px, 8vw, 90px);
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(233, 168, 59, 0.14), transparent 70%),
    radial-gradient(700px 340px at 10% 90%, rgba(217, 58, 92, 0.1), transparent 70%),
    var(--paper-2);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 60px;
  background: var(--paper);
  clip-path: ellipse(58% 100% at 50% 100%);
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.page-hero h1 {
  max-width: 800px;
}

.page-hero .lede {
  max-width: 640px;
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(140px, 16vw, 180px) 0 60px;
  background:
    radial-gradient(720px 420px at 88% 12%, rgba(233, 168, 59, 0.16), transparent 70%),
    radial-gradient(700px 420px at 2% 95%, rgba(217, 58, 92, 0.1), transparent 70%),
    var(--paper-2);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 70px;
  background: var(--paper);
  clip-path: ellipse(58% 100% at 50% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin-bottom: 8px;
}

.hero-copy h1 .accent-word {
  position: relative;
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.role-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-copy .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero portrait */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.hero-portrait {
  position: relative;
  z-index: 2;
  border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--gold-soft), var(--accent-soft));
  box-shadow: var(--shadow-lg);
}

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

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -26px -20px auto auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px dashed rgba(217, 58, 92, 0.35);
  animation: spin-slow 26s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.float-card--books {
  left: -8%;
  bottom: 16%;
}

.float-card--books .fc-icon {
  background: var(--accent-soft);
}

.float-card--award {
  right: -6%;
  top: 12%;
  animation-delay: 2.6s;
}

.float-card--award .fc-icon {
  background: var(--gold-soft);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint::after {
  content: "";
  width: 1.5px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Intro (Hi, I'm...) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.intro-media {
  position: relative;
}

.intro-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}

.intro-media:hover .frame {
  transform: rotate(0deg) scale(1.02);
}

.intro-media::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-soft),
    var(--accent-soft) 3px,
    transparent 3px,
    transparent 12px
  );
  z-index: 0;
}

.intro-media .frame,
.intro-media img {
  position: relative;
  z-index: 1;
}

.intro-copy p {
  margin-bottom: 18px;
}

.intro-copy .btn {
  margin-top: 10px;
}

/* ---------- Books ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 25, 29, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.book-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  transform: scale(0.6);
}

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

.book-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.book-card > * {
  position: relative;
  z-index: 1;
}

.book-cover {
  align-self: start;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 14px 14px 34px rgba(38, 25, 29, 0.22);
  transform: perspective(800px) rotateY(6deg);
  transition: transform 0.5s var(--ease);
}

.book-card:hover .book-cover {
  transform: perspective(800px) rotateY(0deg) scale(1.03);
}

.book-info h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-soft);
  color: #8a5a12;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.book-info p {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.book-info .btn {
  padding: 12px 26px;
  font-size: 0.82rem;
}

/* Books page — feature rows */
.book-feature {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.book-feature + .book-feature {
  margin-top: clamp(70px, 9vw, 120px);
}

.book-feature:nth-child(even) .bf-media {
  order: 2;
}

.bf-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px);
}

.bf-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 56% 44% / 48% 42% 58% 52%;
  background: linear-gradient(150deg, var(--accent-soft), var(--gold-soft));
  z-index: 0;
}

.book-feature:nth-child(even) .bf-media::before {
  background: linear-gradient(150deg, var(--teal-soft), var(--gold-soft));
}

.bf-media img {
  position: relative;
  z-index: 1;
  width: min(78%, 330px);
  border-radius: 12px;
  box-shadow: 22px 26px 50px rgba(38, 25, 29, 0.3);
  transform: rotate(2.5deg);
  transition: transform 0.5s var(--ease);
}

.bf-media:hover img {
  transform: rotate(0deg) scale(1.03);
}

.bf-copy h2 {
  margin-bottom: 16px;
}

.bf-copy p {
  margin-bottom: 16px;
}

.bf-copy .btn {
  margin-top: 12px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: var(--paper-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 25, 29, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item .zoom-ic {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:hover::after,
.gallery-item:hover .zoom-ic {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(24, 15, 18, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 4vh 4vw;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
}

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 25, 29, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .quote-mark {
  position: absolute;
  top: 22px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 1;
  color: var(--accent-soft);
  user-select: none;
}

.testimonial-card blockquote {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.testimonial-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stars */
.stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 80px) clamp(28px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cta-band::before {
  width: 300px;
  height: 300px;
  left: -110px;
  top: -110px;
  background: radial-gradient(circle, rgba(217, 58, 92, 0.35), transparent 70%);
}

.cta-band::after {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(233, 168, 59, 0.28), transparent 70%);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* ---------- About page ---------- */
.delights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.delight-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 25, 29, 0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.delight-card .d-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 14px;
  background: var(--accent-soft);
}

.delight-card:nth-child(3n + 2) .d-icon {
  background: var(--gold-soft);
}

.delight-card:nth-child(3n) .d-icon {
  background: var(--teal-soft);
}

.delight-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.delight-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Story rows */
.story-row {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.story-row + .story-row {
  margin-top: clamp(64px, 9vw, 110px);
}

.story-row:nth-child(even) .story-media {
  order: 2;
}

.story-media {
  position: relative;
}

.story-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.story-media::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -16px;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-soft),
    var(--gold-soft) 3px,
    transparent 3px,
    transparent 11px
  );
  z-index: -1;
}

.story-row:nth-child(even) .story-media::before {
  inset: auto -16px -16px auto;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-soft),
    var(--accent-soft) 3px,
    transparent 3px,
    transparent 11px
  );
}

.story-copy h2 {
  margin-bottom: 18px;
}

.story-copy p + p {
  margin-top: 16px;
}

/* ---------- Author visits ---------- */
.visit-intro {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.visit-intro p {
  font-size: 1.06rem;
}

.visit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
}

.visit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 25, 29, 0.05);
  border-top: 5px solid var(--accent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.visit-card:nth-child(2) { border-top-color: var(--gold); }
.visit-card:nth-child(3) { border-top-color: var(--teal); }
.visit-card:nth-child(4) { border-top-color: var(--accent-dark); }

.visit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.visit-card--wide {
  grid-column: 1 / -1;
}

.visit-card .v-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 16px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}

.visit-card:nth-child(2) .v-icon { background: var(--gold-soft); }
.visit-card:nth-child(3) .v-icon { background: var(--teal-soft); }
.visit-card:nth-child(4) .v-icon { background: var(--accent-soft); }

.visit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.visit-card p {
  font-size: 0.97rem;
}

/* ---------- Media page ---------- */
.media-section + .media-section {
  margin-top: clamp(56px, 8vw, 90px);
}

.media-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.media-label h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.media-label .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, rgba(38, 25, 29, 0.16), transparent);
}

.media-label .m-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.35rem;
  background: var(--accent-soft);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 34px);
}

.media-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 25, 29, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  color: inherit;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.media-card .thumb {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.media-card:hover .thumb img {
  transform: scale(1.08);
}

.media-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.media-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.media-card .link-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-card .link-label svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.media-card:hover .link-label svg {
  transform: translate(3px, -3px);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: start;
}

.contact-aside .agent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 25, 29, 0.05);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 3.5vw, 38px);
  margin-bottom: 26px;
}

.agent-card .a-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.agent-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.agent-card p {
  font-size: 0.97rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.download-row .btn {
  flex: 1 1 200px;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.8rem;
}

/* Social row (contact aside) */
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 25, 29, 0.05);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-card > p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-field label .req {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(38, 25, 29, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 58, 92, 0.12);
}

.form-note {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-note.is-visible {
  display: block;
}

/* ---------- Coming soon (testimonials page) ---------- */
.coming-soon {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 0 0;
}

.coming-soon .cs-badge {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 2.4rem;
  margin-bottom: 26px;
  animation: floaty 5s ease-in-out infinite;
}

.coming-soon h2 {
  margin-bottom: 12px;
}

.coming-soon p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(60px, 8vw, 90px) 0 0;
  margin-top: clamp(64px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(217, 58, 92, 0.16), transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  position: relative;
  z-index: 1;
}

.footer-brand img {
  width: 74px;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.footer-brand .tag {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    color 0.3s var(--ease);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
}

/* Light variant (contact aside) */
.social-row .social-btn {
  background: var(--paper-2);
  color: var(--ink);
}

.social-row .social-btn:hover {
  background: var(--accent);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-links a::before {
  content: "→";
  color: var(--accent);
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-newsletter p {
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px;
  transition: border-color 0.3s var(--ease);
}

.newsletter-form:focus-within {
  border-color: var(--accent);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 18px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  transition: background 0.3s var(--ease);
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}

.newsletter-note {
  display: none;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #7fd6c7;
}

.newsletter-note.is-visible {
  display: block;
}

.footer-bottom {
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .heart {
  color: var(--accent);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    background 0.3s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy .eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  .hero-roles { justify-content: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 400px); }

  .books-grid { grid-template-columns: 1fr; }
  .delights-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; }

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

  .intro-media {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    background: var(--paper);
    box-shadow: -20px 0 60px rgba(38, 25, 29, 0.18);
    transform: translateX(105%);
    transition: transform 0.45s var(--ease);
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 44px 44px;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(38, 25, 29, 0.07);
  }

  .main-nav li:last-child { border-bottom: 0; }

  .main-nav a {
    display: block;
    font-size: 1.15rem;
    font-family: var(--font-display);
    padding: 14px 0;
  }

  .main-nav a::after { display: none; }

  .main-nav a.is-active { color: var(--accent); }

  .nav-cta {
    margin: 26px 0 0;
    width: 100%;
  }

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

  /* Overlay must stay BELOW .site-header (z-index 100): the nav panel
     lives inside the header's stacking context and can never escape it. */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 15, 18, 0.45);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  /* backdrop-filter on an ancestor turns it into the containing block for
     fixed descendants — it would trap/clip the slide-over nav panel. */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(253, 249, 244, 0.97);
  }

  .nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-locked { overflow: hidden; }

  .book-feature,
  .story-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .book-feature:nth-child(even) .bf-media,
  .story-row:nth-child(even) .story-media {
    order: 0;
  }

  .bf-media { max-width: 420px; margin-inline: auto; }
  .story-media { max-width: 460px; margin-inline: auto; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .visit-cards { grid-template-columns: 1fr; }

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

@media (max-width: 560px) {
  body { font-size: 16px; }

  /* Keep decorative offsets inside the viewport on narrow screens */
  .intro-media::before {
    inset: 24px 0 -18px 24px;
  }

  .story-media::before {
    inset: -16px auto auto 0;
  }

  .story-row:nth-child(even) .story-media::before {
    inset: auto 0 -16px auto;
  }

  .brand-tag { display: none; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.05rem; }

  .book-card {
    grid-template-columns: 1fr;
  }

  .book-cover {
    width: 170px;
    margin-inline: auto;
    transform: none;
  }

  .delights-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16 / 11; }

  .media-card { flex-direction: column; }
  .media-card .thumb { flex-basis: auto; width: 100%; height: 170px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { justify-content: center; text-align: center; }

  .float-card--books { left: -2%; }
  .float-card--award { right: -2%; }

  .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .download-row .btn { flex-basis: 100%; }
}
