/* ============================================================
   THE BACKSTORY ON STORYTELLING
   WSJ / Woodcut Engraving Editorial Style
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* WSJ Palette: newsprint ivory, deep ink, crosshatch grays */
  --paper:        #f5f1e8;        /* aged newsprint */
  --paper-lt:     #faf8f3;        /* lighter paper */
  --paper-dk:     #ede8db;        /* slightly darker paper */
  --ink:          #0f0e0c;        /* near-black press ink */
  --ink-mid:      #2c2820;        /* dark brown-black */
  --ink-soft:     #4a4540;        /* body text ink */
  --ink-light:    #7a7268;        /* muted ink */
  --rule-dk:      #1a1714;        /* heavy rule */
  --rule:         #c8c0b0;        /* standard column rule */
  --rule-lt:      #e2ddd3;        /* light hairline */
  --accent:       #1a1714;        /* primary CTA — deep ink */
  --accent-inv:   #f5f1e8;        /* inverse text on dark */
  --red:          #8b1a1a;        /* WSJ editorial red */
  --red-dk:       #6a1212;

  --font-serif:   'EB Garamond', 'Source Serif 4', Georgia, serif;
  --font-display: 'Playfair Display', 'EB Garamond', Georgia, serif;
  --font-sans:    'Source Serif 4', Georgia, serif; /* even labels feel editorial */
  --font-label:   'Playfair Display', Georgia, serif;

  --radius:       2px;            /* very tight — newspaper feel */
  --shadow-sm:    0 1px 4px rgba(0,0,0,.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,.15);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.22);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.75;
  /* subtle crosshatch paper texture via CSS */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0,0,0,.018) 28px,
      rgba(0,0,0,.018) 29px
    );
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
em { font-style: italic; }
p  { color: var(--ink-soft); }

/* ── EDITORIAL RULES ── */
.rule-double {
  border: none;
  border-top: 3px solid var(--rule-dk);
  box-shadow: 0 3px 0 var(--rule-dk);
  margin: 0;
}
.rule-single {
  border: none;
  border-top: 1px solid var(--rule-dk);
  margin: 0;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  min-width: 400px;
}

/* ── BUTTONS — newspaper editorial style ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-mid);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--rule);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--rule);
  transform: translateY(-2px);
}
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dk);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(139,26,26,.25);
}
.btn-full { width: 100%; justify-content: center; }

/* ── SECTION LABELS — editorial kicker style ── */
.section-label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}
.section-label::before { display: none; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: inline-block; }
.section-header h2 { margin-bottom: 1rem; }
.section-desc { max-width: 560px; margin: 0 auto; color: var(--ink-light); font-style: italic; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVBAR — broadsheet masthead style
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 1px 0 var(--rule-dk);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .04em;
  font-style: italic;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: .38rem 1.1rem !important;
  border: 1.5px solid var(--ink) !important;
  border-bottom: 1px solid transparent !important;
}
.nav-cta:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  transform: none !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: .6rem;
  border-top: 1px solid var(--rule);
  background: var(--paper-lt);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .35rem 0;
  border-bottom: 1px solid var(--rule-lt);
}
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO — broadsheet front page layout
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* background: very subtle dot-matrix / halftone feel */
.hero-bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: -1;
}

.hero-content { animation: fadeUp .8s ease both; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.hero-rule-left {
  height: 2px;
  width: 32px;
  background: var(--red);
  flex-shrink: 0;
}
.hero-label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-title {
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 900;
}
.hero-title em {
  font-style: italic;
  font-weight: 900;
}
.hero-title .title-small {
  font-size: .55em;
  display: block;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-style: normal;
  margin-bottom: .15em;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--rule-dk);
  margin: 1.25rem 0;
  position: relative;
}
.hero-rule::after {
  content: '';
  position: absolute;
  top: 3px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--rule);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BOOK DISPLAY — actual cover image ── */
