/* ============================================================
   Lamp · Landing page styles
   Editorial / ecclesiastical · Fraunces + Newsreader + JetBrains
   ============================================================ */

:root {
  --ink: #1c120a;
  --ink-soft: #3b2a1e;
  --ink-mute: #7a665a;

  --paper:        #FBF7F0;
  --paper-warm:   #F4ECDA;
  --paper-deep:   #ECE0C7;

  --burgundy:       #8B2E2E;
  --burgundy-deep:  #5C1A1A;
  --burgundy-faint: rgba(139, 46, 46, 0.08);

  --gold:        #B58A3F;
  --gold-soft:   #D4AC6A;
  --gold-deep:   #8C6622;

  --rule:        rgba(28, 18, 10, 0.16);
  --rule-strong: rgba(28, 18, 10, 0.32);

  --ff-display: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --ff-body:    'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='6'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.07 0 0 0 0 0.04 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .section-head, .feature, .rhythm-block, .intel-card, .edition, .pull, .closing {
    opacity: 1 !important; transform: none !important;
  }
}

/* ─── shared utilities ───────────────────────────────────── */

.mono { font-family: var(--ff-mono); font-feature-settings: "ss01"; }
.small { font-size: 12.5px; letter-spacing: 0.02em; }

.rule-gold {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  margin: 0 auto;
  width: min(720px, 80%);
}

.rule-thin {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 36px 0;
}

a { color: inherit; }

