/* ============================================================
   BELLAVERE PRESS — Stylesheet
   Independent publishing house. Literary, premium, restrained.
   ============================================================ */

:root {
  /* --- Brand palette --- */
  --near-black: #0A0908;
  --charcoal: #151311;
  --charcoal-2: #1C1916;
  --gold: #B8945B;
  --gold-light: #D2B477;
  --ivory: #F4F0E8;
  --ivory-dim: #E8E1D3;
  --muted: #A9A39A;
  --line: rgba(184, 148, 91, 0.28);
  --line-soft: rgba(244, 240, 232, 0.12);

  /* --- Type --- */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-accent: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Rhythm --- */
  --section-pad: clamp(4rem, 9vw, 8rem);
  --edge-pad: clamp(1.5rem, 6vw, 5rem);
  --max-width: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; }

body {
  background: var(--near-black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge-pad);
  padding-right: var(--edge-pad);
}

section { padding: var(--section-pad) 0; }

/* ---------- Brand mark (header/footer logo) ---------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark img {
  height: 26px;
  width: auto;
  display: block;
}
.footer-brand .brand-mark img { height: 30px; }

/* Visible focus states — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 1.5px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--near-black);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
  color: var(--ivory);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  color: var(--ivory);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--ivory);
}
.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ivory-dim);
  max-width: 46ch;
  line-height: 1.75;
}
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.9rem; }

.gold-divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.4rem 0;
}
.gold-divider.center { margin-left: auto; margin-right: auto; background: var(--gold); width: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--near-black);
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-text {
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding: 0 0 0.2rem 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.btn-text:hover { color: var(--ivory); border-color: var(--ivory); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.1rem var(--edge-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(10, 9, 8, 0.92);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
}
.brand span { color: var(--gold-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}
.nav-links a:not(.btn) {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--gold-light);
  transition: right 0.35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ivory); }
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 220;
}
.nav-toggle span {
  width: 22px; height: 1px; background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 26% 18%, rgba(184,148,91,0.14), transparent 62%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(184,148,91,0.07), transparent 60%),
    linear-gradient(165deg, var(--charcoal) 0%, var(--near-black) 65%);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 0%, rgba(10,9,8,0.5) 100%);
}
.hero-inner { max-width: 720px; }
.hero-inner .eyebrow { margin-bottom: 1.4rem; }
.hero-inner h1 { margin-bottom: 1.3rem; }
.hero-inner h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-light);
}
.hero-inner .lede { max-width: 52ch; margin-bottom: 2.2rem; color: var(--ivory-dim); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   INTRO
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 1rem;
}
.intro-card {
  background: var(--near-black);
  padding: 2.2rem 1.8rem;
}
.intro-card .icon { color: var(--gold); margin-bottom: 1.4rem; }
.intro-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.intro-card p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   BOOKS GRID
   ============================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.book-card {
  border: 1px solid var(--line-soft);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.book-card:hover { border-color: var(--line); transform: translateY(-3px); }
.book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin-bottom: 1.6rem;
  background: var(--charcoal);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.035); }
.book-genre {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.7rem;
}
.book-card h3 { margin-bottom: 0.25rem; }
.book-author { font-family: var(--font-accent); font-style: italic; color: var(--muted); font-size: 1.05rem; margin-bottom: 0.9rem; }
.book-desc { color: var(--muted); font-size: 0.92rem; flex-grow: 1; margin-bottom: 1.4rem; }

.book-card--future {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--muted);
  min-height: 100%;
}
.book-card--future .icon { color: var(--gold); margin-bottom: 1.2rem; opacity: 0.8; }
.book-card--future p { font-size: 0.9rem; max-width: 26ch; }

/* ============================================================
   FEATURED PUBLICATION
   ============================================================ */
.featured {
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.featured-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.featured-cover {
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.featured-cover img { width: 100%; }
.featured-cover::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.featured-text .book-genre { margin-top: 0.4rem; }
.featured-text h2 { margin: 0.6rem 0 0.2rem; }
.featured-text .book-author { font-size: 1.2rem; margin-bottom: 1.2rem; }
.featured-text p.lede { max-width: 52ch; margin-bottom: 1.8rem; }
.featured-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ============================================================
   AUTHORS
   ============================================================ */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.author-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.8rem;
  border: 1px solid var(--line-soft);
  padding: 2.2rem;
  align-items: start;
  transition: border-color 0.35s var(--ease);
}
.author-card:hover { border-color: var(--line); }
.author-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--charcoal-2), var(--near-black));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-light);
}
.author-card h3 { margin-bottom: 0.15rem; }
.author-role { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.author-bio { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.author-book-tag {
  font-size: 0.78rem; color: var(--gold-light);
  display: inline-block; margin-bottom: 1rem;
}

.author-card--future {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--muted);
  padding: 2.2rem;
}
.author-card--future .icon { color: var(--gold); margin-bottom: 1rem; opacity: 0.8; }
.author-card--future p { font-size: 0.9rem; max-width: 30ch; }

/* ============================================================
   AUTHOR / BOOK DETAIL PAGE
   ============================================================ */
.detail-hero {
  padding-top: 9rem;
  padding-bottom: 2rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.detail-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--charcoal-2), var(--near-black));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold-light);
}
.detail-book-cover { border: 1px solid var(--line-soft); }
.breadcrumb {
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--ivory); }

