/* ==========================================================================
   F. Matthew Johnson — Author Website
   Stylesheet
   --------------------------------------------------------------------------
   Built for readability, accessibility (WCAG 2.1 AA), and easy maintenance.
   All brand colors, spacing, and type sizes live in the custom properties
   below — change them once, and the whole site follows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #172333;          /* Midnight Navy — headings, nav, footer, anchors */
  --burgundy: #6B2637;      /* Deep Burgundy — primary CTAs, accents */
  --burgundy-dark: #571e2c; /* Hover state for burgundy */
  --parchment: #F5F0E6;     /* Warm Parchment — section backgrounds */
  --brass: #B4945A;         /* Antique Brass — borders, icons, fine details */
  --sage: #7D8876;          /* Desert Sage — subtle secondary accent */
  --warm-white: #FCFAF6;    /* Warm White — page background */
  --ink: #252525;           /* Primary text */
  --ink-soft: #4a4a48;      /* Secondary text (still ≥ 4.5:1 on parchment) */

  /* On-dark text colors (used on navy/burgundy backgrounds) */
  --on-dark: #FCFAF6;
  --on-dark-soft: #ddd6c8;  /* ≥ 4.5:1 on navy */
  --brass-on-dark: #cbb078; /* Brighter brass for legibility on navy */

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --text-base: 1.1875rem;   /* 19px body on desktop */
  --text-sm: 1rem;
  --text-lg: 1.375rem;
  --leading: 1.7;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Layout */
  --content-width: 72rem;
  --prose-width: 42rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 2px 12px rgba(23, 35, 51, 0.08);
  --shadow-lift: 0 8px 28px rgba(23, 35, 51, 0.14);

  /* Buttons / touch targets */
  --tap-min: 44px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--ink);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 47.9375em) {
  body {
    font-size: 1.0625rem; /* 17px minimum on mobile */
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.125rem); }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p {
  margin: 0 0 var(--space-3);
  max-width: var(--prose-width);
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--burgundy-dark);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  padding-left: 1.4em;
  margin: 0 0 var(--space-3);
}

hr {
  border: none;
  border-top: 1px solid var(--brass);
  margin: var(--space-5) auto;
  max-width: 8rem;
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.prose {
  max-width: var(--prose-width);
}

.center {
  text-align: center;
}

.center p {
  margin-inline: auto;
}

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

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  z-index: 300;
  background: var(--navy);
  color: var(--on-dark);
  padding: 0.75em 1.25em;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--on-dark);
}

/* Eyebrow label above headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--space-2);
}

.on-dark .eyebrow {
  color: var(--brass-on-dark);
}

/* Decorative brass rule under section headings */
.brass-rule {
  border: none;
  width: 4.5rem;
  height: 2px;
  background: var(--brass);
  margin: var(--space-3) 0 var(--space-4);
}

.center .brass-rule {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--tap-min);
  padding: 0.7em 1.6em;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-primary {
  background: var(--burgundy);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  color: var(--warm-white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--warm-white);
}

/* On dark backgrounds */
.on-dark .btn-primary {
  background: var(--warm-white);
  color: var(--navy);
}

.on-dark .btn-primary:hover {
  background: var(--parchment);
  color: var(--navy);
}

.on-dark .btn-secondary {
  color: var(--warm-white);
  border-color: var(--warm-white);
}

.on-dark .btn-secondary:hover {
  background: var(--warm-white);
  color: var(--navy);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   5. Announcement bar
   -------------------------------------------------------------------------- */
/* To REMOVE the announcement bar, delete the <div class="announcement-bar">
   block from each HTML page. To UPDATE it, edit the text inside that block. */
.announcement-bar {
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
  padding: 0.6em var(--space-3);
  font-size: 1rem;
}

.announcement-bar a {
  color: var(--brass-on-dark);
  font-weight: 600;
}

.announcement-bar a:hover {
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid rgba(180, 148, 90, 0.35);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--burgundy);
}