/* Section-level reveal — only hide when JS is available to un-hide. */
.js .section-head, .js .feature, .js .rhythm-block, .js .intel-card,
.js .edition, .js .pull, .js .closing {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js .section-head.in, .js .feature.in, .js .rhythm-block.in, .js .intel-card.in,
.js .edition.in, .js .pull.in, .js .closing.in {
  opacity: 1;
  transform: none;
}
/* stagger features and rhythm blocks */
.feature.in:nth-child(2) { transition-delay: 80ms; }
.feature.in:nth-child(3) { transition-delay: 160ms; }
.feature.in:nth-child(4) { transition-delay: 240ms; }
.feature.in:nth-child(5) { transition-delay: 320ms; }
.feature.in:nth-child(6) { transition-delay: 400ms; }
.rhythm-block.in:nth-child(2) { transition-delay: 120ms; }
.rhythm-block.in:nth-child(3) { transition-delay: 240ms; }
.intel-card.in:nth-child(2)   { transition-delay: 120ms; }

/* hero word-by-word reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ─── masthead ───────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter) 18px;
  background:
    linear-gradient(to bottom, var(--paper) 0%, var(--paper) 70%, rgba(251, 247, 240, 0)) ;
  backdrop-filter: saturate(140%);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--burgundy-deep);
}
.lamp-mark {
  width: 18px;
  height: 24px;
  color: var(--burgundy);
  transform: translateY(2px);
}
.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow:
    0 1px 0 rgba(255, 230, 200, 0.18) inset,
    0 1px 2px rgba(80, 30, 15, 0.18),
    0 6px 16px -10px rgba(80, 30, 15, 0.32);
  transform: translateY(2px);
}
.colophon-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  transform: none;
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 80, "SOFT" 30;
}
.brand-ref {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  border-left: 1px solid var(--rule);
  padding-left: 10px;
  margin-left: 4px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-family: var(--ff-body);
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.005em;
  transition: color .25s var(--ease-out);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.primary-nav a:hover { color: var(--burgundy); }
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--ff-display) !important;
  font-style: italic;
  color: var(--burgundy) !important;
}
.nav-cta::after { background: var(--burgundy) !important; }

@media (max-width: 760px) {
  .primary-nav { gap: 16px; }
  .primary-nav a:not(.nav-cta) { display: none; }
}

/* ─── hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(48px, 7vw, 96px);
  text-align: center;
}

.hero-watermark {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 460px;
  color: var(--burgundy);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(.hero-watermark) { position: relative; z-index: 1; }

.dateline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.dateline .vol { color: var(--burgundy); }
.dateline .dot { color: var(--gold); }

.hero-headline {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 28px auto 18px;
  max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
}
.hero-headline span {
  display: block;
}
.hero-headline em {
  font-style: italic;
  color: var(--burgundy);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.attribution {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin: 8px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 88px);
  text-align: left;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
}

.lede {
  font-family: var(--ff-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 38ch;
  font-variation-settings: "opsz" 14;
}

.dropcap {
  float: left;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--burgundy);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--ff-body);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  border: 1px solid transparent;
  will-change: transform;
}
.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.btn-pre { font-size: 10px; opacity: 0.75; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-store { font-size: 15px; font-family: var(--ff-display); font-weight: 500; }
.store-glyph { width: 20px; height: 24px; }

.btn-primary {
  background: var(--burgundy);
  color: var(--paper);
  box-shadow: 0 1px 0 var(--burgundy-deep), 0 8px 24px -10px rgba(139, 46, 46, 0.55);
}
.btn-primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 22px;
}
.btn-lg .btn-store { font-size: 17px; }

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-mute);
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta span { color: var(--gold); font-size: 10px; }

/* ─── PHONE MOCKUP ──────────────────────────────────────── */

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.phone {
  --phone-w: 280px;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.5;
  background:
    linear-gradient(160deg, #2a1a13 0%, #1a0e08 100%);
  border-radius: 44px;
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255, 230, 200, 0.04) inset,
    0 0 0 1.5px rgba(255, 230, 200, 0.06) inset,
    0 30px 60px -30px rgba(40, 16, 8, 0.55),
    0 80px 120px -50px rgba(80, 30, 15, 0.35);
  position: relative;
  rotate: -1.5deg;
  transition: rotate .8s var(--ease-out), transform .8s var(--ease-out);
}
.phone:hover { rotate: 0deg; transform: translateY(-4px); }

.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 22px;
  background: #07030a;
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}
.status-right { display: flex; align-items: center; gap: 4px; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.status-bat { width: 18px; height: 9px; border: 1px solid var(--ink); border-radius: 2px; position: relative; }
.status-bat::after {
  content: '';
  position: absolute; left: 1px; top: 1px; bottom: 1px;
  width: 70%;
  background: var(--ink);
  border-radius: 1px;
}

.phone-app {
  flex: 1;
  padding: 20px 18px 12px;
  overflow: hidden;
}

.app-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 8px 0 4px;
}
.app-greet {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.verse-card {
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 14px;
  padding: 16px 16px 12px;
  margin: 0 0 14px;
  position: relative;
  overflow: hidden;
}
.verse-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80px 60px at 90% -20%, rgba(212, 172, 106, 0.4), transparent 70%);
  pointer-events: none;
}
.verse-card-eyebrow {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 8px;
}
.verse-card-text {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.verse-card-ref {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.verse-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 230, 200, 0.18);
  padding-top: 8px;
}
.vc-pill {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255, 230, 200, 0.32);
  border-radius: 999px;
}
.vc-icon {
  font-size: 11px;
  opacity: 0.7;
  margin-left: auto;
}
.vc-icon + .vc-icon { margin-left: 0; }

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.app-row:last-of-type { border-bottom: 0; }
.row-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 2px;
}
.row-title {
  font-family: var(--ff-display);
  font-size: 13.5px;
  margin: 0;
  font-variation-settings: "opsz" 30;
}
.row-prog {
  margin-left: auto;
  width: 56px;
  height: 3px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.row-prog-fill {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--burgundy);
}
.row-arrow {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 14px;
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 14px 22px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.tab {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tab-active {
  color: var(--burgundy);
}
.tab-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--burgundy);
  display: inline-block;
}

.marginalia {
  margin: 22px 0 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  max-width: 280px;
  text-align: center;
  line-height: 1.5;
}

/* ─── ornament between sections ─────────────────────────── */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 16px auto 40px;
  max-width: 320px;
}
.orn-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}
.orn-glyph {
  color: var(--gold);
  font-size: 14px;
}

/* ─── section heads ─────────────────────────────────────── */

.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.section-no {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 16ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-deck {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 50ch;
}

/* ─── features grid ─────────────────────────────────────── */

.features {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.feature {
  padding: 36px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .35s var(--ease-out);
}
.feature:nth-child(3n) { border-right: 0; }
.feature:hover { background: rgba(139, 46, 46, 0.03); }

.chapter {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.feature h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  position: relative;
  display: inline-block;
}
.feature h3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.feature:hover h3::after { transform: scaleX(1); }

.feature p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.feature .mono { color: var(--ink-mute); margin-top: 14px; }

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px solid var(--rule); }
  .feature:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; }
}

