/* =========================================================
   VoiceJournal — A site that is a notebook.
   Leather-bound. Ruled paper. Handwritten in the margins.
   ========================================================= */

:root {
  /* Brand */
  --paper:          #F5ECD7;
  --paper-tint:     #FAF1DC;
  --paper-deep:     #EDE0C2;
  --paper-edge:     #E2D2AC;
  --ink:            #2C3E6B;
  --ink-soft:       #6B7B8D;
  --ink-faded:      rgba(44, 62, 107, 0.72);
  --accent:         #FF8A7A;
  --accent-deep:    #E5705F;
  --gold:           #D4A574;
  --gold-deep:      #B0875A;
  --leather:        #8B6F47;
  --leather-dark:   #5D4A30;
  --leather-glow:   #A88454;
  --text:           #3D2C4E;
  --text-soft:      rgba(61, 44, 78, 0.66);

  /* Lines */
  --ruled:          rgba(44, 62, 107, 0.07);
  --ruled-strong:   rgba(44, 62, 107, 0.13);
  --margin-line:    rgba(229, 107, 107, 0.34);
  --divider:        rgba(61, 44, 78, 0.14);

  /* Type */
  --font-script:    'Caveat', 'Bradley Hand', cursive;
  --font-serif:     'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-ui:        'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Rhythm — baseline grid for ruled paper */
  --baseline: 34px;
  --book-max: 1180px;
  --page-max: 720px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at top, var(--paper-tint) 0%, var(--paper) 60%, var(--paper-deep) 100%);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: var(--baseline);
  font-feature-settings: "ss01", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Universal paper grain — two layers for an organic feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.05) 0.7px, transparent 1.1px),
    radial-gradient(rgba(93, 74, 48, 0.03) 0.5px, transparent 0.9px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 1px 2px;
  opacity: 0.85;
}

/* Top spotlight, like an open book under a desk lamp */
body::after {
  content: "";
  position: fixed;
  top: -30vh; left: 50%;
  transform: translateX(-50%);
  width: 140vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 244, 220, 0.45) 0%, transparent 55%);
}

/* =========================================================
   THE BOOK — outer container that frames the whole site
   ========================================================= */

.book {
  position: relative;
  z-index: 1;
  max-width: var(--book-max);
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Stitched leather spine on the left edge of the book */
.book::before,
.book::after {
  content: "";
  position: absolute;
  top: 24px; bottom: 24px;
  width: 14px;
  border-radius: 6px;
  background:
    linear-gradient(180deg,
      var(--leather-glow) 0%,
      var(--leather) 30%,
      var(--leather-dark) 70%,
      var(--leather) 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(93, 74, 48, 0.18);
}

.book::before { left: 4px; }
.book::after  { right: 4px; }

@media (max-width: 720px) {
  .book::before,
  .book::after { display: none; }
}

/* =========================================================
   HEADER — book cover stamp + colophon
   ========================================================= */

.cover-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 32px 20px;
  border-bottom: 1px solid var(--divider);
}

.cover-bar::after {
  content: "";
  position: absolute;
  left: 32px; right: 32px; bottom: 14px;
  height: 1px;
  background: var(--divider);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

/* Logo as an embossed seal stamped on the cover */
.brand-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(93, 74, 48, 0.18),
    0 0 0 5px var(--paper-tint),
    0 0 0 6px rgba(93, 74, 48, 0.22),
    0 6px 14px rgba(93, 74, 48, 0.18);
  transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(-3deg) scale(1.04); }

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  margin-top: 6px;
}

.colophon {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leather-dark);
  text-align: right;
  line-height: 1.6;
  display: none;
}

@media (min-width: 760px) {
  .colophon { display: block; }
}

/* =========================================================
   BOOKMARK NAV — fabric ribbons on the right edge
   ========================================================= */

