/* ============================================================
   Lifehacktics - editorial / paper / collage design system
   Inspired by old hotel-stationery aesthetics
   ============================================================ */

:root {
  --paper: #F4F1EA;
  --paper-deep: #E9E3D2;
  --ink: #1F1F1F;
  --ink-soft: #3a3a36;
  --muted: #6b6b65;
  --mustard: #FFC233;
  --mustard-deep: #E0A41C;
  --terracotta: #C65D3B;
  --terracotta-deep: #A24A2C;
  --warm-gray: #D1D1C9;
  --warm-gray-deep: #BFBEB5;
  --line: rgba(31, 31, 31, 0.12);
  --line-strong: rgba(31, 31, 31, 0.28);
  --shadow-card: 0 28px 60px rgba(31, 31, 31, 0.22);
  --shadow-soft: 0 14px 30px rgba(31, 31, 31, 0.12);

  --font-serif: 'Cormorant Garamond', 'Fraunces', Georgia, "Times New Roman", serif;
  --font-body-serif: 'EB Garamond', 'Cormorant Garamond', Georgia, "Times New Roman", serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --font-sans: 'DM Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --site-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background:
    var(--paper)
    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

::selection { background: var(--terracotta); color: var(--paper); }

a { color: inherit; }


/* ---------- Utility ---------- */

.mono       { font-family: var(--font-mono); letter-spacing: 0.04em; }
.sans       { font-family: var(--font-sans); }
.serif      { font-family: var(--font-serif); }
.upper      { text-transform: uppercase; letter-spacing: 0.2em; }
.tracking   { letter-spacing: 0.3em; }
.italic     { font-style: italic; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Paper texture overlay - applied via class to add subtle grain */
.paper-texture { position: relative; overflow: hidden; }
.paper-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' fill='white'/%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.paper-texture > * { position: relative; z-index: 2; }

/* Stamp-border helper kept as a no-op (was producing unreadable polka-dots) */
.stamp-border { /* intentionally empty */ }

/* Barcode pattern */
.barcode {
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0,           var(--ink) 2px,
    transparent 2px,        transparent 4px,
    var(--ink) 4px,         var(--ink) 5px,
    transparent 5px,        transparent 8px,
    var(--ink) 8px,         var(--ink) 12px,
    transparent 12px,       transparent 14px
  );
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-slow { animation: rotate-slow 30s linear infinite; }

.vertical-mono {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--site-max));
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: padding 0.25s ease;
}

body.is-scrolled .topbar {
  background: rgba(244, 241, 234, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
          backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 6px 22px rgba(31, 31, 31, 0.06);
}

body.is-scrolled .topbar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }

.brand-block { display: flex; align-items: baseline; gap: 14px; }

.brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand em { font-style: italic; font-weight: 500; }

.brand-est {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31,31,31,0.05);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.topnav a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a.is-active {
  opacity: 1;
  color: var(--ink);
}

.topnav a.is-active { font-weight: 700; }

.topnav a.is-active .dot {
  opacity: 1;
  transform: scale(1);
}

/* Mobile-only "Read on web" text link in the header.
   Hidden on desktop where the topnav already carries the link. */
.topcta-read {
  display: none;
}

.topcta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 9px 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.topcta-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topcta:hover {
  background: var(--ink);
  color: var(--paper);
}

.topcta:hover .topcta-bubble {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(2px);
}

body.is-scrolled .topcta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(31, 31, 31, 0.18);
}

body.is-scrolled .topcta .topcta-bubble {
  background: var(--mustard);
  color: var(--ink);
}

body.is-scrolled .topcta:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

body.is-scrolled .topcta:hover .topcta-bubble {
  background: var(--paper);
  color: var(--terracotta);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  width: min(100%, var(--site-max));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 7vw, 96px);
  min-height: calc(100vh - 90px);
}

.hero-bg-spin {
  position: absolute;
  top: 12%;
  left: -180px;
  width: 520px;
  height: 520px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(60px, 9vh, 130px);
}

