/* ============================================================
   LORI HODGKINSON — AUTHOR WEBSITE
   css/style.css
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Light coastal palette
     (old forest-green + gold accents are remapped to Pacific teal) */
  --color-bg:          #edf2f4;  /* pale coastal blue-white — main background */
  --color-bg-dark:     #1b2a33;  /* dark navy-slate — footer & dark surfaces  */
  --color-text:        #1b2a33;  /* primary text — dark navy-slate            */
  --color-text-muted:  #6e8793;  /* muted text — blue-grey                    */
  --color-green:       #3d7082;  /* (was forest green) → Pacific teal accent  */
  --color-gold:        #3d7082;  /* (was gold)         → Pacific teal accent  */
  --color-border:      #d4dee2;  /* light blue-grey borders                   */
  --color-white:       #ffffff;  /* white surface / nav background            */

  /* Additional palette tokens */
  --color-surface:      #ffffff; /* white surface (alias of white)            */
  --color-panel:        #b9c9d1; /* secondary muted blue-grey panel           */
  --color-surface-alt:  #e3ebef; /* pale tinted surface — icon tiles          */
  --color-accent:       #3d7082; /* Pacific teal — eyebrows, rules, buttons   */
  --color-accent-hover: #2e5663; /* deeper teal — hover / pressed states      */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --size-hero:  clamp(3rem, 7vw, 6.5rem);
  --size-h1:    clamp(2rem, 4vw, 3.5rem);
  --size-h2:    clamp(1.4rem, 2.5vw, 2rem);
  --size-h3:    1.3rem;
  --size-body:  1.05rem;
  --size-small: 0.875rem;

  --max-width:       1140px;
  --content-width:   720px;
  --padding-section: clamp(4rem, 8vw, 8rem) 0;
  --padding-page:    0 clamp(1.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
  min-width: 170px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.2rem;
  margin-left: 1.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

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

.nav-links a.nav-active {
  color: var(--color-text);
}

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gold);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-overlay.menu-open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-overlay a:hover {
  color: var(--color-accent-hover);
}

.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: clamp(1.5rem, 5vw, 4rem);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.nav-overlay-close:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-bg-dark);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--color-white);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copy + .footer-copy {
  margin-top: 0.3rem;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */

.page-hero {
  background: var(--color-bg);
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 4rem;
  text-align: center;
}

.page-hero-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--size-h1);
  color: var(--color-text);
  line-height: 1.15;
}

.page-hero-divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

.page-hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

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

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

.section {
  padding: var(--padding-section);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.25rem 0;
}

.section-divider--center {
  margin: 1.25rem auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Secondary — outlined */
.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Primary — filled (both legacy names map to the teal accent) */
.btn-filled-gold,
.btn-filled-green {
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-filled-gold:hover,
.btn-filled-green:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* Button with a leading logo (e.g. Amazon) */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Sized to the text so the button keeps its normal height */
.btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Placeholder button — looks like a button but goes nowhere yet */
.btn-soon {
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   HOME PAGE — HERO (two-column editorial)
   ============================================================ */

.home-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* gentle staggered entrance (pure CSS — no JS dependency) */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker,
.hero-eyebrow,
.hero-firstname,
.hero-lastname,
.hero-actions {
  animation: hero-fade-up 0.7s ease both;
}

.hero-eyebrow              { animation-delay: 0.12s; }
.hero-firstname            { animation-delay: 0.24s; }
.hero-lastname             { animation-delay: 0.36s; }
.hero-actions              { animation-delay: 0.48s; }

/* Top line above the eyebrow — same treatment, accent colour */
.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

/* "Lori" and "Hodgkinson" share one <h1> but still stack on two lines */
.hero-firstname,
.hero-lastname {
  display: block;
}

.hero-firstname {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-text);
  margin-bottom: 0;
}

.hero-lastname {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;              /* matches .hero-firstname */
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-text);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero book cover */
.home-hero-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cover-frame {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid var(--color-accent);
  box-shadow: 0 20px 60px rgba(27, 42, 51, 0.25);
}

/* ---- Hero reviews (beneath the cover) ---- */
.hero-reviews {
  width: 100%;
  max-width: 360px;
  margin-top: 2rem;
}

.hero-reviews-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.hero-reviews .review {
  border-left: 2px solid var(--color-border);
  padding-left: 1.1rem;
  margin: 0;
}

.hero-reviews .review + .review {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.review-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.review-source {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   PUBLISHER CREDIT (RE:BOOKS)
   ============================================================ */

.publisher-credit {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}

.publisher-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}

.publisher-credit a {
  display: inline-block;
  line-height: 0;
  border: none;
}

.publisher-logo {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  transition: opacity 0.25s ease;
}

.publisher-credit a:hover .publisher-logo,
.publisher-credit a:focus-visible .publisher-logo {
  opacity: 0.75;
}

/* ============================================================
   HOME PAGE — LATEST BOOK STRIP
   ============================================================ */

.latest-book {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.latest-book-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.latest-book-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}

.latest-book-rule {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
}

.latest-book-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.latest-book-date {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.latest-book-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

/* ============================================================
   HOME PAGE — WELCOME SECTION
   ============================================================ */

.welcome-section {
  padding: var(--padding-section);
  border-bottom: 1px solid var(--color-border);
}

.welcome-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h2);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.welcome-section p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ============================================================
   HOME PAGE — BOOK SECTION (dark)
   ============================================================ */

.book-section {
  background: var(--color-bg-dark);
  padding: var(--padding-section);
}

.book-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding-page);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.book-cover {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-accent);
  box-shadow: 0 20px 60px rgba(27, 42, 51, 0.25);
  margin: 0 auto;
}

.book-info .book-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.book-info .book-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

.book-info .section-divider {
  background: var(--color-gold);
  margin: 1.25rem 0;
}

.book-info .book-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.book-info .section-label {
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   HOME PAGE — ABOUT TEASER
   ============================================================ */

.about-section {
  background: var(--color-bg);
  padding: var(--padding-section);
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding-page);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.author-photo-placeholder {
  max-width: 380px;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #b9c9d1 0%, #8fa8b3 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.author-photo-placeholder span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.about-info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h2);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0;
}

.about-info p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.read-more-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-green);
  display: inline-block;
  transition: transform 0.2s ease;
}