.bookmarks {
  position: fixed;
  top: clamp(120px, 18vh, 180px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
  pointer-events: none;
}

.bookmark {
  pointer-events: auto;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 18px 9px 26px;
  background: var(--ink);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 4px 0 0 4px;
  transform: translateX(28px);
  transition: transform 0.35s var(--ease-out), background 0.25s ease;
  position: relative;
  box-shadow: -2px 4px 8px rgba(44, 62, 107, 0.22);
}

.bookmark::after {
  /* Notched bottom — like a fabric ribbon */
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 12px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 50%, 0 100%);
}

.bookmark:nth-child(1) { background: var(--ink); }
.bookmark:nth-child(2) { background: var(--gold-deep); }
.bookmark:nth-child(3) { background: var(--leather); }
.bookmark:nth-child(4) { background: var(--accent-deep); }

.bookmark:hover { transform: translateX(0); }

.bookmark.is-current {
  transform: translateX(-2px);
  box-shadow: -4px 6px 14px rgba(44, 62, 107, 0.30);
}

@media (max-width: 900px) {
  .bookmarks { display: none; }
}

/* =========================================================
   PAGE — a single notebook page within the book
   ========================================================= */

.page {
  position: relative;
  background: var(--paper);
  margin: 28px 0;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 96px) clamp(70px, 7vw, 110px);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(139, 111, 71, 0.12),
    0 1px 2px rgba(93, 74, 48, 0.08),
    0 14px 28px rgba(93, 74, 48, 0.10);
  overflow: hidden;
  isolation: isolate;
}

/* Stack of pages underneath — depth illusion */
.page::before {
  content: "";
  position: absolute;
  inset: 6px -3px -8px 3px;
  z-index: -1;
  background: var(--paper-deep);
  border-radius: 3px;
  box-shadow:
    4px 4px 0 -1px var(--paper-edge),
    8px 8px 0 -2px var(--paper-edge);
}

/* Bottom-right page curl */
.page::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 56px; height: 56px;
  background: linear-gradient(225deg,
    transparent 0%,
    transparent 48%,
    rgba(139, 111, 71, 0.18) 50%,
    var(--paper-tint) 50.5%,
    var(--paper) 100%);
  border-bottom-right-radius: 4px;
  box-shadow: -2px -2px 6px rgba(93, 74, 48, 0.10);
}

/* A "ruled" variant — for entries where the lined-paper feel is wanted */
.page--ruled {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--baseline) - 1px),
      var(--ruled) calc(var(--baseline) - 1px),
      var(--ruled) var(--baseline)),
    var(--paper);
  background-position: 0 78px, 0 0;
  padding-left: clamp(70px, 9vw, 130px);
}

.page--ruled::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(54px, 7.5vw, 110px);
  width: 1.5px;
  background: var(--margin-line);
  z-index: 0;
}

/* When .page--ruled has a pseudo-element, restore the page-stack on a different layer */
.page--ruled { box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(139, 111, 71, 0.12),
    0 1px 2px rgba(93, 74, 48, 0.08),
    0 14px 28px rgba(93, 74, 48, 0.10),
    4px 4px 0 -1px var(--paper-edge),
    8px 8px 0 -2px var(--paper-edge);
}

.page--ruled::before { background: var(--margin-line); inset: 0; left: clamp(54px, 7.5vw, 110px); width: 1.5px; }

/* Page number */
.page-no {
  position: absolute;
  bottom: 30px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
}

.page-no--left  { left: clamp(28px, 5vw, 96px); }
.page-no--right { right: clamp(28px, 5vw, 96px); }

/* =========================================================
   ENTRY HEADER — date stamp + entry number
   ========================================================= */

.entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.entry-date {
  font-family: var(--font-script);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
  position: relative;
  display: inline-block;
}

.entry-date::after {
  /* Underline like pen pressure */
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0.85) skewX(-12deg);
  transform-origin: left;
  opacity: 0.7;
}

.entry-no {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  white-space: nowrap;
}

.entry-no::before {
  content: "—";
  margin-right: 8px;
  color: var(--leather);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  font-weight: 500;
  font-style: italic;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leather);
}