.brand-crest {
  display: block;
  width: auto;
  height: 3rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  display: inline-block;
}

.brand .brand-initial,
.mobile-brand .brand-initial {
  color: var(--brass);
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

.mobile-brand:hover {
  color: var(--burgundy);
  text-decoration: none;
}

.mobile-brand-crest {
  display: block;
  width: auto;
  height: 2.875rem;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--brass);
}

.nav-list a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

.nav-cta {
  margin-left: var(--space-3);
}

/* The nav CTA is a button, not a text link — keep button colors */
.nav-list a.btn-primary,
.nav-list a.btn-primary:hover {
  color: var(--warm-white);
  border-bottom-color: transparent;
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: var(--tap-min);
  padding: 0.5em 1em;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--burgundy);
}

.menu-toggle .menu-icon {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-toggle .menu-icon::before { top: -6px; }
.menu-toggle .menu-icon::after { top: 6px; }

/* Mobile navigation panel */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 51, 0.55);
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.nav-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  background: var(--warm-white);
  padding: var(--space-4);
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-close {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4em 0.9em;
}

.menu-close:hover {
  background: var(--navy);
  color: var(--warm-white);
}

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

.nav-mobile-list li + li {
  border-top: 1px solid rgba(180, 148, 90, 0.3);
}

.nav-mobile-list a {
  display: block;
  padding: 0.85em 0.25em;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.nav-mobile-list a:hover {
  color: var(--burgundy);
}

.nav-mobile-list a[aria-current="page"] {
  color: var(--burgundy);
  border-left: 3px solid var(--burgundy);
  padding-left: 0.75em;
}

.nav-mobile-panel .btn {
  width: 100%;
}

/* Lock body scroll while mobile menu is open (class added by main.js) */
body.menu-open {
  overflow: hidden;
}

/* Desktop breakpoint: show inline nav, hide toggle */
@media (min-width: 64em) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}


@media (max-width: 31.25em) {
  .brand {
    gap: 0.5rem;
    font-size: 1.0625rem;
  }

  .brand-crest {
    height: 2.625rem;
  }
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-6);
}

@media (min-width: 64em) {
  .section {
    padding-block: var(--space-7);
  }
}

.section-parchment {
  background: var(--parchment);
}

.section-navy {
  background: var(--navy);
  color: var(--on-dark);
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--on-dark);
}

.section-navy a:not(.btn) {
  color: var(--brass-on-dark);
}

.section-navy a:not(.btn):hover {
  color: var(--on-dark);
}

.section-burgundy {
  background: var(--burgundy);
  color: var(--on-dark);
}

.section-burgundy h2,
.section-burgundy h3 {
  color: var(--on-dark);
}

.section-burgundy a:not(.btn) {
  color: var(--parchment);
}

.on-dark p,
.section-navy p,
.section-burgundy p {
  color: var(--on-dark-soft);
}

.section-navy .lead,
.section-burgundy .lead {
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, var(--warm-white) 0%, var(--parchment) 100%);
  padding-block: var(--space-6);
  border-bottom: 1px solid rgba(180, 148, 90, 0.25);
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 64em) {
  .hero {
    padding-block: var(--space-7);
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-6);
  }
}

