/* ==========================================================================
   Carlia Barkhuizen Author Site
   Design System
   ========================================================================== */

:root {
  --color-midnight-sapphire: #101A3A;
  --color-royal-sapphire: #3159B7;
  --color-powder-blue: #BFD8F4;
  --color-ice-blue: #F3F8FC;
  --color-blush-pink: #EFC4D5;
  --color-soft-peach: #F5BFAE;
  --color-champagne-gold: #E4C477;
  --color-amber: #C58A35;
  --color-copper: #A96752;
  --color-warm-brown: #63443D;
  --color-white: #FFFFFF;

  --gradient-sapphire-luxury: linear-gradient(135deg, #101A3A 0%, #3159B7 55%, #7C9EDB 100%);
  --gradient-feminine-ice: linear-gradient(135deg, #BFD8F4 0%, #F3F8FC 55%, #EFC4D5 100%);
  --gradient-blush-sunset: linear-gradient(135deg, #EFC4D5 0%, #F5BFAE 55%, #E4C477 100%);
  --gradient-royal-champagne: linear-gradient(135deg, #3159B7 0%, #101A3A 55%, #E4C477 100%);
  --gradient-soft-pearl: linear-gradient(135deg, #FFFFFF 0%, #F3F8FC 55%, #EFC4D5 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(16,26,58,0.84) 0%, rgba(49,89,183,0.60) 45%, rgba(16,26,58,0.42) 100%);

  --color-text-heading: var(--color-midnight-sapphire);
  --color-text-body: #35405C;
  --color-text-on-dark: #F3F8FC;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(16, 26, 58, 0.14);
  --shadow-card: 0 24px 60px rgba(16, 26, 58, 0.18);

  --nav-height: 66px;
  --max-width: 1180px;
  --measure: 62ch;
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-ice-blue);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.2em; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 52px 0;
}

.bg-ice { background: var(--color-ice-blue); }
.bg-white { background: var(--color-white); }
.bg-midnight { background: var(--color-midnight-sapphire); color: var(--color-text-on-dark); }
.bg-midnight h2, .bg-midnight h3 { color: var(--color-white); }

.bg-floral {
  position: relative;
  background-image:
    linear-gradient(160deg, rgba(191,216,244,0.88) 0%, rgba(243,248,252,0.93) 50%, rgba(239,196,213,0.85) 100%),
    url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 18px;
  font-weight: 600;
}

.bg-midnight .eyebrow,
.on-dark .eyebrow,
.eyebrow.on-dark {
  color: var(--color-champagne-gold);
}

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

.lede {
  font-size: 1.05rem;
  color: var(--color-text-body);
}

.bg-midnight .lede { color: #C9D5EC; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--color-midnight-sapphire);
  background-image: linear-gradient(135deg, rgba(16,26,58,0.61) 0%, rgba(49,89,183,0.43) 100%), url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center 38%;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(16, 26, 58, 0.45);
  border: 1px solid rgba(239, 196, 213, 0.9);
  box-shadow: var(--shadow-soft), 0 0 12px rgba(239, 196, 213, 0.38);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-image: linear-gradient(135deg, rgba(16,26,58,0.67) 0%, rgba(16,26,58,0.46) 100%), url('../images/hero-floral.webp');
  border-color: var(--color-blush-pink);
  box-shadow: var(--shadow-soft), 0 0 16px rgba(239, 196, 213, 0.5);
}

.btn-primary:active {
  box-shadow: var(--shadow-soft), 0 0 10px rgba(239, 196, 213, 0.4);
}

.btn-secondary,
.view-book-link,
.reader-nav-btn,
.back-link {
  background: var(--color-white);
  color: var(--color-midnight-sapphire);
  border: 2px solid var(--color-champagne-gold);
  box-shadow: 0 0 0 4px rgba(228, 196, 119, 0.22), 0 10px 24px rgba(16, 26, 58, 0.12);
}

.btn-secondary:hover,
.view-book-link:hover,
.reader-nav-btn:hover:not(:disabled),
.back-link:hover {
  background: #FFF8E6;
  box-shadow: 0 0 0 5px rgba(228, 196, 119, 0.34), 0 12px 28px rgba(16, 26, 58, 0.16);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(243, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 26, 58, 0.06);
}

.nav-bar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  white-space: nowrap;
  min-width: 0;
  color: var(--color-midnight-sapphire);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-midnight-sapphire);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-royal-sapphire);
}

.nav-links a.is-active {
  border-bottom-color: var(--color-royal-sapphire);
  color: var(--color-royal-sapphire);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta {
  display: none;
  padding: 10px 24px;
  font-size: 0.82rem;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  align-items: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-midnight-sapphire);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
}

/* Mobile overlay menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-midnight-sapphire);
  background-image: linear-gradient(180deg, rgba(16,26,58,0.76) 0%, rgba(16,26,58,0.69) 100%), url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center;
  z-index: 900;
  display: flex;
  padding: 22px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__panel {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 30px 30px 32px;
  background: linear-gradient(160deg, #1A2A5E 0%, #101A3A 70%);
  border: 1px solid rgba(228, 196, 119, 0.7);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(4, 9, 26, 0.55);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-menu__top .wordmark {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-menu__close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(228, 196, 119, 0.85);
  background: transparent;
  color: var(--color-white);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__links {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu__links a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E4EAF6;
  padding: 13px 0;
}

.mobile-menu__links a.is-active {
  color: var(--color-champagne-gold);
}

.mobile-menu__cta {
  margin-top: 22px;
  padding: 17px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 0 90px;
  background-image: var(--gradient-hero-overlay), url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero--compact {
  min-height: 0;
  padding: 72px 0 60px;
}

.hero--home {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  padding: 56px 0;
}

.hero--home .eyebrow {
  font-size: clamp(0.9rem, 3.6vw, 1.25rem);
  letter-spacing: 0.26em;
  margin-bottom: 24px;
}

.hero--home h1 {
  font-size: clamp(2.7rem, 13vw, 6.2rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  animation: hero-rise 0.9s ease both;
}

.hero h1 {
  color: var(--color-white);
}

.hero .lede {
  color: #E8EEF8;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-split {
  position: relative;
  padding: 84px 0 72px;
  background-image: var(--gradient-hero-overlay), url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero-split__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-split__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-split h1 { color: var(--color-white); }

.hero-split .lede {
  color: #E8EEF8;
  font-size: 1.05rem;
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(228, 196, 119, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-champagne-gold);
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background: rgba(228, 196, 119, 0.16);
}

/* --------------------------------------------------------------------------
   Cards, book cover
   -------------------------------------------------------------------------- */

.book-frame {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.book-frame img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.featured-book {
  text-align: center;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-champagne-gold), transparent);
  margin: 26px 0;
}