p { margin: 0 0 22px; max-width: 60ch; }

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  max-width: 38ch;
}

/* Drop cap — illuminated opening */
.dropcap::first-letter {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 5em;
  line-height: 0.78;
  float: left;
  margin: 0.05em 0.12em -0.05em -0.06em;
  color: var(--accent-deep);
  text-shadow: 1px 2px 0 rgba(229, 112, 95, 0.18);
}

/* Handwritten utility */
.hand {
  font-family: var(--font-script);
  color: var(--ink);
  font-weight: 500;
}

.hand-large {
  font-family: var(--font-script);
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
}

/* Eyebrow tag — like a printer's mark */
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "§ ";
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0;
}

/* Inline links — ink underline */
.prose a {
  color: var(--accent-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  transition: color 0.2s ease;
}

.prose a:hover { color: var(--text); }

/* =========================================================
   MARGINALIA — handwritten notes in the left margin
   ========================================================= */

.marginalia {
  font-family: var(--font-script);
  color: var(--accent-deep);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
  position: relative;
  padding-left: 24px;
  margin: 16px 0 22px;
}

.marginalia::before {
  /* Hand-drawn arrow */
  content: "→";
  position: absolute;
  left: 0; top: 2px;
  color: var(--accent-deep);
  font-size: 1.4rem;
  transform: rotate(-8deg);
}

@media (min-width: 1000px) {
  .page--ruled .marginalia {
    position: absolute;
    width: clamp(120px, 12vw, 180px);
    left: 12px;
    text-align: right;
    padding-left: 0;
    padding-right: 18px;
    transform: rotate(-2deg);
  }
  .page--ruled .marginalia::before {
    content: "←";
    left: auto; right: 0;
    transform: rotate(8deg);
  }
}

/* =========================================================
   SIGNATURE
   ========================================================= */

.signature {
  font-family: var(--font-script);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 500;
  display: inline-block;
  transform: rotate(-2deg);
  margin-top: 12px;
}

.signature small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leather);
  margin-top: 4px;
  transform: rotate(2deg);
}

/* =========================================================
   DINGBAT — ornamental section divider
   ========================================================= */

.dingbat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 56px auto;
  color: var(--leather);
  opacity: 0.7;
}

.dingbat::before,
.dingbat::after {
  content: "";
  flex: 0 0 60px;
  height: 1px;
  background: var(--leather);
}

.dingbat svg { width: 36px; height: 36px; flex: none; }

/* =========================================================
   STAMP / SEAL — circular ink stamp
   ========================================================= */

.stamp {
  display: inline-grid;
  place-items: center;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2.5px solid var(--accent-deep);
  color: var(--accent-deep);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  padding: 12px;
  transform: rotate(-9deg);
  background:
    radial-gradient(circle at 30% 30%, rgba(229, 112, 95, 0.10), transparent 60%);
  position: relative;
  opacity: 0.92;
  /* Slight ink-bleed */
  filter: contrast(1.05);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--accent-deep);
  border-radius: 50%;
  opacity: 0.5;
}

/* Ink-stamp button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 4px;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--paper);
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.btn::after {
  /* Ink-bleed shadow */
  content: "";
  position: absolute;
  inset: 4px -4px -4px 4px;
  background: var(--leather);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
  transition: inset 0.2s var(--ease-out);
}