.hero-book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp .9s .15s ease both;
}
.book-3d {
  display: flex;
  filter: drop-shadow(8px 12px 32px rgba(0,0,0,.35));
  transition: transform .5s ease, filter .5s ease;
  cursor: default;
}
.book-3d:hover {
  transform: perspective(900px) rotateY(-7deg) rotateX(2deg) scale(1.02);
  filter: drop-shadow(14px 20px 40px rgba(0,0,0,.4));
}
.book-front {
  width: 600px;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  position: relative;
}
/* Glossy sheen overlay */
.book-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.04) 40%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: 2px 8px 8px 2px;
}
.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px 8px 8px 2px;
}
.book-spine {
  width: 30px;
  background: linear-gradient(to right, #111 0%, #2a2a2a 40%, #1a1a1a 100%);
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: inset -3px 0 6px rgba(0,0,0,.4);
}

/* Hero scroll arrow */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.2s infinite;
}
.hero-scroll a {
  color: var(--ink-light);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-display);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ============================================================
   PULL QUOTE BAND — broadsheet editorial banner
   ============================================================ */
.pull-quote-band {
  background: var(--ink);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* woodcut cross-hatch feel on the dark band */
.pull-quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.015) 0px,
      rgba(255,255,255,.015) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.015) 0px,
      rgba(255,255,255,.015) 1px,
      transparent 1px,
      transparent 8px
    );
  pointer-events: none;
}
.pull-quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}
.pull-quote-band blockquote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 0;
  vertical-align: -.5em;
  color: var(--red);
  margin-right: .15em;
  font-family: var(--font-display);
}
.pull-quote-band cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,241,232,.45);
}

/* ============================================================
   ABOUT — two-column editorial layout
   ============================================================ */
#about {
  padding: 5.5rem 2rem;
  background: var(--paper-lt);
  border-top: 1px solid var(--rule-dk);
  border-bottom: 1px solid var(--rule-dk);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; font-size: .97rem; line-height: 1.8; }
.about-text .btn { margin-top: .75rem; }

/* Column rule between text and features */
.about-grid > *:first-child {
  border-right: 1px solid var(--rule);
  padding-right: 4rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.feature-card {
  background: transparent;
  border-top: 2px solid var(--ink);
  padding: 1.25rem 0 0;
  transition: none;
}
.feature-icon {
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: .6rem;
}
.feature-card h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .4rem;
  color: var(--ink);
}
.feature-card p { font-size: .85rem; color: var(--ink-light); line-height: 1.65; }

/* ============================================================
   SAMPLE READER — broadsheet page style
   ============================================================ */
#sample {
  padding: 5.5rem 2rem;
  background: var(--paper);
}
.reader-shell {
  background: var(--paper-lt);
  border: 1px solid var(--rule-dk);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 840px;
  margin: 0 auto;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: var(--paper-dk);
  border-bottom: 2px solid var(--ink);
}
.reader-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--paper);
  border: 1px solid var(--rule-dk);
  border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
}
.reader-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.reader-btn:disabled { opacity: .3; cursor: not-allowed; }
.reader-page-info {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-light);
  font-family: var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Chapter tab strip */
.reader-tabs {
  display: flex;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.reader-tab {
  flex: 1;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: .85rem .5rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.reader-tab:hover { color: var(--ink); }
.reader-tab.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* Pages */
.reader-pages { position: relative; min-height: 520px; }
.reader-page {
  display: none;
  padding: 3rem 4.5rem;
  animation: pageIn .35s ease;
  /* column rule on right of page */
  background-image: linear-gradient(
    to right,
    transparent calc(100% - 1px),
    var(--rule-lt) calc(100% - 1px)
  );
}
.reader-page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

.page-content { max-width: 640px; margin: 0 auto; }

.page-meta {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--rule-lt);
  padding-bottom: .5rem;
}

.page-content h3 {
  margin-bottom: 1.1rem;
  color: var(--ink);
  font-size: 1.45rem;
}
.page-subhead {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 1.6rem 0 .6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-lt);
}
.prose-list {
  margin: .85rem 0 1.1rem 1rem;
  list-style: none;
}
.prose-list li {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: .75rem;
  padding-left: 1.1rem;
  position: relative;
}
.prose-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.prose-list.learnings li::before { content: '›'; font-size: 1.2rem; }
.page-sign-off {
  font-family: var(--font-display);
  font-size: .97rem;
  color: var(--ink);
  margin-top: .6rem;
  font-style: normal;
}
.page-content p {
  margin-bottom: 1.1rem;
  font-size: 1.07rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.page-content a { color: var(--red); text-decoration: underline; }

.page-divider {
  height: 0;
  border: none;
  border-top: 1px solid var(--rule-dk);
  margin: 1.5rem 0;
  position: relative;
}
.page-divider::after {
  content: '§';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper-lt);
  padding: 0 .5rem;
  color: var(--rule-dk);
  font-size: .8rem;
}