.hero .lead {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-note {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Hero visual composition (works without photos) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. Placeholders (author portrait, imagery)
   --------------------------------------------------------------------------
   These CSS compositions stand in until real photography is supplied.
   See IMAGE-SWAP-GUIDE.md for how to replace each one with a real image.  */
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  width: min(22rem, 100%);
  background:
    linear-gradient(160deg, var(--navy) 0%, #24364d 60%, #2d425c 100%);
  border: 1px solid var(--brass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-4);
  color: var(--on-dark-soft);
  position: relative;
  overflow: hidden;
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(180, 148, 90, 0.45);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.portrait-placeholder .monogram {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--brass-on-dark);
  line-height: 1;
}

.portrait-placeholder .placeholder-label {
  font-size: 0.9375rem;
  max-width: 16rem;
}

.landscape-placeholder {
  aspect-ratio: 3 / 2;
  width: 100%;
  background: linear-gradient(150deg, var(--sage) 0%, #68725f 100%);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: var(--warm-white);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   10. Book cover (CSS composition placeholder + real-image styles)
   -------------------------------------------------------------------------- */
.book-cover {
  width: min(17rem, 70vw);
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  position: relative;
  flex-shrink: 0;
}

/* When the real cover image is supplied, use:
   <img class="book-cover book-cover-img" src="..." alt="..." width="400" height="600">
   and delete the .book-cover-placeholder markup. */
.book-cover-img {
  object-fit: cover;
  aspect-ratio: auto;
}

.book-cover-placeholder {
  background:
    linear-gradient(170deg, #1d2c40 0%, var(--navy) 55%, #101927 100%);
  border: 1px solid var(--brass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
}

.book-cover-placeholder::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(180, 148, 90, 0.5);
  pointer-events: none;
}

.book-cover-placeholder .cover-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-on-dark);
}

.book-cover-placeholder .cover-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  line-height: 1.3;
  color: var(--on-dark);
  margin: 0;
}

.book-cover-placeholder .cover-envelope {
  margin-inline: auto;
}

.book-cover-placeholder .cover-author {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--on-dark-soft);
}


/* Coming-soon cover treatment for Before the Brakes Failed */
.book-cover-brakes {
  background:
    radial-gradient(circle at 30% 59%, rgba(179, 34, 42, 0.32), transparent 24%),
    radial-gradient(circle at 70% 59%, rgba(179, 34, 42, 0.32), transparent 24%),
    linear-gradient(180deg, #1c2939 0%, #101a27 48%, #080c12 100%);
  border-color: rgba(203, 176, 120, 0.85);
  isolation: isolate;
}

.book-cover-brakes .cover-eyebrow,
.book-cover-brakes .cover-title,
.book-cover-brakes .cover-author {
  position: relative;
  z-index: 3;
}

.book-cover-brakes .cover-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.brakes-cover-scene {
  position: absolute;
  inset: 5.75rem 1.7rem 4.35rem;
  z-index: 1;
  overflow: hidden;
  border-radius: 45% 45% 8% 8% / 18% 18% 5% 5%;
  background:
    linear-gradient(153deg, transparent 49%, rgba(245, 240, 230, 0.1) 50%, transparent 51%),
    linear-gradient(207deg, transparent 49%, rgba(245, 240, 230, 0.1) 50%, transparent 51%),
    linear-gradient(180deg, rgba(86, 103, 122, 0.12), rgba(0, 0, 0, 0.74));
  transform: perspective(14rem) rotateX(5deg);
}

.brakes-cover-scene::before,
.brakes-cover-scene::after {
  content: "";
  position: absolute;
  bottom: -12%;
  width: 62%;
  height: 108%;
  background: rgba(4, 7, 11, 0.78);
  transform-origin: bottom center;
}

.brakes-cover-scene::before {
  left: -36%;
  transform: skewX(20deg);
}

.brakes-cover-scene::after {
  right: -36%;
  transform: skewX(-20deg);
}

.brakes-road-line {
  position: absolute;
  left: 50%;
  width: 0.25rem;
  height: 2.2rem;
  background: rgba(245, 240, 230, 0.72);
  transform: translateX(-50%) perspective(8rem) rotateX(18deg);
  box-shadow: 0 0 0.75rem rgba(245, 240, 230, 0.24);
}

.brakes-road-line-one { bottom: 8%; height: 3.4rem; }
.brakes-road-line-two { bottom: 39%; height: 2rem; opacity: 0.78; }
.brakes-road-line-three { bottom: 66%; height: 1.1rem; opacity: 0.52; }

.brakes-tail-light {
  position: absolute;
  top: 48%;
  width: 2.35rem;
  height: 0.8rem;
  border-radius: 65% 65% 35% 35%;
  background: #b92c35;
  box-shadow:
    0 0 0.65rem rgba(185, 44, 53, 0.9),
    0 0 1.7rem rgba(185, 44, 53, 0.62);
}

.brakes-tail-light-left { left: 19%; transform: rotate(7deg); }
.brakes-tail-light-right { right: 19%; transform: rotate(-7deg); }

.cover-reveal-note {
  width: min(17rem, 70vw);
  margin: 0.95rem auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}

.coming-soon-hook {
  font-family: var(--font-serif);
  color: var(--burgundy);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.release-status {
  padding: 0.9rem 1rem;
  background: rgba(180, 148, 90, 0.14);
  border-left: 3px solid var(--brass);
  color: var(--navy);
}

.upcoming-book-section {
  border-block: 1px solid rgba(180, 148, 90, 0.35);
}

.upcoming-book-home-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.upcoming-book-home .book-cover-home {
  width: min(14.5rem, 62vw);
  margin-inline: auto;
}

.upcoming-book-home-copy {
  max-width: 47rem;
}

.upcoming-book-home-copy .lead {
  margin-bottom: var(--space-2);
}

.upcoming-book-home-copy .btn-group {
  margin-top: var(--space-4);
}

@media (min-width: 48em) {
  .upcoming-book-home-grid {
    grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.6fr);
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   11. Featured book section
   -------------------------------------------------------------------------- */
.book-feature {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 48em) {
  .book-feature {
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
  }
}

.book-feature .book-cover {
  margin-inline: auto;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.genre-tags li {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--parchment);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.35em 1em;
}

.section-parchment .genre-tags li {
  background: var(--warm-white);
}

/* Editable placeholder marker — visible reminder in drafts */
.placeholder-copy {
  border-left: 3px solid var(--brass);
  padding-left: var(--space-3);
  color: var(--ink-soft);
  font-style: italic;
}

/* Review slots */
.review-slot {
  background: var(--warm-white);
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--ink-soft);
  font-style: italic;
}

.review-card {
  background: var(--warm-white);
  border: 1px solid rgba(180, 148, 90, 0.4);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.review-card blockquote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink);
}

.review-card cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. Cards (feature cards, event cards, book cards)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 48em) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid rgba(180, 148, 90, 0.4);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.feature-card .card-icon {
  color: var(--brass);
  margin-bottom: var(--space-3);
}

.feature-card .card-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
}