.btn:hover { transform: translate(-2px, -2px); }
.btn:hover::after { inset: 6px -6px -6px 6px; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn--ghost::after { display: none; }

.btn--accent {
  background: var(--accent-deep);
  color: var(--paper);
  border-color: var(--accent-deep);
}

.btn--accent::after { background: var(--accent); }

/* App store mock button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--text);
  color: var(--paper);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  position: relative;
  transition: transform 0.2s var(--ease-out);
}

.btn-store::after {
  content: "";
  position: absolute;
  inset: 4px -4px -4px 4px;
  background: var(--leather);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.4;
  transition: inset 0.2s var(--ease-out);
}

.btn-store:hover { transform: translate(-2px, -2px); }
.btn-store:hover::after { inset: 6px -6px -6px 6px; }

.btn-store .apple { width: 22px; height: 22px; flex: none; }
.btn-store .label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .label small { font-size: 0.6rem; opacity: 0.78; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-store .label strong { font-size: 1rem; font-weight: 600; letter-spacing: 0.005em; }

/* =========================================================
   HERO SPREAD — open-book two pages
   ========================================================= */

.spread {
  position: relative;
  background:
    linear-gradient(to right,
      transparent 0%,
      transparent 49%,
      rgba(93, 74, 48, 0.18) 50%,
      transparent 51%,
      transparent 100%),
    var(--paper);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(139, 111, 71, 0.12),
    0 14px 36px rgba(93, 74, 48, 0.16),
    4px 4px 0 -1px var(--paper-edge),
    8px 8px 0 -2px var(--paper-edge);
  overflow: hidden;
  margin: 28px 0;
  isolation: isolate;
}

.spread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 540px;
}

.spread-page {
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 64px) clamp(70px, 7vw, 100px);
  position: relative;
}

.spread-page--left {
  padding-right: clamp(36px, 4vw, 72px);
}

.spread-page--right {
  padding-left: clamp(36px, 4vw, 72px);
  background:
    linear-gradient(to right, rgba(93, 74, 48, 0.06), transparent 18%);
}

@media (max-width: 820px) {
  .spread-grid { grid-template-columns: 1fr; }
  .spread { background: var(--paper); }
  .spread-page--right { background: var(--paper); border-top: 1px dashed var(--divider); }
}

/* Property-of inscription */
.inscription {
  display: block;
  font-family: var(--font-script);
  color: var(--ink-soft);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.inscription .underline {
  display: inline-block;
  min-width: 180px;
  border-bottom: 1px solid var(--ink-soft);
  margin-left: 8px;
  transform: translateY(2px);
}

/* Hero CTA cluster */
.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.proof {
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leather);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); display: inline-block; }

/* =========================================================
   POLAROID + PHONE MOCK + WASHI TAPE
   ========================================================= */

.polaroid {
  position: relative;
  background: #FBFAF6;
  padding: 18px 18px 56px;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(93, 74, 48, 0.12),
    0 18px 38px rgba(93, 74, 48, 0.18);
  transform: rotate(-2.2deg);
  max-width: 320px;
  margin: 16px auto 0;
}

.polaroid:hover { transform: rotate(-1deg) translateY(-3px); transition: transform 0.4s var(--ease-out); }

.polaroid::before,
.polaroid::after {
  /* Washi tape strips */
  content: "";
  position: absolute;
  width: 96px; height: 24px;
  background:
    repeating-linear-gradient(45deg,
      rgba(212, 165, 116, 0.7) 0,
      rgba(212, 165, 116, 0.7) 6px,
      rgba(176, 135, 90, 0.7) 6px,
      rgba(176, 135, 90, 0.7) 12px);
  opacity: 0.85;
  box-shadow: 0 2px 4px rgba(93, 74, 48, 0.16);
}

.polaroid::before {
  top: -10px; left: -16px;
  transform: rotate(-18deg);
}

.polaroid::after {
  top: -8px; right: -16px;
  transform: rotate(14deg);
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 138, 122, 0.6) 0,
      rgba(255, 138, 122, 0.6) 6px,
      rgba(229, 112, 95, 0.6) 6px,
      rgba(229, 112, 95, 0.6) 12px);
}

.polaroid-caption {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-script);
  color: var(--ink);
  font-size: 1.15rem;
}

.phone {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  background: linear-gradient(160deg, #1A1625 0%, #2A2435 100%);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 12px 24px rgba(61, 44, 78, 0.20);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  background: #0A0610;
  border-radius: 999px;
  z-index: 3;
}

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

.journal-page {
  flex: 1;
  height: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 23px,
      var(--ruled) 23px,
      var(--ruled) 24px),
    var(--paper);
  position: relative;
  padding: 56px 18px 70px 36px;
}

