@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Great+Vibes&display=swap');

/* ═══════════════════════════════════════════
   TABLE OF CONTENTS
   1.  Tokens & variables
   2.  Reset & base
   3.  Shared — nav
   4.  Shared — footer
   5.  Shared — buttons
   6.  Shared — scroll animations
   7.  index.html — hero
   8.  index.html — dividers
   9.  index.html — sections
   10. index.html — about / events / contact
   11. contributors.html — page hero
   12. contributors.html — body & cards
   13. WIP banner
   14. Responsive — tablet (≤768px)
   15. Responsive — phone (≤480px)
═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   1. TOKENS & VARIABLES
═══════════════════════════════════════════ */

:root {
  /* ---- Color ---- */
  --navy:         #0d1a2e;
  --navy-mid:     #13243d;
  --navy-card:    #1a2c4a;
  --gold:         #d4a840;
  --gold-hover:   #e8bc55;
  --gold-soft:    #b08830;
  --cream:        #faf6ee;
  --cream-hero:   #f5efe3;
  --cream-input:  #fff8ee;
  --cream-border: rgba(180, 140, 60, 0.2);
  --ink:          #2a1f0e;
  --ink-mid:      #4a3a28;
  --ink-light:    #6b5c3e;
  --parchment:    #c8b89a;
  --slate:        #8899aa;
  --card-bg:      #ffffff;
  --footer:       #080f1c;
  --heading-light:#f5ead4;

  /* gold at varying alpha — referenced repeatedly */
  --gold-a20:     rgba(212, 168, 64, 0.2);
  --gold-a25:     rgba(212, 168, 64, 0.25);
  --gold-a30:     rgba(212, 168, 64, 0.3);
  --gold-a50:     rgba(212, 168, 64, 0.5);
  --goldsoft-a25: rgba(180, 140, 60, 0.25);

  /* ---- Type ---- */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Lora', serif;
  --font-script:  'Great Vibes', cursive;   /* cover signature accent — short phrases only */
  --font-ui:      'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* ---- Layout ---- */
  --content-max:  720px;
  --reading-max:  680px;
  --gutter:       48px;          /* horizontal page padding (desktop) */
  --section-pad:  72px;          /* vertical section padding (desktop) */

  /* ---- Motion ---- */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}


/* ═══════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* stop iOS auto-inflating text */
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }   /* global media safety */

/* Cover-signature accent — drop onto SHORT display phrases only
   (hero subtitle, "My Journey" mentions). Never body text or nav.
   Script faces need a size bump + loose line-height to read well. */
.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;       /* the face is already cursive; no synthetic italic */
  line-height: 1.3;
  letter-spacing: 0.5px;    /* tiny positive tracking keeps glyphs from colliding */
}


/* ═══════════════════════════════════════════
   3. SHARED — NAV
═══════════════════════════════════════════ */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
  background: var(--navy);
  border-bottom: 0.5px solid var(--gold-a20);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--parchment);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover  { color: var(--gold); }
.nav-links a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}


/* ═══════════════════════════════════════════
   4. SHARED — FOOTER
═══════════════════════════════════════════ */

footer {
  background: var(--footer);
  padding: 32px var(--gutter);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  color: rgba(212, 168, 64, 0.4);
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 12px;
}

.footer-links a {
  color: #445566;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy { font-size: 11px; color: #445566; letter-spacing: 0.5px; }


/* ═══════════════════════════════════════════
   5. SHARED — BUTTONS
═══════════════════════════════════════════ */

.btn-gold,
.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 28px;
  margin-right: 12px;
}

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

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 24px;
}

.btn-outline:hover { background: rgba(212, 168, 64, 0.08); transform: translateY(-1px); }