/* ─── rhythm section ────────────────────────────────────── */

.rhythm {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 32px;
}
.rhythm-block {
  background: var(--paper);
  padding: 40px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.rhythm-block:nth-child(2) { background: var(--paper-warm); }
.rhythm-block:nth-child(3) {
  background: var(--burgundy-deep);
  color: var(--paper);
}
.rhythm-block:nth-child(3) .rhythm-eyebrow { color: var(--gold-soft); }
.rhythm-block:nth-child(3) .rhythm-hour    { color: var(--gold-soft); }
.rhythm-block:nth-child(3) p:not(.rhythm-eyebrow):not(.rhythm-hour) { color: #F2E9D6; }
.rhythm-block:nth-child(3) h4 { color: var(--paper); }

.rhythm-hour {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.rhythm-block h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.rhythm-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 4px 0 0;
}
.rhythm-block p:not(.rhythm-eyebrow):not(.rhythm-hour) {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.rhythm-glyph {
  width: 52px;
  height: 52px;
  margin-top: auto;
  color: var(--burgundy);
  opacity: 0.85;
}
.rhythm-block:nth-child(3) .rhythm-glyph { color: var(--gold-soft); opacity: 1; }

@media (max-width: 820px) {
  .rhythm-grid { grid-template-columns: 1fr; }
}

/* ─── intelligence / AI ─────────────────────────────────── */

.intel {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.intel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 820px) { .intel-grid { grid-template-columns: 1fr; } }

.intel-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
}
.intel-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
}

.intel-search .search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 30, "SOFT" 30;
}
.search-icon {
  color: var(--burgundy);
  font-size: 18px;
  font-weight: 500;
}
.search-input {
  flex: 1;
}

.search-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 2px solid var(--burgundy);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
}
.search-result.faint {
  border-left-color: var(--rule-strong);
  opacity: 0.62;
}
.result-ref {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin: 0 0 6px;
}
.result-text {
  font-family: var(--ff-display);
  font-size: 15px;
  line-height: 1.4;
  font-style: italic;
  margin: 0 0 8px;
  color: var(--ink);
  font-variation-settings: "opsz" 30, "SOFT" 60;
}
.result-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin: 0;
}