/* --------------------------------------------------------------------------
   Two column layout (About page)
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.two-col > *, .hero-split__grid > *, .footer-grid > *, .modal > * { min-width: 0; }

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   Preview reader
   -------------------------------------------------------------------------- */

.reader-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 40px 32px;
}

.reader-chapter-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-royal-sapphire);
  margin-bottom: 10px;
  font-weight: 600;
}

.reader-chapter-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 26px;
  color: var(--color-text-heading);
}

.reader-body {
  max-height: 420px;
  overflow-wrap: anywhere;
  overflow-y: auto;
  padding-right: 12px;
}

.reader-body p {
  margin: 0 0 1.1em;
}

.reader-body p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--color-royal-sapphire);
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 6px;
}

.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 12px;
}

.reader-dots {
  display: flex;
  gap: 10px;
}

.reader-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-powder-blue);
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reader-dots button.is-active {
  background: var(--color-royal-sapphire);
  transform: scale(1.25);
}

.reader-nav-btn {
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 20px;
}

.reader-nav-btn:disabled {
  opacity: 0.5;
  box-shadow: none;
  cursor: not-allowed;
}

.reader-lead h3 {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

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

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-warm-brown);
  margin-bottom: 8px;
  font-weight: 600;
}

.bg-midnight .form-field label { color: var(--color-champagne-gold); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 26, 58, 0.14);
  background: var(--color-ice-blue);
  color: var(--color-text-heading);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-royal-sapphire);
  background: var(--color-white);
}

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

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-body);
}

.form-success {
  display: none;
  background: rgba(228, 196, 119, 0.16);
  border: 1px solid var(--color-champagne-gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--color-warm-brown);
}

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

/* --------------------------------------------------------------------------
   Books grid + modal
   -------------------------------------------------------------------------- */

.book-grid {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.book-grid--multi {
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
}

.book-grid--multi .book-card {
  flex: 1 1 320px;
  max-width: 380px;
  width: auto;
}

.badge--soon {
  background: var(--gradient-feminine-ice);
  color: var(--color-midnight-sapphire);
}

.book-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--gradient-blush-sunset);
  color: var(--color-warm-brown);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 18px;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal-sapphire);
  border: 1px solid var(--color-royal-sapphire);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin: 14px 0 18px;
}

.book-card .book-frame {
  margin-bottom: 22px;
}

.book-card p {
  color: var(--color-text-body);
}

.view-book-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 11px 28px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 58, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 950;
  padding: 24px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: clip;
  position: relative;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .modal {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.modal__visual {
  background: var(--gradient-royal-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 800px) {
  .modal__visual {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}

.modal__body {
  padding: 40px 38px;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-ice-blue);
  color: var(--color-midnight-sapphire);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--color-warm-brown);
  font-weight: 600;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Login card
   -------------------------------------------------------------------------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  background-image: var(--gradient-hero-overlay), url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center;
}

.login-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 34px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-card .wordmark {
  display: block;
  margin-bottom: 8px;
}

.login-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 30px;
  display: block;
}