.journal-page::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 26px;
  width: 1.5px;
  background: var(--margin-line);
}

.journal-page::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--gold) 100%);
}

.journal-date {
  font-family: var(--font-script);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 4px;
  line-height: 24px;
}

.journal-text {
  font-family: var(--font-script);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 24px;
  margin: 0;
}

.journal-tags {
  position: absolute;
  bottom: 56px; left: 36px; right: 18px;
  font-family: var(--font-script);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.journal-mic {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 112, 95, 0.45);
}

.journal-mic::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 138, 122, 0.4);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* =========================================================
   HANDWRITTEN LIST (used inside .page--ruled)
   ========================================================= */

.hand-list {
  list-style: none;
  margin: 0 0 var(--baseline);
  padding: 0;
  position: relative;
  z-index: 1;
}

.hand-list li {
  font-family: var(--font-script);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: var(--baseline);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px;
  align-items: baseline;
}

.hand-list li::before {
  content: "✓";
  color: var(--accent-deep);
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: var(--baseline);
}

/* =========================================================
   STEP CARDS — three steps on a page
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 32px 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--paper-tint);
  border-radius: 4px;
  border: 1px solid rgba(139, 111, 71, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -22px; left: 18px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent-deep);
  text-shadow: 1px 2px 0 var(--paper);
}

.step h3 {
  margin: 8px 0 6px;
  font-style: italic;
}

.step p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-soft);
}

/* =========================================================
   PRIVACY GRID (feature-card-like, but as inked ledger entries)
   ========================================================= */

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.ledger-item {
  position: relative;
  padding: 18px 4px 18px 36px;
  border-top: 1px solid rgba(139, 111, 71, 0.18);
}

.ledger-item::before {
  content: "✓";
  position: absolute;
  left: 0; top: 16px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
}

.ledger-item h4 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
}

.ledger-item p { margin: 0; font-size: 0.96rem; color: var(--text-soft); }

/* =========================================================
   PULL QUOTE
   ========================================================= */

.pull-quote {
  max-width: 32ch;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  position: relative;
  padding-left: 28px;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: -8px; top: -16px;
  font-size: 4.5rem;
  font-style: normal;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  line-height: 1;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leather);
}

/* =========================================================
   TEAR-OUT CTA — scissors + dashed border
   ========================================================= */

.tearout {
  position: relative;
  margin: 60px 0 40px;
  padding: 56px 28px 48px;
  border: 2px dashed var(--leather);
  border-radius: 6px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 138, 122, 0.10), transparent 60%),
    var(--paper-tint);
}

.tearout::before {
  /* Scissors */
  content: "✂";
  position: absolute;
  top: -16px; left: 28px;
  background: var(--paper);
  padding: 0 8px;
  font-size: 1.5rem;
  color: var(--leather);
  transform: rotate(-12deg);
}

.tearout::after {
  content: "TEAR HERE";
  position: absolute;
  top: -11px; right: 32px;
  background: var(--paper);
  padding: 0 12px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--leather);
}

.tearout .hand-large {
  display: block;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.tearout h2 {
  font-style: normal;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.tearout p { margin: 0 auto 28px; max-width: 44ch; color: var(--text-soft); }

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

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

.colophon-page {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 90px;
}

.colophon-page .signature { margin-bottom: 36px; }

.colophon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: left;
}

.colophon-grid h4 { color: var(--leather); margin-bottom: 12px; }

.colophon-grid ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}

.colophon-grid a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.colophon-grid a:hover { color: var(--accent-deep); }

.colophon-meta {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leather);
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */

.legal-page .prose { max-width: var(--page-max); margin: 0 auto; }