/* ═══════════════════════════════════════════
   6. SHARED — SCROLL ANIMATIONS
═══════════════════════════════════════════ */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal       { transform: translateY(32px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); transition-duration: 0.6s; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .stagger-children > *,
  .hero-cover-wrap, .hero-text-wrap,
  .page-hero-inner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* ═══════════════════════════════════════════
   7. index.html — HERO
═══════════════════════════════════════════ */

.hero {
  background: var(--navy);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 80px var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero-portrait {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 420px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.17;
  pointer-events: none;
  user-select: none;
}

.hero-portrait-placeholder {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 380px;
  border: 1.5px dashed var(--gold-a20);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-portrait-placeholder span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.6;
}

.hero-portrait-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1;
}

.hero-cover {
  width: 180px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.hero-cover-placeholder {
  width: 180px;
  height: 270px;
  background: var(--navy-card);
  border: 1px solid var(--gold-a30);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.hero-cover-placeholder span {
  font-size: 11px;
  color: rgba(212, 168, 64, 0.4);
  text-align: center;
  padding: 12px;
  line-height: 1.6;
}

.hero-text {
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--heading-light);
  line-height: 1.05;
  margin-bottom: 6px;
}

/* Subtitle now carries the cover's signature script. Larger than the
   old 22px because script faces have a small visual x-height and need
   the size to stay legible and feel intentional. */
.hero-subtitle {
  font-family: var(--font-script);
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-hook {
  font-size: 15px;
  color: var(--parchment);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cover-wrap,
.hero-text-wrap {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.hero-cover-wrap { animation-delay: 0.2s; }
.hero-text-wrap  { animation-delay: 0.4s; }


/* ═══════════════════════════════════════════
   8. index.html — DIVIDERS
═══════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--gutter);
}

.divider-line { flex: 1; height: 0.5px; background: var(--gold-a25); }

.divider-icon {
  color: var(--gold);
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.divider-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.divider-cream { background: var(--cream); }
.divider-dark  { background: var(--navy); }
.divider-mid   { background: var(--navy-mid); }


/* ═══════════════════════════════════════════
   9. index.html — SECTIONS
═══════════════════════════════════════════ */

section { padding: var(--section-pad) var(--gutter); }

.section-cream { background: var(--cream); }
.section-dark  { background: var(--navy); }
.section-mid   { background: var(--navy-mid); }

.section-label {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
}

.heading-dark  { color: var(--ink); }
.heading-light { color: var(--heading-light); }


/* ═══════════════════════════════════════════
   10. index.html — ABOUT / EVENTS / CONTACT
═══════════════════════════════════════════ */

/* ---- About the book ---- */
.about-book-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: var(--reading-max);
  margin: 0 auto;
}

.quote-bar {
  width: 3px;
  min-height: 100px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 4px;
}

.about-book-inner p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 16px;
}

/* ---- About the author ---- */
.about-author-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  max-width: var(--reading-max);
  margin: 0 auto;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  object-fit: cover;
}

.author-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-a50);
  font-size: 11px;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 12px;
}

.about-author-inner p {
  font-size: 15px;
  color: var(--parchment);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about-author-inner em { color: var(--gold); }

/* My Journey book-title mention — script accent, sized for inline use.
   Slightly larger than surrounding text so the cursive stays readable. */
.about-author-inner .book-title {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.4em;
  color: var(--gold);
  line-height: 1;
}

/* ---- Events ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.stagger-children.visible > * { opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.00s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }

.event-card {
  background: var(--navy-card);
  border: 0.5px solid var(--gold-a20);
  border-radius: 4px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.event-card:hover {
  border-color: var(--gold-a50);
  transform: translateY(-2px);
}

.event-date {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-name {
  font-size: 15px;
  color: var(--heading-light);
  font-weight: 500;
  margin-bottom: 6px;
}

.event-loc { font-size: 12px; color: var(--slate); }

.event-card-empty {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.event-card-empty span { font-size: 12px; color: var(--slate); text-align: center; }

/* ---- Contact ---- */
.contact-form { max-width: 520px; margin: 0 auto; }

.contact-intro {
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 32px;
  line-height: 1.75;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--cream-input);
  border: 0.5px solid var(--gold-a30);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 16px;            /* 16px prevents iOS zoom-on-focus */
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus { border-color: var(--gold); }

.field textarea { height: 110px; resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--gold-hover); transform: translateY(-1px); }


/* ═══════════════════════════════════════════
   11. contributors.html — PAGE HERO
═══════════════════════════════════════════ */

.page-hero {
  background: var(--cream-hero);
  padding: 72px var(--gutter) 56px;
  text-align: center;
  border-bottom: 0.5px solid var(--gold-a20);
}