.intel-explain {
  background:
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-deep) 100%);
}
.explain-verse {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 18px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.explain-ref {
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  background: var(--burgundy);
  color: var(--paper);
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: 2px;
}
.explain-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  padding-left: 22px;
  position: relative;
}
.explain-marker {
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 12px;
  color: var(--gold-deep);
}
.explain-footer {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ─── pull quote ────────────────────────────────────────── */

.pull {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
  position: relative;
}
.pull-mark {
  font-family: var(--ff-display);
  font-size: clamp(120px, 18vw, 220px);
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.25;
  margin: 0 0 -20px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pull-quote {
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pull-cite {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

/* ─── editions ──────────────────────────────────────────── */

.editions {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.editions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 820px) {
  .editions-grid { grid-template-columns: 1fr; }
}

.edition {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 36px 32px 32px;
  position: relative;
}
.edition-pro {
  background:
    linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--paper);
  border-color: var(--burgundy-deep);
  box-shadow: 0 30px 60px -40px rgba(139, 46, 46, 0.55);
}
.edition-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 4px 10px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
}
.edition-name {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.edition-pro .edition-name { color: var(--gold-soft); }
.edition-price {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.edition-pro .edition-price { color: var(--paper); }
.price-note {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  margin-left: 6px;
  letter-spacing: 0;
}
.edition-pro .price-note { color: var(--gold-soft); }

.edition-price-alt {
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: -16px 0 24px;
  letter-spacing: 0.01em;
}
.edition-price-alt em {
  font-style: italic;
  color: var(--gold-deep);
}
.edition-pro .edition-price-alt {
  color: rgba(251, 247, 240, 0.72);
}
.edition-pro .edition-price-alt em {
  color: var(--gold-soft);
}

.edition-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.edition-pro .edition-list { border-top-color: rgba(255, 230, 200, 0.22); }
.edition-list li {
  font-size: 15.5px;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.edition-pro .edition-list li { color: rgba(251, 247, 240, 0.88); }
.edition-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 10px;
}
.edition-pro .edition-list li::before { color: var(--gold-soft); }

.edition-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  text-decoration: none;
  color: var(--burgundy);
  font-variation-settings: "opsz" 60, "SOFT" 60;
  transition: gap .25s var(--ease-out);
}
.edition-cta:hover { gap: 14px; }
.edition-pro .edition-cta {
  color: var(--paper);
}
.edition .cta-filled,
.edition-pro .cta-filled {
  background: var(--paper);
  color: var(--burgundy-deep);
  padding: 12px 18px;
  border-radius: 8px;
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 14px;
}
.edition .cta-filled:hover,
.edition-pro .cta-filled:hover {
  background: var(--gold-soft);
  color: var(--burgundy-deep);
}

/* ─── closing ───────────────────────────────────────────── */

.closing {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
}
.finis {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 24px;
}
.closing-headline {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(80px, 16vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.closing-deck {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.closing-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── colophon ──────────────────────────────────────────── */

.colophon {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.colophon-row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .colophon-row { grid-template-columns: 1fr; }
}
.colophon-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--burgundy-deep);
}
.colophon-brand .brand-name { font-size: 28px; }
.colophon-brand .lamp-mark  { width: 22px; height: 28px; color: var(--burgundy); }

.colophon-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 600px) { .colophon-cols { grid-template-columns: 1fr 1fr; } }
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-head {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 4px;
}
.col a {
  font-family: var(--ff-body);
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s var(--ease-out);
}
.col a:hover { color: var(--burgundy); }

.colophon-meta {
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-mute);
  text-align: center;
}

/* ============================================================
   Content pages (privacy, contact)
   ============================================================ */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 120px);
}

.doc-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.doc-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.doc-effective {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0 0 32px;
}

.doc hr.rule-gold {
  margin: 36px 0;
  width: 100%;
}

.doc h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 40px 0 12px;
  font-variation-settings: "opsz" 30, "SOFT" 30;
  position: relative;
  padding-left: 32px;
}
.doc h2::before {
  content: attr(data-no);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.doc p {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-variation-settings: "opsz" 14;
}

.doc p .first {
  /* opt-in drop cap, only used on lede paragraphs */
}

.doc strong { color: var(--ink); font-weight: 500; }
.doc em { font-style: italic; color: var(--burgundy); }

.doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc ul li {
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.doc ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 10px;
}
.doc ul li strong { color: var(--ink); }

.doc a.inline {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.doc a.inline:hover {
  color: var(--burgundy-deep);
  border-bottom-color: var(--burgundy);
}

/* ─── contact page specifics ─────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 0;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 26px;
}
.contact-card .card-label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.contact-card h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--burgundy-deep);
  font-variation-settings: "opsz" 60, "SOFT" 60;
}
.contact-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.55;
}
.contact-card .contact-link {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  text-decoration: none;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  transition: gap .25s var(--ease-out);
}
.contact-card .contact-link:hover { gap: 14px; }

.contact-aside {
  margin-top: 56px;
  padding: 32px 28px;
  background: var(--burgundy-deep);
  color: var(--paper);
  border-radius: 12px;
  text-align: center;
}
.contact-aside .aside-label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.contact-aside h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--paper);
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.contact-aside p {
  font-size: 15.5px;
  color: rgba(251, 247, 240, 0.85);
  margin: 0 0 16px;
}
.contact-aside a {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold-soft);
  text-decoration: none;
}
.contact-aside a:hover { color: var(--paper); }

/* Back-to-home strip below documents */
.doc-back {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.doc-back a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  text-decoration: none;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s var(--ease-out);
  font-variation-settings: "opsz" 60, "SOFT" 60;
}
.doc-back a:hover { gap: 14px; }

/* ─── small breakpoints: hero adjustments ────────────────── */

@media (max-width: 600px) {
  .phone { --phone-w: 240px; }
  .hero-headline { letter-spacing: -0.01em; }
  .dropcap { font-size: 52px; }
}
