/* ==========================================================================
   The Adventures of Izzy and Enzo — Storybook Design System
   Palette inspired directly by the North Idaho watercolor book cover
   ========================================================================== */

:root {
  --paper: #fbf8f0;
  --paper-warm: #f3ecdc;
  --paper-card: #fffdf8;
  --lake-navy: #1d3c5c;
  --lake-deep: #142b44;
  --lake-sky: #5e92b8;
  --lake-mist: #dceaf4;
  --pine-green: #2f5d3a;
  --pine-light: #e3efe6;
  --golden-ochre: #c98a36;
  --golden-soft: #f7ebd2;
  --berry-coral: #c8685b;
  --berry-soft: #faeae7;
  --wood-dark: #6b4423;
  --wood-mid: #8b5a2b;
  --wood-light: #d7b282;
  --ink: #252b26;
  --ink-muted: #535d55;
  --border-soft: rgba(29, 60, 92, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Patrick Hand', cursive;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-paper: 0 10px 30px rgba(29, 60, 92, 0.08), 0 2px 6px rgba(29, 60, 92, 0.04);
  --shadow-book: 16px 22px 42px rgba(20, 43, 68, 0.28), 0 4px 10px rgba(20, 43, 68, 0.14);
  --shadow-lift: 0 18px 38px rgba(29, 60, 92, 0.14);
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(94, 146, 184, 0.08), transparent 36%),
    radial-gradient(circle at 88% 22%, rgba(201, 138, 54, 0.08), transparent 34%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--lake-navy);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--golden-ochre);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  width: min(100% - 2.25rem, var(--max-w));
  margin-inline: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lake-navy);
  letter-spacing: -0.01em;
}

.brand-paw {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine-light);
  color: var(--pine-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid rgba(47, 93, 58, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--pine-green);
}

.nav-cta {
  padding: 0.58rem 1.15rem;
  border-radius: 999px;
  background: var(--pine-green);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-cta:hover {
  background: #23492c;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: var(--paper-warm);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  color: var(--lake-navy);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--pine-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 93, 58, 0.24);
}

.btn-primary:hover {
  background: #23492c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 93, 58, 0.3);
}

.btn-secondary {
  background: var(--paper-card);
  color: var(--lake-navy);
  border-color: rgba(29, 60, 92, 0.24);
}

.btn-secondary:hover {
  background: var(--lake-mist);
  border-color: var(--lake-navy);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--golden-ochre);
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 138, 54, 0.28);
}

.btn-gold:hover {
  background: #b17526;
  transform: translateY(-2px);
}

/* ==========================================================================
   Wooden Trail Sign & Pinecone Divider (Signature Storybook Motifs)
   ========================================================================== */

.trail-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #deb887 0%, #c89a61 100%);
  color: #3a220e;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border: 2px solid #8b5a2b;
  box-shadow: 0 3px 0 #70461e, 0 6px 14px rgba(58, 34, 14, 0.14);
}

.pinecone-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 2.5rem;
  max-width: 360px;
  color: var(--golden-ochre);
}

.pinecone-divider::before,
.pinecone-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 138, 54, 0.55), transparent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 0 4.5rem;
  background:
    radial-gradient(ellipse 85% 65% at 75% 30%, rgba(94, 146, 184, 0.18), transparent 70%),
    linear-gradient(180deg, #eef5f9 0%, var(--paper) 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 1.1rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  line-height: 1.07;
  font-weight: 800;
  color: var(--lake-navy);
  font-variation-settings: "SOFT" 100;
}

.hero-copy h1 span {
  color: var(--pine-green);
}

.hero-motto {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--wood-dark);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* 3D Hardcover Book Presentation */
.hero-book-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-frame {
  position: relative;
  width: min(100%, 340px);
  border-radius: 6px 18px 18px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transform: rotate(-1.8deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  cursor: pointer;
  background: var(--lake-navy);
  border: 0;
  padding: 0;
  text-align: left;
}

.book-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 3%,
    rgba(255, 255, 255, 0.12) 6%,
    transparent 12%
  );
  pointer-events: none;
}

.book-frame:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: 20px 28px 50px rgba(20, 43, 68, 0.34);
}

.book-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.book-badge {
  position: relative;
  margin-bottom: -14px;
  align-self: center;
  background: var(--golden-ochre);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(139, 90, 43, 0.32);
  transform: rotate(2deg);
  z-index: 2;
}

.book-caption {
  margin-top: 1.15rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--lake-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 0;
  padding: 0.25rem 0.6rem;
}

.book-caption:hover {
  color: var(--pine-green);
  text-decoration: underline;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-warm {
  background: var(--paper-warm);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.8rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--pine-green);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  color: var(--lake-navy);
  font-variation-settings: "SOFT" 100;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

/* ==========================================================================
   Meet the Pack — Stars (Izzy & Enzo) + Extended Family
   ========================================================================== */

.stars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.star-card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 1.5rem;
  align-items: center;
  border: 3px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.star-card--izzy {
  border-color: rgba(200, 104, 91, 0.38);
}

.star-card--enzo {
  border-color: rgba(94, 146, 184, 0.42);
}

.star-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
}

.star-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.star-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.star-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
}

.star-card--izzy h3 {
  color: var(--berry-coral);
}

.star-card--enzo h3 {
  color: var(--lake-navy);
}