.legal-page h2 {
  font-style: normal;
  font-size: 1.45rem;
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal-page h2 .article-mark {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}

.legal-page h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page p, .legal-page li { font-size: 1.02rem; line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 1.4em; margin: 0 0 22px; }
.legal-page li { margin-bottom: 8px; }

.legal-page .prose a { color: var(--accent-deep); }

/* Index card / Table of Contents */
.toc-card {
  background: var(--paper-tint);
  border: 1px solid rgba(139, 111, 71, 0.22);
  border-radius: 4px;
  padding: 22px 28px;
  margin: 28px 0 36px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 10px rgba(93, 74, 48, 0.08);
}

.toc-card::before {
  /* Card classification stripe at top */
  content: "INDEX";
  position: absolute;
  top: -10px; left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 14px;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
}

.toc-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.toc-card li {
  margin-bottom: 6px;
  font-size: 0.94rem;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 8px;
  break-inside: avoid;
}

.toc-card li::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero) ".";
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--leather);
  letter-spacing: 0.06em;
  font-weight: 600;
  flex: none;
}

.toc-card ol { counter-reset: toc; }

.toc-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.toc-card a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

@media (max-width: 600px) {
  .toc-card ol { columns: 1; }
}

/* Callout — like a hand-stamped notice */
.callout {
  background: var(--paper-tint);
  border-left: 4px solid var(--accent-deep);
  border-radius: 2px;
  padding: 18px 24px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
}

.callout strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
  font-weight: 700;
}

/* =========================================================
   SUPPORT — Letters & Replies
   ========================================================= */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.address-card {
  background: var(--paper-tint);
  border: 1px solid rgba(139, 111, 71, 0.22);
  border-radius: 4px;
  padding: 22px 24px;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 8px rgba(93, 74, 48, 0.06);
}

.address-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 8px;
}

.address-card p { margin: 0 0 12px; color: var(--text-soft); font-size: 0.96rem; line-height: 1.55; }

.address-card a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.address-card a:hover { color: var(--text); }

/* Q&A — like a letter exchange */
.letters {
  margin: 36px 0;
}

.letter {
  margin-bottom: 28px;
  padding: 24px 28px;
  background: var(--paper-tint);
  border-radius: 4px;
  border: 1px solid rgba(139, 111, 71, 0.18);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
  list-style: none;
  position: relative;
}

.letter[open] { border-color: var(--accent-deep); }
.letter:hover { transform: translateY(-1px); }

.letter summary {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  line-height: 1.25;
}

.letter summary::-webkit-details-marker { display: none; }

.letter summary::before {
  content: "Q.";
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  flex: none;
  align-self: flex-start;
  padding-top: 12px;
  margin-right: 10px;
}

.letter summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--leather);
  flex: none;
  transition: transform 0.2s ease;
}

.letter[open] summary::after { content: "−"; }

.letter-reply {
  margin: 16px 0 0;
  padding-left: 40px;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.letter-reply::before {
  content: "A.";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}

/* =========================================================
   ANIMATIONS — gentle scroll reveals via @starting-style
   (fully optional; pages render fine without them)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes inkSettle {
      from { opacity: 0; transform: translateY(8px); filter: blur(1px); }
      to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
    }
    .page, .spread {
      animation: inkSettle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-mic::after { display: none; }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  body::before, body::after, .bookmarks, .tearout, .colophon-page { display: none !important; }
  body { background: #fff; color: #000; }
  .book::before, .book::after { display: none; }
  .page, .spread { box-shadow: none; border: 1px solid #ccc; animation: none; page-break-inside: avoid; }
  .prose a { color: #000; text-decoration: underline; }
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 720px) {
  body { font-size: 17px; }
  .cover-bar { padding: 24px 4px 14px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name { font-size: 1.2rem; }
  .page { margin: 18px 0; padding-bottom: 80px; }
  .page-no { bottom: 24px; font-size: 0.6rem; }
  .marginalia { font-size: 1.1rem; }
  .stamp { width: 110px; height: 110px; font-size: 0.62rem; }
}