/* Title page */
.title-page { text-align: center; padding-top: 2.5rem; }
.title-page .page-icon {
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: .7;
}
.page-book-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.15;
  font-weight: 700;
}
.page-book-title .title-the {
  font-size: .6em;
  font-weight: 400;
  display: block;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: 2rem;
  font-size: .95rem;
}
.page-author {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .3rem;
  font-family: var(--font-display);
}
.page-author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
}

/* Dedication */
.dedication-page { text-align: left; }
.dedication-text {
  background: var(--paper-dk);
  border-left: 3px solid var(--ink);
  padding: 1.75rem 2rem;
}
.dedication-text p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: .75rem;
  color: var(--ink-soft);
}
.dedication-text p:last-child {
  margin-bottom: 0;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
}

/* Chapter list */
.chapter-list { margin-bottom: 1.75rem; }
.chapter-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule-lt);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.ch-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--red);
  flex-shrink: 0;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.teaser-cta { text-align: center; margin-top: 2rem; }
.teaser-cta p {
  margin-bottom: .7rem;
  font-style: italic;
  color: var(--ink-light);
  font-size: 1rem;
}
.teaser-cta .btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Progress */
.reader-progress { height: 2px; background: var(--rule-lt); }
.reader-progress-bar {
  height: 100%;
  background: var(--ink);
  transition: width .4s ease;
}
.reader-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: var(--paper-dk);
  border-top: 1px solid var(--rule);
}
.reader-dot {
  width: 6px; height: 6px;
  border-radius: 0; /* square dots — woodcut feel */
  background: var(--rule);
  cursor: pointer;
  transition: background .25s, transform .25s;
  border: none;
}
.reader-dot.active {
  background: var(--ink);
  transform: scale(1.5);
}

/* ============================================================
   AUTHOR
   ============================================================ */
#author {
  padding: 5.5rem 2rem;
  background: var(--paper-lt);
  border-top: 1px solid var(--rule-dk);
  border-bottom: 1px solid var(--rule-dk);
}
.author-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}
.author-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 7rem;
}
.author-emblem {
  width: 170px;
  height: 170px;
  border: 3px solid var(--ink);
  background: var(--paper-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--ink);
  /* woodcut hatching inside */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 5px,
      rgba(0,0,0,.04) 5px,
      rgba(0,0,0,.04) 6px
    );
}
.author-tag {
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
}
.author-text h2 { margin-bottom: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .75rem; }
.author-text p  { margin-bottom: 1rem; font-size: .97rem; line-height: 1.85; }
.author-text a  { color: var(--red); text-decoration: underline; }
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.author-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: .4rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.author-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   GET THE BOOK
   ============================================================ */