.page-hero-inner {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.page-label {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-sub {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 24px;
}

.page-ornament { color: var(--gold-soft); font-size: 20px; opacity: 0.5; }


/* ═══════════════════════════════════════════
   12. contributors.html — BODY & CARDS
═══════════════════════════════════════════ */

.contrib-body {
  padding: 64px var(--gutter);
  background: var(--cream);
}

.contrib-quote {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 52px;
}

.contrib-quote p {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.85;
}

.contrib-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-style: normal;
}

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.contrib-card {
  background: var(--card-bg);
  border: 0.5px solid var(--goldsoft-a25);
  border-radius: 4px;
  padding: 24px 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.contrib-card:hover {
  border-color: rgba(180, 140, 60, 0.55);
  transform: translateY(-3px);
}

/* Avatar: was a fixed 256px square that overflowed narrow cards.
   Now fluid — fills the card width but never exceeds 256px. */
.contrib-avatar {
  width: 100%;
  max-width: 256px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f0e6ce;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #8a6820;
}

.contrib-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contrib-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.contrib-role {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.contrib-note {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.contrib-divider {
  height: 0.5px;
  background: rgba(180, 140, 60, 0.15);
  margin-bottom: 12px;
}

.contrib-contact {
  font-size: 12px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contrib-contact a { color: var(--gold-soft); text-decoration: none; }
.contrib-contact a:hover { text-decoration: underline; }

.icon-mail,
.icon-phone {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: var(--gold-soft);
  fill: none;
  stroke-width: 1.5;
  vertical-align: middle;
}

.contrib-card-empty {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.contrib-card-empty span {
  font-size: 13px;
  color: #b0a080;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

.contrib-footnote {
  max-width: 560px;
  margin: 44px auto 0;
  text-align: center;
}

.contrib-footnote p {
  font-size: 12px;
  color: #8a7a60;
  font-style: italic;
  line-height: 1.75;
}

.contrib-footnote a { color: var(--gold-soft); text-decoration: none; }
.contrib-footnote a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════
   13. WIP BANNER — floating, bottom
═══════════════════════════════════════════ */

.wip-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #1a1a1a;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999999;
}

.wip-banner-stripes {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #fcd34d,
    #fcd34d 10px,
    #1a1a1a 10px,
    #1a1a1a 20px
  );
}

.wip-banner-body {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.wip-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wip-banner-badge {
  background-color: #fcd34d;
  color: #1a1a1a;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.wip-banner-text {
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
}

.wip-banner-link {
  color: #fcd34d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.wip-banner-link:hover { color: #f59e0b; }


/* ═══════════════════════════════════════════
   14. RESPONSIVE — TABLET (≤768px)
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --gutter:      28px;
    --section-pad: 52px;
  }

  /* Hero stacks vertically, text first reads better on a phone */
  .hero {
    flex-direction: column;
    gap: 36px;
    min-height: 0;
    padding: 56px var(--gutter);
    text-align: center;
  }

  .hero-text { max-width: 100%; }
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 32px; }   /* script scales down with the title */

  /* The ambient portrait is decorative — hide it so it never
     fights the stacked content for space. */
  .hero-portrait,
  .hero-portrait-placeholder { display: none; }

  /* Center the book cover when the hero stacks vertically */
  .hero-cover-wrap {
    display: flex;
    justify-content: center;
  }
  
  .hero-cover-wrap, .hero-text-wrap { width: 100%; }

  /* Center the buttons that sit under the hook */
  .hero-text .btn-gold { margin-right: 8px; }

  .section-heading { font-size: 28px; }
  .page-title { font-size: 32px; }

  /* About / author blocks stack and center */
  .about-author-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  /* Quote bar becomes a horizontal rule above the text when stacked */
  .about-book-inner {
    flex-direction: column;
    gap: 20px;
  }

  .quote-bar {
    width: 48px;
    min-height: 0;
    height: 3px;
    margin: 0 auto;
  }
}


/* ═══════════════════════════════════════════
   15. RESPONSIVE — PHONE (≤480px)
═══════════════════════════════════════════ */

@media (max-width: 480px) {
  :root {
    --gutter:      20px;
    --section-pad: 44px;
  }

  /* Nav: let logo and links stack instead of cramming on one line */
  nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px var(--gutter);
  }

  .nav-links { gap: 18px; justify-content: center; }

  .hero { padding: 44px var(--gutter); }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 28px; }   /* keep script legible on phones */
  .hero-hook { font-size: 14px; }

  /* Stack hero buttons full-width for easy thumb taps */
  .hero-text .btn-gold,
  .hero-text .btn-outline {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
  }

  .section-heading { font-size: 24px; }
  .page-title { font-size: 27px; }

  /* Single-column grids — drop the minmax floor so cards
     don't force horizontal overflow on small screens */
  .events-grid,
  .contrib-grid { grid-template-columns: 1fr; }

  /* Cap the contributor avatar so it isn't a huge circle on phones */
  .contrib-avatar { max-width: 180px; }

  /* WIP banner: allow the text to wrap and grow taller if needed */
  .wip-banner-wrapper { height: auto; }

  .wip-banner-body {
    height: auto;
    min-height: 44px;
    padding: 8px 16px;
  }

  .wip-banner-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    text-align: center;
  }

  .wip-banner-text,
  .wip-banner-link { font-size: 13px; }

  /* Give page bottoms clearance so the fixed banner doesn't
     cover the footer's last line */
  footer { padding-bottom: 72px; }
}

/* ═══════════════════════════════════════════
   TESTIMONIALS 
═══════════════════════════════════════════ */


/* ── Homepage marquee carousel ──────────────────────────── */

.tm-section {
  background: var(--navy-mid);
  padding: var(--section-pad) 0;   /* full-bleed: no horizontal padding */
  overflow: hidden;
}

.tm-section .section-label,
.tm-section .section-heading {
  padding: 0 var(--gutter);
}

.tm-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on both edges so cards melt in/out instead of cutting */
  -webkit-mask-image: linear-gradient(
    to right, transparent, #000 8%, #000 92%, transparent
  );
  mask-image: linear-gradient(
    to right, transparent, #000 8%, #000 92%, transparent
  );
}

.tm-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 8px 0;
  animation: tm-scroll 60s linear infinite;
}

