:root {
  --navy: #1a233a;
  --navy-deep: #12182a;
  --forest: #243d32;
  --cream: #f7f4ee;
  --cream-soft: #fffdf9;
  --gold: #b08d57;
  --gold-bright: #c9a66b;
  --ink: #1c1c1c;
  --muted: #6b6b66;
  --line: #e4ddd0;
  --white: #ffffff;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-script: "Allura", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 3000;
}

.skip-link:focus {
  left: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: var(--gold-bright);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 3rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
}

/* Buttons */
.btn-primary-site,
.btn-gold-solid,
.btn-outline-site,
.btn-nav {
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary-site {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
}

.btn-primary-site:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn-gold-solid {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--white);
}

.btn-gold-solid:hover {
  background: #967544;
  border-color: #967544;
  color: var(--white);
}

.btn-outline-site {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-outline-site:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-nav {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* Top bar */
.top-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.top-social a {
  color: rgba(255, 255, 255, 0.75);
  margin-left: 0.75rem;
}

.top-social a:hover {
  color: var(--gold-bright);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(26, 35, 58, 0.08);
  z-index: 1030;
}

.navbar {
  padding: 0.85rem 0;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.brand-sub {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--gold);
}

.navbar .nav-link {
  color: var(--navy) !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gold) !important;
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(26, 35, 58, 0.1);
}

.dropdown-item:hover {
  background: var(--cream);
  color: var(--gold);
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* Hero — layout inspired by author demo sites */
.hero-banner {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 24, 42, 0.88) 0%, rgba(18, 24, 42, 0.55) 48%, rgba(18, 24, 42, 0.25) 100%);
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: var(--white);
  padding: 4rem 0;
}

.welcome-line {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.hero-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero-panel h1 span {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

/* About */
.about-section {
  background: var(--cream);
}

.about-photo-wrap {
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(26, 35, 58, 0.12);
  border: 1px solid var(--line);
}

.about-photo {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.about-section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
  color: var(--navy);
}

/* Books */
.books-section {
  background: var(--cream-soft);
}

.books-section h2 {
  color: var(--navy);
}

.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  height: 100%;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 35, 58, 0.12);
}

.book-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
}

.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 1.75rem;
}

.book-card-body h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.book-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Book detail */
.book-detail-section {
  background: var(--white);
}

.detail-cover {
  box-shadow: 0 25px 55px rgba(26, 35, 58, 0.18);
  border: 6px solid var(--cream);
}

.book-detail-section h2 {
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
}

.rating-row span {
  font-weight: 600;
  color: var(--navy);
}

/* Bears strip */
.bears-strip {
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.92), rgba(36, 61, 50, 0.94)),
    url("../images/molly4.jpg") center / cover;
  background-attachment: fixed;
}

.bear-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(176, 141, 87, 0.55);
}

.bear-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.bear-tile:hover img {
  transform: scale(1.07);
}

.bear-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(18, 24, 42, 0.92));
  color: var(--white);
}

.bear-tile-cap h3 {
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bear-tile-cap p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Promo */
.promo-section {
  padding-top: 0;
  margin-top: -1px;
  background: var(--cream-soft);
}

.promo-box {
  background: linear-gradient(120deg, var(--navy-deep), var(--forest));
  padding: 3rem 2.5rem;
  border-left: 4px solid var(--gold);
}

.promo-box h2 {
  margin-bottom: 0.75rem;
}

/* Stories */
.stories-section {
  background: var(--cream);
}

.stories-section h2 {
  color: var(--navy);
}

.story-card {
  background: var(--white);
  border: 1px solid var(--line);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease);
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.story-card:hover .story-img img {
  transform: scale(1.05);
}

.story-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-body time {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-body h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--navy);
}

.story-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

.read-more:hover {
  color: var(--navy);
}

/* Gallery */
.gallery-section {
  background: var(--cream-soft);
}

.gallery-section h2 {
  color: var(--navy);
}

.gal-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gal-item::after {
  content: "\F65D";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 35, 58, 0.45);
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gal-item:hover::after {
  opacity: 1;
}

.gal-item:hover img {
  transform: scale(1.08);
}

/* Quote band */
.quote-band {
  background:
    linear-gradient(rgba(26, 35, 58, 0.82), rgba(26, 35, 58, 0.82)),
    url("../images/molly1.jpg") center / cover;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.quote-band h2 {
  margin-bottom: 1rem;
}

.quote-band p {
  max-width: 680px;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.quote-sign {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--gold-bright) !important;
}

/* Contact */
.contact-section {
  background: var(--white);
}

.contact-section h2 {
  color: var(--navy);
}

.contact-meta li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.contact-meta i {
  color: var(--gold);
  margin-right: 0.6rem;
}

.contact-meta a {
  color: var(--ink);
}

.site-form .form-control {
  border-radius: 2px;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: var(--cream-soft);
}

.site-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(176, 141, 87, 0.2);
}

.form-feedback {
  color: var(--forest);
  font-weight: 600;
}

/* Footer — Megan layout style */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 1.25rem;
}

.footer-title {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  margin-right: 0.4rem;
  margin-top: 0.5rem;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.newsletter-form .form-control {
  border-radius: 2px 0 0 2px;
  border: none;
}

.newsletter-form .btn {
  border-radius: 0 2px 2px 0;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.75rem;
}

.footer-legal a:hover {
  color: var(--gold-bright);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 16, 28, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(960px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .bears-strip {
    background-attachment: scroll;
  }

  .hero-banner,
  .hero-slide {
    min-height: 70vh;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 4rem 0;
  }

  .promo-box {
    padding: 2rem 1.35rem;
  }
}