.read-more-link:hover {
  transform: translateX(4px);
}

/* ============================================================
   HOME PAGE — EXPLORE CARDS
   ============================================================ */

.explore-section {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--padding-section);
}

.explore-header {
  text-align: center;
  margin-bottom: 3rem;
}

.explore-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h2);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0;
}

/* ---- Explore intro band — the BC map beside the section heading ----
   The heading block stays first in the source so it reads first when the
   band collapses to one column; grid placement (not flex order) puts the
   map on the left on desktop. */
.explore-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 3rem;
}

.explore-intro .explore-header {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
  margin-bottom: 0;
}

.explore-intro-text {
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.explore-map {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.explore-map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(27, 42, 51, 0.25);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.explore-map a:hover img,
.explore-map a:focus-visible img {
  opacity: 0.9;
  box-shadow: 0 24px 70px rgba(27, 42, 51, 0.32);
}

.explore-map figcaption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.85rem;
}

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

.card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-border);
}

.card-image {
  height: 200px;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.card-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-green);
}

/* ============================================================
   BOOKS PAGE
   ============================================================ */

.books-entry {
  padding: var(--padding-section);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}

.book-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

/* Cover + button fill the height of the text column beside them.
   The wrap is a size container, so it adds no height of its own; the
   text column sets the row height and the cover scales to fit it,
   capped by the column width so it never distorts. */
.book-entry-grid:has(.book-cover-col) {
  align-items: stretch;
}

.book-cover-col {
  display: flex;
  flex-direction: column;
}

.book-cover-wrap {
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
}

.book-cover-wrap .book-cover {
  max-width: none;
  width: auto;
  height: min(100cqh, 100cqw * 2250 / 1410);
}

/* Button centred under the cover, clear of its shadow */
.book-cover-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Less white space between the page title and the book entry */
.page-hero--tight {
  padding-bottom: 1.5rem;
}

.books-entry--tight {
  padding-top: 1.5rem;
}

/* Publisher logo under the pre-order button */
.publisher-credit--inline {
  padding: 2rem 0 0;
}

.publisher-credit--inline a {
  display: block;
}

.publisher-credit--inline .publisher-logo {
  margin: 0 auto;
}

/* Release / publisher / ISBN / price, two per row */
.book-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.book-details dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.book-details dd {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.book-meta-box {
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.book-meta-box p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.book-entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  line-height: 1.1;
}

.book-entry-publisher {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

.book-entry-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 1.25rem 0;
  line-height: 1.5;
}

.book-entry-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.book-entry-desc p + p {
  margin-top: 1rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-bio-section {
  padding: var(--padding-section);
}

.about-photo-large {
  max-width: 420px;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #b9c9d1 0%, #8fa8b3 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3rem;
}

.about-photo-large span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.about-bio-text p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.pull-quote {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 2rem;
  background: rgba(61, 112, 130, 0.06);
  margin: 2.5rem 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-text);
  line-height: 1.5;
}

.book-teaser-horizontal {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin-top: 2.5rem;
}

.book-teaser-cover {
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: auto;
  border: 1px solid var(--color-accent);
}

.book-teaser-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.book-teaser-info p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   CONTENT PAGES (Great Bear, Gold Mining, Vancouver, Haida Gwaii)
   ============================================================ */

.content-intro {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.content-intro p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text);
}