.login-error {
  display: none;
  color: #B23A48;
  font-size: 0.86rem;
  margin-top: 6px;
  text-align: left;
}

.login-error.is-visible { display: block; }

.back-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-midnight-sapphire);
  color: var(--color-text-on-dark);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 28px 20px;
  padding-bottom: 28px;
  text-align: left;
}

.footer-brand { grid-column: 1 / -1; }
.footer-explore { grid-column: 1; grid-row: 2 / span 2; }
.footer-connect { grid-column: 2; grid-row: 2; }
.footer-brand-credit { grid-column: 2; grid-row: 3; }

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    grid-template-rows: auto;
    gap: 40px;
    padding-bottom: 36px;
  }
  .footer-brand,
  .footer-explore,
  .footer-connect,
  .footer-brand-credit { grid-column: auto; grid-row: auto; }
}

.footer-grid h4 {
  color: var(--color-champagne-gold);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-brand .wordmark {
  color: var(--color-white);
  display: block;
  font-size: 1.35rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #D7DFF0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-champagne-gold);
}

.footer-brand-credit p,
.footer-brand-credit a {
  display: block;
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #B7C3DE;
}

.footer-brand-credit a {
  color: var(--color-champagne-gold);
  display: inline-block;
  border-bottom: 1px solid rgba(228, 196, 119, 0.5);
  margin-bottom: 0;
}

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

.footer-social .social-icon {
  width: 42px;
  height: 42px;
}

.footer-bottom {
  padding: 4px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  font-size: 0.8rem;
  color: #9FADC9;
  text-align: left;
}

@media (min-width: 960px) {
  .footer-bottom { justify-content: center; text-align: center; padding-top: 0; }
}

html.ends-with-footer {
  background: var(--color-midnight-sapphire);
}

/* --------------------------------------------------------------------------
   Utility sections
   -------------------------------------------------------------------------- */

.callout {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-text-heading);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.quote-block .signature {
  display: block;
  margin-top: 22px;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.1rem;
  color: var(--color-royal-sapphire);
}

.pill-note {
  display: inline-block;
  background: var(--color-powder-blue);
  color: var(--color-midnight-sapphire);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 40px 0; }
  .reader-card { padding: 32px 20px 24px; }
  .modal__body { padding: 30px 22px; }
  .modal__visual { padding: 30px 20px; }
  .card { padding: 28px 22px; }
  .book-card { padding: 26px 20px; }
  .btn { padding: 13px 26px; }
  .modal-backdrop { padding: 14px; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .wordmark { font-size: 1.1rem; }
  .login-card { padding: 32px 22px; }
  .btn-row { gap: 12px; }
}

/* Review stars */
.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--color-champagne-gold);
}

/* --------------------------------------------------------------------------
   Homepage only: full screen photo hero with the header layered over it
   -------------------------------------------------------------------------- */

.home-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.home-page .site-header.is-scrolled {
  background: rgba(243, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(16, 26, 58, 0.06);
}

.home-page .site-header:not(.is-scrolled) .wordmark,
.home-page .site-header:not(.is-scrolled) .nav-links a {
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(16, 26, 58, 0.55);
}

.home-page .site-header:not(.is-scrolled) .nav-links a.is-active {
  border-bottom-color: var(--color-champagne-gold);
}

.home-page .site-header:not(.is-scrolled) .hamburger span {
  background: var(--color-white);
  box-shadow: 0 1px 6px rgba(16, 26, 58, 0.5);
}

.home-page .hero--home {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 24px) 0 56px;
  background-image:
    linear-gradient(180deg, rgba(16, 26, 58, 0.28) 0%, rgba(16, 26, 58, 0.12) 30%, rgba(16, 26, 58, 0.13) 65%, rgba(16, 26, 58, 0.29) 100%),
    url('../images/hero-floral.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.home-page .hero--home .eyebrow,
.home-page .hero--home h1 {
  text-shadow: 0 2px 26px rgba(16, 26, 58, 0.4), 0 1px 3px rgba(16, 26, 58, 0.5);
}

.home-page .hero--home .eyebrow {
  color: var(--color-champagne-gold);
}

.home-page .hero--home h1 {
  color: var(--color-white);
}

.hero--home .hero__inner {
  max-width: 1100px;
}

/* Footer spacing: keep vertical padding on small phones, where .container resets it */
.site-footer .footer-grid { padding-bottom: 30px; }
.site-footer .footer-bottom { padding-top: 6px; padding-bottom: 30px; }

@media (min-width: 960px) {
  .site-footer .footer-grid { padding-bottom: 36px; }
  .site-footer .footer-bottom { padding-top: 0; padding-bottom: 28px; }
}

.book-subheading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-royal-sapphire);
  margin: -6px 0 18px;
}