/* Static fallback (few cards, empty, or error state) */
.tm-track.tm-static {
  animation: none;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes tm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactly one copy width */
}

@media (prefers-reduced-motion: reduce) {
  .tm-track { animation: none; }
}

.tm-card {
  flex: 0 0 320px;
  background: var(--navy-card);
  border: 0.5px solid var(--gold-a20);
  border-radius: 6px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.tm-message {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: var(--parchment);
  margin-bottom: 16px;
  /* Clamp very long messages so cards stay uniform in the marquee */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.tm-card-empty {
  flex: 0 0 auto;
  max-width: 420px;
  align-items: center;
  text-align: center;
}

.tm-link {
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
}
.tm-link:hover { color: var(--gold-hover); }


/* ── Submission page (testimonials.html) ────────────────── */

.submit-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.submit-intro {
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 32px;
  line-height: 1.75;
}

/* Reuses .field / input / textarea from your contact form section.
   These extras handle the Turnstile widget + status message. */

.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

.form-status {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  min-height: 20px;
  line-height: 1.5;
}

.form-status.success { color: #4a9d5b; }
.form-status.error   { color: #c0563f; }


/* ── Admin page (admin.html) ────────────────────────────── */

.admin-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-section-title:first-of-type { margin-top: 0; }

.admin-badge {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

.admin-card {
  background: var(--card-bg);
  border: 0.5px solid var(--goldsoft-a25);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.admin-date { font-size: 12px; color: var(--ink-light); white-space: nowrap; }

.admin-message {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 14px;
}

.admin-actions { display: flex; gap: 10px; }

.admin-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.admin-btn:disabled { opacity: 0.5; cursor: default; }

.admin-btn.approve { background: #4a9d5b; color: #fff; }
.admin-btn.approve:hover:not(:disabled) { background: #57b06a; }

.admin-btn.reject {
  background: transparent;
  border: 1px solid #c0563f;
  color: #c0563f;
}
.admin-btn.reject:hover:not(:disabled) { background: rgba(192, 86, 63, 0.08); }

.admin-loading,
.admin-empty,
.admin-error {
  font-size: 14px;
  color: var(--ink-light);
  font-style: italic;
  padding: 12px 0;
}

.admin-error { color: #c0563f; }


/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 480px) {
  .tm-card { flex: 0 0 80vw; }

  .admin-card-head { flex-direction: column; gap: 2px; }
  .admin-date { white-space: normal; }
}