/* Long-form article body with section headings */
.content-sections h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--size-h2);
  color: var(--color-text);
  line-height: 1.15;
  margin: 3rem 0 1.25rem;
}

.content-sections h2:first-child {
  margin-top: 0;
}

.content-sections p + p {
  margin-top: 1.25rem;
}

.image-banner {
  width: 100%;
  height: 400px;
  position: relative;
}

.image-banner-caption {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem clamp(1.5rem, 5vw, 4rem);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================================
   ARCHIVE FIGURES — in-flow, natural aspect ratio, no cropping
   ============================================================ */

/* contain the floated figure within its own section */
.content-intro--figure .container--content {
  display: flow-root;
}

.archive-figure {
  margin: 0 0 1.5rem;
}

.archive-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
}

.archive-figure figcaption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

.archive-credit {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #8ba0aa;              /* lighter than the caption */
}

/* Float alongside the prose on tablet and up. The figure stays inside
   the same .container--content as the prose and is sized as a share of
   that column, so its outer edge coincides with the text's at every
   width. Never pull it out of the column with negative margins — the
   text that continues below the float resumes at the column edge, so
   any outward pull leaves a visible step mid-paragraph. */
@media (min-width: 721px) {
  .archive-figure {
    width: clamp(200px, 40%, 260px);
    margin-bottom: 1rem;
  }

  .archive-figure--left {
    float: left;
    margin-right: 2rem;
  }

  .archive-figure--right {
    float: right;
    margin-left: 2rem;
  }
}

/* Full width, stacked above the section on mobile */
@media (max-width: 720px) {
  .archive-figure {
    float: none;
    width: 100%;
    margin: 0 0 2rem;
  }
}

.articles-section {
  padding: var(--padding-section);
}

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

.article-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-card-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1.25rem;
}

/* Icon thumbnail — occupies the same box as .article-card-image */
.article-card-icon {
  height: 200px;
  width: 100%;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

.article-card-icon svg {
  width: 34%;
  max-width: 64px;
  height: auto;
}

.article-card-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.article-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.article-card-excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.article-card-excerpt + .article-card-excerpt {
  margin-top: 0.75rem;
}

.article-card .read-more-link {
  margin-top: 1rem;
}

.coming-soon-box {
  max-width: var(--content-width);
  margin: 0 auto clamp(4rem, 8vw, 8rem);
  padding: 2rem 2.5rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.coming-soon-box .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}

.coming-soon-box p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  padding: var(--padding-section);
}

.contact-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: #000;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text);
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
}

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

.contact-separator {
  height: 1px;
  background: var(--color-border);
  margin: 2.5rem 0;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-row span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.social-row a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-green);
  transition: opacity 0.2s ease;
}

.social-row a:hover {
  opacity: 0.7;
}

.social-row .separator {
  color: var(--color-border);
}

/* Copyright notice under the social links */
.contact-legal p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #000;
}

.contact-legal p + p {
  margin-top: 1rem;
}

/* Darker text in the contact section for readability */
.contact-section .social-row span {
  color: var(--color-text);
}

.contact-section .social-row a {
  color: var(--color-accent-hover);
}

.contact-intro a {
  color: #000;
}

.contact-section .social-row .separator {
  color: var(--color-panel);
}

/* Film and TV line — a secondary note under the intro */
.contact-inquiry {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: #000000;
  margin-bottom: 2.5rem;
}

/* Contact form status message (Web3Forms) */
.form-status {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-pending {
  color: var(--color-text-muted);
}

.form-status.is-success {
  color: var(--color-gold);
  font-weight: 400;
}

.form-status.is-error {
  color: #9a4f4a;              /* muted brick red, low-key against the blue-greys */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .book-entry-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-hero-cover {
    order: 2;
  }

  .cover-frame {
    max-width: 240px;
  }

  .book-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Stacked: nothing beside the cover to match, so size it normally */
  .book-cover-wrap {
    flex: none;
    container-type: normal;
  }

  .book-cover-wrap .book-cover {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .book-cover {
    max-width: 220px;
  }

  .author-photo-placeholder {
    max-width: 280px;
  }

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

  /* Heading → map → cards, in source order */
  .explore-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .explore-intro .explore-header {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .explore-intro .explore-header .section-divider {
    margin: 1.25rem auto;
  }

  .explore-map {
    grid-column: 1;
    grid-row: auto;
    max-width: 340px;
  }

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

  .book-entry-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .book-teaser-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

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

  .pull-quote {
    padding: 1.25rem 1.25rem;
  }

  .pull-quote p {
    font-size: 1.15rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .page-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .image-banner {
    height: 250px;
  }

  .coming-soon-box {
    padding: 1.5rem;
  }
}