/* Event card */
.event-card {
  background: var(--warm-white);
  border: 1px solid rgba(180, 148, 90, 0.4);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-4);
}

.event-card h3 {
  margin-bottom: var(--space-1);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  color: var(--ink-soft);
}

.event-meta strong {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   13. Signup forms
   -------------------------------------------------------------------------- */
.signup-panel {
  max-width: 38rem;
}

.signup-form {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-4);
}

@media (min-width: 48em) {
  .signup-form-inline {
    grid-template-columns: 1fr 1.2fr auto;
    align-items: end;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.form-field label {
  font-weight: 600;
  font-size: 1rem;
}

.on-dark .form-field label {
  color: var(--on-dark);
}

input[type="text"],
input[type="email"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--warm-white);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 0.65em 0.9em;
  min-height: var(--tap-min);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--burgundy);
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-microcopy {
  font-size: 0.9375rem;
}

.on-dark .form-microcopy {
  color: var(--on-dark-soft);
}

/* Validation + status messages */
.field-error {
  display: none;
  color: #8f1f33;
  font-size: 0.9375rem;
  font-weight: 600;
}

.on-dark .field-error {
  color: #f3c1c9;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #8f1f33;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  margin-top: var(--space-3);
}

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

.form-status-success {
  background: #e8efe6;
  border: 2px solid var(--sage);
  color: #2d3a29;
}

.form-status-error {
  background: #f7e8ea;
  border: 2px solid var(--burgundy);
  color: #571e2c;
}

.on-dark .form-status-success {
  background: rgba(252, 250, 246, 0.12);
  border-color: var(--sage);
  color: var(--on-dark);
}

.on-dark .form-status-error {
  background: rgba(252, 250, 246, 0.12);
  border-color: #f3c1c9;
  color: var(--on-dark);
}

/* Honeypot field — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Consent checkbox row */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
}

