/* ============================================================
   NARGIS SAKHIBOVA — Signal & Soil
   Shared Stylesheet v2.0 — "Living Notebook, Botanical-Mathematical System"
   Color System: White / Grey / Royal Purple / Golden Yellow / Lilac (unchanged)
   Type System: Fraunces (display/name) · Source Serif 4 (body) · Inter (UI/labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300..600;1,8..60,300..500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --white:        #FAFAF8;
  --off-white:    #F4F2EE;
  --grey-light:   #E8E6E1;
  --grey-mid:     #A09D97;
  --grey-dark:    #5C5A56;
  --charcoal:     #1C1B19;
  --purple:       #4A2080;
  --purple-deep:  #2D1355;
  --purple-mid:   #6B3AA8;
  --lilac:        #C4A8D8;
  --lilac-light:  #E8D8F5;
  --lilac-pale:   #F3ECF9;
  --gold:         #D4A017;
  --gold-bright:  #F0B62A;
  --gold-pale:    #FBF0D0;

  /* Type system v2 — Canela/Neue Haas Grotesk were the ideal (fashion-editorial) pick from
     design review, but both are commercial licenses not available via Google Fonts, which is
     what this deploy pipeline's @import can legally serve for free. Fraunces is the closest
     free analog to Canela's warmth (variable SOFT/WONK axes give it organic, non-templated
     character); Inter stands in for Neue Haas Grotesk per the same review's own fallback note.
     Swap these three lines if/when a licensed Canela + Neue Haas Grotesk kit is purchased —
     nothing else in this file needs to change. */
  --font-display: 'Fraunces', Georgia, serif;       /* was Cormorant Garamond — name + headlines */
  --font-body:    'Source Serif 4', Georgia, serif; /* was Noto Sans — reading copy */
  --font-mono:    'Inter', system-ui, sans-serif;   /* was DM Mono — labels/nav/UI. Var name kept
                                                        for minimal-diff safety; it's no longer a
                                                        monospace, it's the UI sans. */

  --nav-h:        72px;
  --max-w:        1280px;
  --gutter:       clamp(1.5rem, 5vw, 5rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --transition:   0.4s var(--ease-out);

  /* Golden-angle rhythm — used quietly for a few rotation/accent values rather than as a gimmick */
  --golden-angle: 137.5deg;
  --phi:          1.618;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  /* Inherited property — gives every Fraunces element (h1-h5, name, pull-quotes) its organic,
     less-templated character. Other faces ignore the unrecognized axis tags harmlessly. */
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { font-size: 1rem; line-height: 1.8; }
a { text-decoration: none; color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--grey-light);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav-logo span { color: var(--purple); }
.nav-logo:hover { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.btn-primary {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-1px);
}

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

/* ── Section Spacing ── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ── Divider ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--grey-light);
  margin: 4rem 0;
}

/* ── Spiral mark — the site's signature ornament, a true golden (logarithmic) spiral.
   Used sparingly, at section transitions that want real weight, in place of .divider. ── */
.spiral-mark {
  width: 44px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}
.spiral-mark.large { width: 84px; height: 76px; }
.spiral-mark.lilac { color: var(--lilac); }
.spiral-mark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74, 32, 128, 0.08);
  border-color: var(--lilac);
}

.card-purple {
  background: var(--purple-deep);
  color: var(--white);
  border-color: var(--purple);
}

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--lilac);
  color: var(--purple);
  background: var(--lilac-pale);
  margin: 0.2rem;
}

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* Section-label variant used on alternating sections so six sections in a row don't all
   open with the identical label→headline→divider beat — small caps of the display face
   instead of the UI sans, no rule before it. */
.section-label.variant {
  font-family: var(--font-display);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--purple);
}
.section-label.variant::before { display: none; }

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
.site-footer {
  background: var(--purple-deep);
  color: var(--lilac-light);
  padding: 4rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--lilac);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--lilac);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(196, 168, 216, 0.5);
}

/* ── Language Glyphs (decorative watermark) ── */
.lang-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 300;
  opacity: 0.03;
  user-select: none;
  pointer-events: none;
  color: var(--purple);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--lilac); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-mid); }

/* ── Page Transition ── */
.page-transition {
  animation: pageIn 0.6s var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--purple-deep);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 300;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .close-btn {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  color: var(--lilac);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Stat blocks ── */
.stat-block {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}
.stat-block .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--purple);
  line-height: 1;
  display: block;
}
.stat-block .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-top: 0.4rem;
  display: block;
}

/* ── Credentials strip — compact, sits under the hero name. Answers "who is this,
   what's the scope" in five seconds without becoming the whole homepage. ── */
.credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(196, 168, 216, 0.25);
}
.credentials-strip .cred {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.credentials-strip .cred-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--white);
}
.credentials-strip .cred-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* ── Quote ── */
blockquote.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--purple);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 0 1.5rem 2.5rem;
  line-height: 1.4;
}