.hero-left h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-left h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.hero-lede {
  margin: 22px 0 0;
  max-width: 580px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  max-width: 420px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.info-icon.dark    { background: var(--ink); color: var(--paper); }
.info-icon.outline { border: 1px solid var(--ink); color: var(--ink); }
.info-icon.mustard { border: 1px solid var(--ink); color: var(--ink); }

.info-row:hover .info-icon.outline {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.info-row:hover .info-icon.mustard {
  background: var(--mustard);
  border-color: var(--mustard);
}

.info-icon .glyph-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
}

.info-row h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.05;
}

.info-row p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.75;
}

/* ---------- Hero cards (right column) ---------- */

.hero-cards {
  position: relative;
  min-height: 720px;
  z-index: 2;
}

.card {
  position: absolute;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s ease;
  border: 1px solid rgba(31, 31, 31, 0.06);
}

.card.folio  { transform: rotate(4deg); }
.card.taste  { transform: rotate(-3deg); }

.card.folio:hover { transform: rotate(2deg) translateY(-4px); }
.card.taste:hover { transform: rotate(-1deg) translateY(-6px); }

/* Folio card (warm gray, overlapping the cover from the right) */
.card.folio {
  top: 24px;
  left: 230px;
  right: auto;
  width: 270px;
  height: 420px;
  background: var(--warm-gray);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.folio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px dashed rgba(31, 31, 31, 0.18);
}

.folio-head .mono {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.folio-head .mono.faded { opacity: 0.5; }
.folio-head .mono.bold  { font-weight: 700; }

.folio-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.folio-body h4 {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
}

.folio-body h4 em { font-style: italic; font-weight: 500; }

.folio-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.folio-fields .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}

.folio-fields .field-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.1;
}

.folio-fields .field-value em { font-style: italic; font-weight: 500; }

.folio-foot {
  margin-top: auto;
  padding-top: 18px;
}

.folio-foot .barcode {
  height: 40px;
  opacity: 0.45;
  margin-bottom: 6px;
}

.folio-foot .scan-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.32em;
  opacity: 0.5;
}

/* Taste card (terracotta, bottom right, polka-dot perforation overlay) */
.card.taste {
  bottom: 8px;
  right: 80px;
  width: 380px;
  height: 240px;
  background: var(--terracotta);
  color: var(--paper);
  display: flex;
  z-index: 20;
  overflow: hidden;
}

.card.taste::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 9px 9px, var(--paper) 7.5px, transparent 8px);
  background-size: 24px 24px;
  background-position: -4px -4px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.card.taste > * { position: relative; z-index: 1; }

.taste-side {
  width: 38%;
  position: relative;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(244, 241, 234, 0.18);
}

.taste-side .vertical-mono {
  position: absolute;
  left: 14px;
  top: 22px;
  bottom: 22px;
  opacity: 0.7;
}

.taste-side .badge-letter {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  margin-left: 24px;
}

.taste-side .side-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-left: 24px;
  margin-top: 12px;
  line-height: 1.4;
}

.taste-side .side-icon {
  margin-left: 24px;
  opacity: 0.55;
}

.taste-body {
  width: 62%;
  position: relative;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.taste-body .spin-decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  opacity: 0.1;
}

.taste-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 0.95;
}

.taste-body p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.92;
  padding-right: 6px;
}

.taste-body .taste-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.4);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.taste-body .taste-link:hover { border-color: var(--paper); gap: 12px; }

/* 3D book mockup (replaces the old paper "cover card") */
.book-3d {
  position: absolute;
  left: -10px;
  top: 50%;
  width: 340px;
  margin: 0;
  z-index: 40;
  transform: rotate(-5deg) translateY(-50%);
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 28px 40px rgba(31, 31, 31, 0.28));
}

.book-3d:hover {
  transform: rotate(-2deg) translateY(calc(-50% - 10px));
  filter: drop-shadow(0 38px 52px rgba(31, 31, 31, 0.34));
}

.book-3d img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   INSIDE - section grid
   ============================================================ */