.consent-row input[type="checkbox"] {
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.2em;
  accent-color: var(--burgundy);
  flex-shrink: 0;
}

.consent-row label {
  font-size: 1rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   14. Timeline (About page) — works without JavaScript
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
  position: relative;
}

/* Mobile: vertical stacked timeline */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 2px;
  background: var(--brass);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-4) var(--space-5);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--warm-white);
  border: 3px solid var(--burgundy);
}

.timeline h3 {
  font-size: 1.1875rem;
  margin-bottom: var(--space-1);
}

.timeline p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Desktop: horizontal timeline */
@media (min-width: 64em) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-3);
  }

  .timeline::before {
    top: 0.55rem;
    left: 2%;
    right: 2%;
    bottom: auto;
    width: 96%;
    height: 2px;
  }

  .timeline li {
    padding: var(--space-4) var(--space-1) 0;
  }

  .timeline li::before {
    top: 0;
    left: 0;
  }

  .timeline p {
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   15. Stats (About page travel figures)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-4);
}

@media (min-width: 48em) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--warm-white);
  border: 1px solid rgba(180, 148, 90, 0.4);
  border-radius: var(--radius);
}

.stat .stat-figure {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--burgundy);
  line-height: 1.2;
}

.stat .stat-label {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   16. Envelope / letter motif (subtle, decorative)
   -------------------------------------------------------------------------- */
.envelope-motif {
  display: inline-block;
  color: var(--brass);
}

.envelope-motif svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-soft);
  padding-block: var(--space-6) var(--space-4);
  font-size: 1rem;
}

.site-footer a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--on-dark);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--brass-on-dark);
  text-decoration: none;
}

.footer-brand-crest {
  display: block;
  width: auto;
  height: 3.75rem;
  object-fit: contain;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: inherit;
}

.footer-wordmark .brand-initial {
  color: var(--brass-on-dark);
}

.footer-tagline {
  max-width: 18rem;
  margin-top: var(--space-2);
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-on-dark);
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6em;
}

.footer-links a {
  display: inline-block;
  padding: 0.15em 0;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 1px solid rgba(203, 176, 120, 0.5);
  border-radius: 50%;
  color: var(--on-dark-soft);
}

.footer-social a:hover {
  border-color: var(--brass-on-dark);
  color: var(--on-dark);
  text-decoration: none;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(203, 176, 120, 0.25);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  font-size: 0.9375rem;
}

/* "Website by" credit — remove the <p class="footer-credit"> element
   in the footer of each page to remove this line site-wide. */
.footer-credit {
  margin: 0;
}

/* --------------------------------------------------------------------------
   18. CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  border-top: 3px solid var(--brass);
}

/* --------------------------------------------------------------------------
   19. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--warm-white), var(--parchment));
  border-bottom: 1px solid rgba(180, 148, 90, 0.25);
  padding-block: var(--space-5);
}

@media (min-width: 64em) {
  .page-hero {
    padding-block: var(--space-6);
  }
}

.page-hero .lead {
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   20. 404 page
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   21. Reveal-on-scroll (progressive enhancement; content is visible
       without JavaScript and when reduced motion is preferred)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   22. Details/summary styling (used for optional lead-magnet config notes)
   -------------------------------------------------------------------------- */
details.config-note {
  background: var(--parchment);
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-block: var(--space-4);
  max-width: var(--prose-width);
}