.featured-book-panel {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 1rem;
}
.service-card {
  background: var(--near-black);
  padding: 2.4rem 2rem;
  transition: background 0.35s var(--ease);
}
.service-card:hover { background: var(--charcoal); }
.service-card .icon {
  color: var(--gold);
  margin-bottom: 1.4rem;
  width: 30px; height: 30px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.89rem; line-height: 1.6; }
.services-empty {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  background: var(--near-black);
}

/* ============================================================
   FOR AUTHORS
   ============================================================ */
.for-authors {
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.for-authors .wrap { max-width: 760px; }
.for-authors h2 { margin: 0.8rem 0 1.2rem; }
.for-authors .lede { max-width: 56ch; margin: 0 auto 2.2rem; }
.for-authors .eyebrow { justify-content: center; }
.for-authors .eyebrow::before { display: none; }

/* ============================================================
   FORM
   ============================================================ */
.form-section .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.form-section .eyebrow { justify-content: center; }
.form-section .eyebrow::before { display: none; }

.submission-form {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: linear-gradient(180deg, var(--charcoal) 0%, rgba(21,19,17,0.4) 100%);
}
.form-group-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.form-group + .form-group-title,
.form-row + .form-group-title,
.field + .form-group-title { margin-top: 2.4rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
  margin-bottom: 0.55rem;
}
.field .optional { color: var(--muted); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: rgba(244, 240, 232, 0.03);
  border: 1px solid var(--line-soft);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(244, 240, 232, 0.05);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8945B' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.field-error {
  font-size: 0.78rem;
  color: #D98C6B;
  margin-top: 0.5rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #D98C6B; }
.field.has-error .field-error { display: block; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.4rem;
}
.checkbox-item, .confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  cursor: pointer;
}
.checkbox-item input, .confirm-item input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.file-drop {
  border: 1px dashed var(--line);
  padding: 1.8rem;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--gold); background: rgba(184,148,91,0.05); }
.file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.file-drop .icon { color: var(--gold); margin-bottom: 0.6rem; }
.file-drop p { font-size: 0.88rem; color: var(--ivory-dim); }
.file-drop .file-drop-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.3rem; }
.file-name-display {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--gold-light);
  display: none;
}

.confirm-row { margin: 1.8rem 0; }

/* Honeypot — hidden from real visitors, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: var(--gold); color: var(--gold-light); }
.form-status.is-error { border-color: #D98C6B; color: #D98C6B; }

/* ============================================================
   ABOUT / WHY
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.why-card { padding: 0.4rem 0; }
.why-card .icon { color: var(--gold); margin-bottom: 1.2rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.why-card p { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--charcoal); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.testimonial-note { color: var(--muted); font-size: 0.85rem; margin-top: -0.5rem; margin-bottom: 2.5rem; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.testimonial-card {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.6rem;
}
.testimonial-card p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ivory-dim);
  line-height: 1.55;
}
.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(184,148,91,0.12), transparent 70%),
    var(--near-black);
  border-top: 1px solid var(--line-soft);
}
.final-cta .eyebrow { justify-content: center; }
.final-cta .eyebrow::before { display: none; }
.final-cta h2 { margin: 0.9rem auto 1rem; max-width: 20ch; }
.final-cta p { color: var(--muted); margin-bottom: 2.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3.5rem 0 2.2rem;
  border-top: 1px solid var(--line-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand .brand { display: block; margin-bottom: 0.6rem; }
.footer-brand p { font-family: var(--font-accent); font-style: italic; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-nav a { font-size: 0.88rem; color: var(--ivory-dim); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--ivory-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 3rem; }
  .featured-cover { max-width: 340px; }
  .detail-grid { grid-template-columns: 240px 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: var(--near-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 1.2rem; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-image { order: -1; }
  .author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-portrait { max-width: 220px; margin: 0 auto; }
  .featured-book-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 700px) {
  .intro-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero { align-items: flex-end; padding-bottom: 3rem; }
  section { padding: 3.2rem 0; }
}

@media (max-width: 420px) {
  :root { --edge-pad: 1.25rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.76rem; }
}