/* ── Image frames ── */
.img-frame {
  position: relative;
  overflow: hidden;
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,32,128,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.img-frame:hover img { transform: scale(1.03); }

/* Placeholder fallback for not-yet-uploaded photos (used via onerror), gradient + label,
   per existing site convention. */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--lilac-light) 0%, var(--lilac-pale) 45%, var(--off-white) 100%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-mid);
}

/* ── Loading bar ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  z-index: 9998;
  transition: width 0.3s ease;
}

/* ============================================================
   BOTANICAL-MATHEMATICAL ICON SYSTEM
   Four marks, each a real math symbol fused with a real botanical form —
   not decoration standing in for meaning, the meaning stated twice.
   ============================================================ */
.icon-badge {
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.25));
}
.icon-badge svg { width: 100%; height: 100%; }
.icon-badge path, .icon-badge ellipse, .icon-badge circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge .leaf-fill { fill: currentColor; stroke: none; opacity: 0.85; }

/* Quiet golden-angle background texture — a real phyllotaxis point field (137.5°, r=c·√n),
   not a random particle scatter. Rendered by /js/phyllotaxis.js onto a canvas placed here. */
.phyllotaxis-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   HOMEPAGE STREAM — recent essay / featured idea / garden notebook /
   writing topics / reading list. This, not the hero, is now the front door.
   ============================================================ */
.stream-block { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.stream-block + .stream-block { border-top: 1px solid var(--grey-light); }

.essay-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.essay-feature .essay-figure {
  aspect-ratio: 4/3;
  min-height: 220px; /* fallback floor if aspect-ratio doesn't compute -- see .book-cover comment */
  background: var(--lilac-pale);
}
.essay-feature .essay-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.essay-feature h2 { margin-bottom: 1rem; }
.essay-feature .essay-dek {
  color: var(--grey-dark);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 46ch;
}

.idea-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--purple);
}
.idea-card .idea-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.notebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.notebook-card {
  display: block;
  border: 1px solid var(--grey-light);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition);
}
.notebook-card:hover { transform: translateY(-3px); border-color: var(--lilac); }
.notebook-card .notebook-figure { aspect-ratio: 1/1; min-height: 220px; } /* fallback floor -- see .book-cover comment */
.notebook-card .notebook-body { padding: 1.5rem; }
.notebook-card .notebook-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.notebook-card h4 { margin-bottom: 0.4rem; }
.notebook-card p { font-size: 0.85rem; color: var(--grey-dark); line-height: 1.6; }

.topics-list { margin-top: 2rem; border-top: 1px solid var(--grey-light); }
.topics-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--grey-light);
}
.topics-row .topics-title { font-family: var(--font-display); font-size: 1.15rem; }
.topics-row .topics-title a:hover { color: var(--purple); }
.topics-row .topics-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dark);
  white-space: nowrap;
}
.topics-row.coming-soon .topics-title { color: var(--grey-dark); font-style: italic; }
.topics-row.coming-soon .topics-tag { color: var(--lilac); }

.reading-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.reading-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--grey-light);
  font-size: 0.95rem;
  color: var(--grey-dark);
}
.reading-item .reading-kind {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
  min-width: 5.5rem;
}
.reading-item.placeholder { color: var(--grey-dark); font-style: italic; }

/* ── Teaser rows — compact links from the homepage into Journey / Teaching, which now
   carry their full content on their own pages. ── */
.page-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  border: 1px solid var(--grey-light);
}
.page-teaser .teaser-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }

/* ── Reading list — book grid, real covers, out to a purchase link.
   As an Amazon Associate, Nargis may earn from qualifying purchases. ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem 1.25rem;
  margin-top: 2rem;
}
.book-card { display: flex; flex-direction: column; gap: 0.6rem; }
.book-cover {
  aspect-ratio: 2/3;
  /* min-height is a defensive floor, not the primary sizing mechanism: aspect-ratio
     computes taller than this at every real column width, so this has no visible
     effect when aspect-ratio applies correctly. It only matters as a fallback if
     aspect-ratio fails to compute for some reason -- without it, the box collapses
     to 0 height, and since the <img> inside is loading="lazy", a 0-height box never
     enters the lazy-load trigger zone, so the cover image never even gets requested.
     That reads to a visitor as "the book images aren't loading" even though nothing
     about the image itself is broken. */
  min-height: 200px;
  background: var(--lilac-pale);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.book-card:hover .book-cover {
  transform: translateY(-3px);
  border-color: var(--lilac);
  box-shadow: 0 14px 30px rgba(74, 32, 128, 0.12);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.28;
  color: var(--charcoal);
  transition: color var(--transition);
}
.book-card:hover .book-title { color: var(--purple); }
.book-author {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--grey-dark);
}
.affiliate-disclosure {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: var(--grey-dark);
  margin-top: 2.25rem;
}

@media (max-width: 1024px) {
  .essay-feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .notebook-grid { grid-template-columns: 1fr 1fr; }
  .idea-card { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .notebook-grid { grid-template-columns: 1fr; }
  .credentials-strip { gap: 1.5rem 2rem; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