.star-weight {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.star-card--izzy .star-weight {
  background: var(--berry-soft);
  color: var(--berry-coral);
}

.star-card--enzo .star-weight {
  background: var(--lake-mist);
  color: var(--lake-navy);
}

.star-tagline {
  font-family: var(--font-hand);
  font-size: 1.28rem;
  margin: 0.15rem 0 0.7rem;
}

.star-card--izzy .star-tagline {
  color: var(--berry-coral);
}

.star-card--enzo .star-tagline {
  color: var(--lake-sky);
}

.star-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* Extended Family Pack */
.family-subhead {
  text-align: center;
  margin-bottom: 2rem;
}

.family-subhead h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--lake-navy);
  margin: 0.5rem 0 0.35rem;
}

.family-subhead p {
  margin: 0;
  color: var(--ink-muted);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.pet-card {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.95rem 1.25rem;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.pet-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
  margin-bottom: 0.95rem;
  background: var(--paper-warm);
}

.pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.35s ease;
}

.pet-card:hover .pet-photo img {
  transform: scale(1.04);
}

.pet-pill {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.pill-gold { background: var(--golden-soft); color: #8c5a14; }
.pill-pine { background: var(--pine-light); color: var(--pine-green); }
.pill-berry { background: var(--berry-soft); color: #a3463a; }
.pill-lake { background: var(--lake-mist); color: var(--lake-navy); }

.pet-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--lake-navy);
}

.pet-aka {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--wood-mid);
  margin: 0.1rem 0 0.5rem;
}

.pet-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Books & Shop Section
   ========================================================================== */

.featured-book {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.featured-book-cover {
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow: 10px 14px 28px rgba(20, 43, 68, 0.22);
}

.featured-book-cover img {
  width: 100%;
  height: auto;
}

.book-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--pine-light);
  color: var(--pine-green);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.featured-book-info h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  color: var(--lake-navy);
}

.book-author {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--wood-mid);
  margin: 0 0 1rem;
}

.featured-book-info p {
  color: var(--ink-muted);
  margin: 0 0 1.2rem;
}

.book-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lake-navy);
}

.book-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.upcoming-card {
  background: rgba(255, 253, 248, 0.78);
  border: 2px dashed rgba(29, 60, 92, 0.2);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.upcoming-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--lake-navy);
}

.upcoming-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.upcoming-link {
  margin-top: 0.4rem;
  font-weight: 800;
  color: var(--pine-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.upcoming-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Trail Blog Section
   ========================================================================== */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  border: 1.5px solid var(--border-soft);
  background: var(--paper-card);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--pine-green);
  color: var(--pine-green);
}

.filter-btn.is-active {
  background: var(--lake-navy);
  color: #fff;
  border-color: var(--lake-navy);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.blog-card {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.blog-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-warm);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pine-green);
  margin-bottom: 0.5rem;
}

.blog-date {
  color: var(--ink-muted);
  font-weight: 700;
}

.blog-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.28;
  color: var(--lake-navy);
}

.blog-card p {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  flex: 1;
}

.blog-read-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--pine-green);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-read-btn:hover {
  color: var(--lake-navy);
  text-decoration: underline;
}

/* ==========================================================================
   Subscribe / Adventure Club Postcard
   ========================================================================== */

.subscribe-card {
  position: relative;
  background: linear-gradient(135deg, var(--lake-navy) 0%, #244b6d 60%, var(--pine-green) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.4rem);
  box-shadow: 0 20px 44px rgba(20, 43, 68, 0.22);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.subscribe-copy h2 {
  margin: 0.6rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.subscribe-copy p {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.club-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: #f7ebd2;
}

.subscribe-form-box {
  background: var(--paper-card);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: 0 12px 28px rgba(10, 22, 36, 0.2);
}

.form-field {
  margin-bottom: 0.95rem;
}

.form-field label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--lake-navy);
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid rgba(29, 60, 92, 0.22);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus {
  outline: none;
  border-color: var(--pine-green);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.16);
}

.subscribe-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.subscribe-success {
  text-align: center;
  padding: 1rem 0.5rem;
}

.subscribe-success h3 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-display);
  color: var(--pine-green);
  font-size: 1.5rem;
}

.subscribe-success p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--lake-deep);
  color: rgba(255, 255, 255, 0.84);
  padding: 3rem 0 2.2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.footer-tagline {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--wood-light);
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--wood-light);
}

.footer-bottom {
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Modals (Book Preview & Blog Reader)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 43, 68, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  width: min(100%, 760px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 60px rgba(10, 22, 36, 0.42);
  position: relative;
  padding: 1.6rem 1.8rem 1.8rem;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--lake-navy);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--paper-warm);
  color: var(--lake-navy);
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--lake-mist);
}

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

.preview-stage img {
  margin: 0 auto;
  max-height: 55vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 43, 68, 0.18);
}

.preview-controls {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.preview-controls .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  font-size: 0.94rem;
}

.preview-caption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--wood-dark);
  line-height: 1.3;
}

.article-hero {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: var(--paper-warm);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--pine-green);
  margin-bottom: 0.5rem;
}

.article-content p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 980px) {
  .stars-grid,
  .featured-book,
  .subscribe-card {
    grid-template-columns: 1fr;
  }

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

  .featured-book-cover {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

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

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-card);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
    box-shadow: 0 14px 28px rgba(20, 43, 68, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .star-photo {
    aspect-ratio: 4 / 3.4;
  }

  .pack-grid,
  .blog-grid,
  .upcoming-grid {
    grid-template-columns: 1fr;
  }
}

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