details.config-note summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25em 0;
}

/* --------------------------------------------------------------------------
   23. Family & life gallery
   -------------------------------------------------------------------------- */
#family-life {
  scroll-margin-top: 8rem;
}

.inline-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
}

.section-family-life {
  background:
    radial-gradient(circle at 12% 12%, rgba(180, 148, 90, 0.16), transparent 28rem),
    var(--navy);
  color: var(--on-dark-soft);
  border-top: 3px solid var(--brass);
  border-bottom: 3px solid var(--brass);
}

.section-family-life h2,
.section-family-life h3 {
  color: var(--on-dark);
}

.section-family-life .lead {
  color: var(--on-dark);
}

.family-life-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-5);
  align-items: start;
}

.family-life-intro p:last-child {
  margin-bottom: 0;
}


.leila-spotlight {
  margin-top: var(--space-5);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 243, 233, 0.98));
  color: var(--ink);
  border: 1px solid rgba(180, 148, 90, 0.65);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.leila-spotlight::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(180, 148, 90, 0.28);
  border-radius: calc(var(--radius-lg) - 0.1rem);
  pointer-events: none;
}

.leila-spotlight h3 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.leila-spotlight-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr);
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.leila-spotlight-copy {
  max-width: 48rem;
}

.leila-spotlight-copy p {
  max-width: 46rem;
}

.leila-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.leila-meta li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(180, 148, 90, 0.14);
  border: 1px solid rgba(180, 148, 90, 0.3);
  color: var(--navy);
  font-size: 0.97rem;
  font-weight: 600;
}

.leila-side-note {
  background: linear-gradient(180deg, var(--navy), #202e42);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.leila-side-note-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brass-on-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.leila-side-note h4 {
  color: var(--on-dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.leila-side-note p:last-child {
  margin-bottom: 0;
  color: var(--on-dark-soft);
}

.gallery-note {
  font-size: 1rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--brass);
  padding-left: var(--space-3);
}

.leila-gallery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  position: relative;
  z-index: 1;
}

.artwork-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.artwork-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(180, 148, 90, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.artwork-card-featured {
  align-self: stretch;
}

.artwork-card a {
  display: block;
  color: inherit;
  background: #4e4a47;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.artwork-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.artwork-card-featured img {
  min-height: 100%;
  object-fit: cover;
}

.artwork-hover {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 35, 51, 0.86);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.artwork-card a:hover img,
.artwork-card a:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.02);
}

.artwork-card a:hover .artwork-hover,
.artwork-card a:focus-visible .artwork-hover {
  opacity: 1;
  transform: translateY(0);
}

.artwork-card a:focus-visible {
  outline: 4px solid var(--burgundy);
  outline-offset: -4px;
}

.artwork-card figcaption {
  padding: 0.95rem 1rem 1rem;
  border-top: 1px solid rgba(180, 148, 90, 0.42);
}

.artwork-card figcaption strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.artwork-card figcaption span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .artwork-card img,
  .artwork-hover {
    transition: none;
  }

  .artwork-card a:hover img,
  .artwork-card a:focus-visible img {
    transform: none;
  }

  .artwork-card a:hover .artwork-hover,
  .artwork-card a:focus-visible .artwork-hover {
    transform: none;
  }
}

@media (max-width: 63.9375em) {
  .leila-spotlight-header,
  .leila-gallery-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 47.9375em) {
  .family-life-intro,
  .artwork-grid-secondary {
    grid-template-columns: 1fr;
  }

  .family-life-intro {
    gap: var(--space-3);
  }

  .leila-spotlight {
    padding: var(--space-3);
  }

  .leila-meta {
    gap: 0.6rem;
  }
}


/* --------------------------------------------------------------------------
   24. Print niceties
   -------------------------------------------------------------------------- */
@media print {
  .announcement-bar,
  .site-header,
  .site-footer,
  .nav-mobile {
    display: none;
  }
}