.inside {
  padding: clamp(80px, 9vw, 140px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: var(--site-max);
  margin: 0 auto 52px;
}

.section-head h2,
.closer-inner h2,
.excerpt h2 {
  margin: 0;
  max-width: 880px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-head h2 em,
.closer-inner h2 em,
.excerpt h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.inside-list {
  max-width: var(--site-max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.inside-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.25s ease, background 0.25s ease;
}

.inside-item:last-child { border-bottom: 1px solid var(--line); }

.inside-item:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(255, 194, 51, 0.15);
}

.inside-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

.inside-item h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.inside-item h3 em { font-style: italic; font-weight: 500; }

.inside-item p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.75;
}

.inside-item .arrow {
  justify-self: end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inside-item:hover .arrow {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
  transform: translateX(4px);
}

/* ============================================================
   EXCERPT
   ============================================================ */

.excerpt {
  position: relative;
  padding: clamp(80px, 9vw, 140px) clamp(24px, 5vw, 72px);
  background: var(--mustard);
  text-align: center;
  overflow: hidden;
}

.excerpt::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.excerpt > * { position: relative; z-index: 2; }

.excerpt .eyebrow { justify-content: center; opacity: 0.7; }

.excerpt blockquote {
  max-width: 920px;
  margin: 0 auto;
}

.excerpt blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.3;
}

.excerpt-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.excerpt-link:hover {
  background: var(--ink);
  color: var(--paper);
  gap: 14px;
}

/* ============================================================
   GIFT - "pass it on"
   ============================================================ */

.gift {
  padding: clamp(80px, 9vw, 130px) clamp(24px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.gift-inner {
  max-width: 760px;
  margin: 0 auto;
}

.gift-illustration {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto 28px;
}

.gift-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.gift .eyebrow { justify-content: center; }

.gift h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.gift h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.gift-lede {
  margin: 24px auto 36px;
  max-width: 620px;
  font-family: var(--font-body-serif);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink);
}

.gift-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   AUTHOR
   ============================================================ */

.author {
  padding: clamp(80px, 9vw, 130px) clamp(24px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.author-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.author-photo {
  margin: 0;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-lg);
  justify-self: center;
}

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

.author-text h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.author-text h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.author-tag {
  margin: 14px 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.author-text p {
  margin: 0 0 18px;
  font-family: var(--font-body-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
}

.author-text a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.author-text a:hover { color: var(--terracotta-deep); }

.author-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.author-social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.author-social a:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.22);
}

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

.author-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.author-langs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.author-langs .flag {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 880px) {
  .author-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .author-photo { max-width: 240px; }
}

/* ============================================================
   CLOSER
   ============================================================ */

.closer {
  padding: clamp(80px, 9vw, 140px) clamp(24px, 5vw, 72px);
}

.closer-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 56px;
  align-items: end;
}

.closer-lede {
  margin: 22px 0 0;
  max-width: 460px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
}

.closer-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 28px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.button.primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.button:hover svg { transform: translateX(4px); }

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

.site-footer {
  padding: 36px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.site-footer p { margin: 0; }

.footer-links a {
  margin: 0 6px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

/* ============================================================
   RESPONSIVE (landing)
   ============================================================ */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cards { min-height: 880px; }
}

@media (max-width: 880px) {
  .topnav { display: none; }

  /* Surface the "Read free" link as a text CTA next to the Amazon bubble.
     Typography matches .topcta exactly; only the color differs (muted). */
  .topcta-read {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    line-height: 1;
  }
  .topcta-read:hover { color: var(--ink); }

  /* On very narrow phones the brand wordmark also competes for room.
     Tighten it slightly so all three items sit on a single row. */
  .brand { font-size: 1.5rem; }
  /* Override the desktop space-between so READ FREE's margin-left:auto
     actually pushes it next to the Amazon button instead of sitting in
     the middle between brand and button. */
  .topbar-inner { gap: 0; justify-content: flex-start; }

  .hero { padding-bottom: 40px; }
  .hero-cards {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 20px 0 40px;
  }

  .card { position: relative !important; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; }
  .card.folio  { display: none; }
  .card.taste  { transform: rotate(-1deg); width: min(360px, 90vw); height: auto; }

  .card.taste:hover { transform: rotate(0deg) translateY(-4px); }

  .book-3d {
    position: relative;
    top: auto;
    left: auto;
    width: min(320px, 80vw);
    transform: rotate(-2deg);
    order: -1;
  }
  .book-3d:hover { transform: rotate(0deg) translateY(-6px); }

  .inside-item { grid-template-columns: 40px 1fr 28px; gap: 16px; }
  .inside-item p { display: none; }

  .closer-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

@media (max-width: 520px) {
  .brand { font-size: 1.55rem; }
  .brand-est { display: none; }
  .topbar-inner { padding: 16px 18px; }

  /* On phones, drop the bubble icon to save room next to "Get on Amazon". */
  .topcta-bubble { display: none; }
  .topcta { padding: 9px 14px; }
  .hero-left h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
}

/* ============================================================
   PRESENTED-BY BADGE (book pages only - sponsor mark)
   ============================================================ */

.presents {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 11px 18px 13px;
  border: none;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.presents:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.presents-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  opacity: 0.88;
  margin: 0 0 4px;
}

.presents-mark {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

@media (max-width: 560px) {
  .presents { bottom: 14px; right: 14px; padding: 9px 14px 11px; border-radius: 7px; }
  .presents-label { font-size: 11px; }
  .presents-mark { font-size: 1.55rem; }
}

/* ============================================================
   BOOK READER (preserved)
   ============================================================ */

.book-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  min-height: 100vh;
}

.book-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 20px;
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

/* ============================================================
   BOOK TOPBAR (sticky, frosted glass, holds the USVC mark)
   Sidebar is intentionally untouched - on scroll, the top of the
   sidebar slides behind this header. The frosted background lets
   what's underneath show through softly.
   ============================================================ */

.book-topbar {
  /* Fixed so it overlays the reader column without pushing the sidebar.
     Starts at left: 306px - exactly where the sidebar ends - so the
     sidebar (including the brand-lockup) is never covered by the topbar's
     frosted background. */
  position: fixed;
  top: 0;
  left: 306px;
  right: 0;
  z-index: 60;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 32px);
  background: rgba(255, 253, 248, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}

/* On mobile the sidebar collapses (max-width: 900px), so let the topbar
   span the full viewport again. */
@media (max-width: 900px) {
  .book-topbar { left: 0; }
}

/* The reader's "Lifehacktics home" back-link otherwise gets covered by the
   fixed topbar on narrow viewports (where the reader's top padding is small).
   Force a minimum top padding that exceeds the topbar height. */
.book-page .reader {
  padding-top: clamp(96px, 7vw, 110px);
}

.book-topbar__presents {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.book-topbar__presents:hover { opacity: 0.7; }

.book-topbar__presents-label { color: var(--muted); }

.book-topbar__presents-mark {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.brand-lockup {
  display: inline-flex;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup em { font-style: italic; font-weight: 500; }

/* Part header (Part 1 - Physical Well-being, on one line) */
.nav-part,
.nav-intro {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease;
}

.nav-part { margin-top: 22px; }
.nav-intro { margin-top: 0; }

.nav-part:hover,
.nav-part[aria-current="page"],
.nav-intro:hover,
.nav-intro[aria-current="page"] {
  background: rgba(198, 93, 59, 0.12);
}

.nav-part .nav-label,
.nav-intro .nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.nav-part .nav-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.nav-intro .nav-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Standalone chapter (Browse by symptoms, Recommended readings, etc.) */
.nav-standalone {
  display: block;
  margin: 14px 0 6px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease;
}

.nav-standalone:hover,
.nav-standalone[aria-current="page"] {
  background: rgba(198, 93, 59, 0.12);
}

.nav-standalone .nav-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* Chapters of a Part - flat list under the Part header, no sub-section label */
.nav-group {
  margin: 2px 0 14px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
}

/* If two nav-groups appear back-to-back (e.g., a Part has multiple data groups),
   tighten the spacing so they read as one continuous list of chapters. */
.nav-group + .nav-group {
  margin-top: -10px;
  padding-top: 0;
}

.nav-group p { display: none; }

.nav-group a {
  display: block;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 1px 0;
  color: var(--ink);
  font-family: var(--font-body-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.nav-group a:hover {
  background: rgba(198, 93, 59, 0.12);
  color: var(--terracotta);
}

.nav-group a[aria-current="page"] {
  background: rgba(198, 93, 59, 0.16);
  color: var(--ink);
  font-weight: 600;
}

.reader {
  width: min(100%, 900px);
  padding: clamp(32px, 7vw, 88px) clamp(22px, 7vw, 96px);
}

.reader h1 {
  margin: 0 0 30px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.reader h2 {
  margin: 52px 0 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.reader h3 { margin: 34px 0 10px; font-size: 1.15rem; }

.reader p,
.reader li {
  color: var(--ink);
  font-family: var(--font-body-serif);
  font-weight: 400;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
}

.reader p { margin: 0 0 20px; }

.reader ul { margin: 0 0 24px; padding-left: 1.3rem; }

.reader hr {
  width: 88px;
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: var(--line);
}

.reader .lede {
  max-width: 690px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.chapter-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chapter-list a {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  text-decoration: none;
}

.chapter-list span {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.chapter-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.chapter-pagination a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.55);
  color: var(--ink);
  font-family: var(--font-serif);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chapter-pagination a:hover {
  background: rgba(255, 194, 51, 0.16);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.chapter-pagination a.next {
  justify-content: flex-end;
  text-align: right;
}

.chapter-pagination .icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chapter-pagination a:hover .icon {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}

.chapter-pagination a.next:hover .icon { transform: translateX(3px); }
.chapter-pagination a.prev:hover .icon { transform: translateX(-3px); }

.chapter-pagination .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chapter-pagination .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.chapter-pagination .title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-sidebar {
    position: relative;
    height: auto;
    max-height: 54vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chapter-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .chapter-pagination { grid-template-columns: 1fr; }
  .reader { padding: 30px 20px 58px; }
}

/* ============================================================
   COOKIE BANNER (book pages only)
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(31, 31, 31, 0.22);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}

.cookie-banner--show { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.92);
}

.cookie-banner__actions {
  display: inline-flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.35);
}
.cookie-banner__btn--ghost:hover {
  background: rgba(244, 241, 234, 0.08);
  border-color: rgba(244, 241, 234, 0.6);
}

.cookie-banner__btn--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cookie-banner__btn--solid:hover {
  background: var(--mustard);
  border-color: var(--mustard);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px 16px;
    gap: 12px;
  }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   EMAIL CAPTURE MODAL
   ============================================================ */

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.email-modal--show {
  opacity: 1;
  pointer-events: auto;
}

html.email-gate-active,
body.email-gate-active {
  overflow: hidden;
  height: 100%;
}

.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.55);
  backdrop-filter: blur(2px);
}

.email-modal__card {
  position: relative;
  width: min(460px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 30px;
  box-shadow: var(--shadow-card);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.22s ease;
  font-family: var(--font-body-serif);
}

.email-modal--show .email-modal__card {
  transform: translateY(0) scale(1);
}

.email-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.55;
  cursor: pointer;
  padding: 4px 8px;
}
.email-modal__close:hover { opacity: 1; }

.email-modal__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.email-modal__title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  color: var(--ink);
}

.email-modal__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.email-modal__form input[type="email"] {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.email-modal__form input[type="email"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.12);
}

.email-modal__form button[type="submit"] {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.email-modal__form button[type="submit"]:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.email-modal__form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.email-modal__msg {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
}
.email-modal__msg--ok { color: #2a6b3f; }
.email-modal__msg--error { color: var(--terracotta-deep); }

@media (max-width: 480px) {
  .email-modal__card { padding: 28px 22px 24px; }
  .email-modal__form { grid-template-columns: 1fr; }
}

/* ============================================================
   RESUME-READING LINK (book index)
   ============================================================ */

.resume-link {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 10px 18px;
  background: var(--mustard);
  border: 1px solid var(--mustard-deep);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.resume-link:hover {
  background: var(--mustard-deep);
  transform: translateY(-1px);
}