#get-book {
  padding: 5.5rem 2rem;
  background: var(--paper);
}
.buy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.buy-card {
  border: 1px solid var(--rule-dk);
  border-top: 4px solid var(--ink);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  background: var(--paper-lt);
  position: relative;
}
.buy-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--rule);
}
.buy-card.featured {
  background: var(--ink);
  border-top-color: var(--red);
  /* engraving texture on dark card */
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 10px
    );
}
.buy-card.featured h3 { color: var(--paper); }
.buy-card.featured p  { color: rgba(245,241,232,.65); }
.buy-card.featured .buy-icon { color: var(--paper); }
.buy-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 0 0 2px 2px;
}
.buy-icon {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.buy-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.buy-card p  { font-size: .88rem; color: var(--ink-light); margin-bottom: 1.5rem; line-height: 1.65; }

/* ============================================================
   FOOTER — newspaper colophon
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(245,241,232,.55);
  padding: 3rem 2rem;
  border-top: 4px solid var(--rule-dk);
  /* woodcut hatch */
  background-image:
    repeating-linear-gradient(
      -60deg,
      rgba(255,255,255,.012) 0px,
      rgba(255,255,255,.012) 1px,
      transparent 1px,
      transparent 8px
    );
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--paper);
  margin-bottom: .2rem;
}
.footer-by {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,241,232,.35);
}
.footer-rule {
  width: 60px;
  border: none;
  border-top: 1px solid rgba(245,241,232,.2);
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,241,232,.45);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.footer-links a:hover { color: var(--paper); }
.footer-copy {
  font-family: var(--font-display);
  font-size: .72rem;
  color: rgba(245,241,232,.25);
  line-height: 1.9;
}
.footer-copy a { color: rgba(245,241,232,.5); }
.footer-copy a:hover { color: var(--paper); text-decoration: underline; }

/* ============================================================
   FLOATING EMAIL BUTTON — stamp / seal style
   ============================================================ */
.fab-email {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--red), var(--shadow-md);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 900;
  transition: var(--transition);
  overflow: visible;
}
.fab-email:hover {
  background: var(--red-dk);
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--red-dk), 6px 6px 0 rgba(139,26,26,.3);
}
.fab-tooltip {
  position: absolute;
  right: 64px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .35rem .85rem;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
.fab-email:hover .fab-tooltip {
  opacity: 1;
  transform: none;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact {
  padding: 5.5rem 2rem;
  background: var(--paper-dk);
  border-top: 1px solid var(--rule-dk);
  border-bottom: 1px solid var(--rule-dk);
}
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper-lt);
  border: 1px solid var(--rule-dk);
  border-top: 4px solid var(--ink);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-serif);
  font-size: .97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-dk);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f0e0c' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--rule);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
  box-shadow: 2px 2px 0 rgba(139,26,26,.2);
}
.field-error {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red);
  min-height: .9rem;
  display: block;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--font-display);
  font-size: .72rem;
  font-style: italic;
  color: var(--ink-light);
  margin: 0;
}
/* loading state */
#cfSubmitBtn.loading {
  opacity: .6;
  pointer-events: none;
}
/* status banners */
.form-status {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: .85rem 1.1rem;
  border-left: 3px solid;
  font-family: var(--font-display);
  font-size: .9rem;
}
.form-status.success {
  border-color: #2a6b2a;
  background: #f0f7f0;
  color: #1e4d1e;
}
.form-status.error {
  border-color: var(--red);
  background: #fdf0f0;
  color: var(--red-dk);
}
.form-status.visible { display: flex; }

@media (max-width: 680px) {
  .contact-wrap { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  #hero {
    grid-template-columns: 1fr;
    padding: 6.5rem 2rem 4rem;
    text-align: center;
    gap: 3rem;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > *:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 3rem;
    margin-bottom: 1rem;
  }
  .author-grid { grid-template-columns: 1fr; text-align: center; }
  .author-visual { position: static; }
  .author-links { justify-content: center; }
  .author-text h2 { text-align: center; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-features { grid-template-columns: 1fr; }
  .reader-page { padding: 2.25rem 1.75rem; }
  .book-front { width: 220px; }
}
@media (max-width: 460px) {
  .book-front { width: 180px; }
  .book-spine { width: 22px; }
  .buy-cards { grid-template-columns: 1fr; }
  #hero { padding: 6rem 1.25rem 3rem; }
}
