:root {
  --ink: #18120f;
  --soft-ink: #5f524b;
  --paper: #fff8ed;
  --warm-paper: #f3e4d2;
  --mist: #faf2e6;
  --clay: #9e5638;
  --olive: #73785f;
  --charcoal: #201712;
  --line: rgba(24, 18, 15, 0.14);
  --shadow: 0 24px 70px rgba(71, 45, 31, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Candara, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf2 0%, var(--paper) 46%, #f5e8d8 100%);
  background-size: 96px 100%, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(158, 86, 56, 0.22);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 2px;
}

.button:focus-visible,
nav a:focus-visible {
  outline-offset: 6px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(24, 18, 15, 0.16) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 248, 237, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 220ms ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--clay);
}

nav {
  display: flex;
  gap: clamp(16px, 3.5vw, 36px);
  color: var(--soft-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding: 26px 0 23px;
  transition: color 200ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

section {
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  max-width: 1200px;
  min-height: calc(76svh - 72px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 6vw, 72px) clamp(36px, 5vw, 60px);
}

.hero-copy {
  max-width: 780px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-text {
  max-width: 580px;
  margin: 18px 0 26px;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(24, 18, 15, 0.42);
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

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

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  color: var(--ink);
  background: transparent;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  margin: 0;
}

.hero-visual::before {
  position: absolute;
  inset: 28px -18px auto auto;
  width: 78%;
  aspect-ratio: 1;
  content: "";
  background: rgba(158, 86, 56, 0.12);
  border-radius: 50%;
}

.portrait-card {
  display: grid;
  align-content: end;
  overflow: hidden;
  min-height: 440px;
  background: var(--warm-paper);
  border: 1px solid rgba(24, 18, 15, 0.13);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition:
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 600ms ease;
}

.portrait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(71, 45, 31, 0.2);
}

.portrait-card img {
  transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.portrait-card:hover img {
  transform: scale(1.03);
}

.portrait-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, transparent 0 52%, rgba(24, 18, 15, 0.55) 100%),
    linear-gradient(90deg, rgba(255, 248, 237, 0.12), transparent 28%, transparent 72%, rgba(24, 18, 15, 0.14));
  pointer-events: none;
}

.portrait-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 30%;
  filter: sepia(0.12) saturate(0.88) contrast(0.98);
}

.portrait-card figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: #fff8ed;
}

.portrait-card figcaption span:first-child {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.005em;
}

.portrait-card figcaption span:last-child {
  max-width: 120px;
  color: rgba(255, 248, 237, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.about,
.craft,
.samples {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.section-number {
  color: var(--clay);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.005em;
}

.section-body {
  max-width: 880px;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.about p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--soft-ink);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.6;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.skill-list span {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px 14px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--line);
  transition: color 240ms ease, transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.skill-list span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--clay);
  border-radius: 999px;
  transform: translateY(-50%) scale(0);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-list span:hover {
  transform: translateX(6px);
  color: var(--clay);
}

.skill-list span:hover::before {
  transform: translateY(-50%) scale(1);
}

.skill-list span:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.skill-list span:nth-child(even) {
  padding-left: 22px;
}

.skill-list span:nth-child(even)::before {
  left: 8px;
}

.signature {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 7vw, 96px);
  color: #fff7ec;
  background:
    linear-gradient(115deg, rgba(32, 23, 18, 0.98), rgba(47, 34, 27, 0.95)),
    linear-gradient(90deg, rgba(158, 86, 56, 0.28), transparent);
}

.signature blockquote {
  max-width: 980px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.008em;
  font-style: italic;
  text-wrap: balance;
}

.book-scroll {
  position: relative;
  display: block;
  max-width: none;
  min-height: 460vh;
  padding: 0;
  border-top: 1px solid var(--line);
}

.book-sticky {
  position: sticky;
  top: 72px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
  max-width: 1280px;
  height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px) clamp(20px, 6vw, 72px) clamp(10px, 1.6vw, 16px);
}

.book-sticky .section-number {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.book-sticky .section-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 1080px;
}

.book-sticky h2 {
  max-width: 720px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.book-sticky .kicker {
  margin-bottom: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

/* ---------- Book stage ---------- */

.book-stage {
  --openness: 0;
  --tilt: 5deg;
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(8px, 1.5vw, 14px);
  gap: clamp(8px, 1.2vw, 14px);
  perspective: 2800px;
  perspective-origin: 50% 45%;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms,
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms;
}

.book-scroll.is-revealed .book-stage {
  opacity: 1;
  transform: translateY(0);
}

.book {
  position: relative;
  /* Width is bounded by viewport width AND remaining vertical space inside the
     sticky panel — keeps the whole book visible without ever clipping.
     Aspect ratio is taller-ish (8/6) so long poems have room to breathe. */
  width: min(880px, 88vw, calc((100svh - 230px) * 8 / 6));
  aspect-ratio: 8 / 6;
  transform-style: preserve-3d;
  transform:
    translateX(var(--book-shift, -25%))
    rotateX(var(--tilt));
  transition: transform 460ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Atmospheric floor shadow — two stacked ellipses for soft falloff */
.book::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-2% - 22px);
  width: calc(68% + 26% * var(--openness));
  height: 36px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(40, 22, 12, 0.32) 0%, rgba(40, 22, 12, 0) 60%),
    radial-gradient(ellipse at center, rgba(40, 22, 12, 0.18) 0%, rgba(40, 22, 12, 0) 80%);
  filter: blur(10px);
  opacity: calc(0.55 + 0.4 * var(--openness));
  pointer-events: none;
  z-index: -1;
}

/* ---------- Page block (thickness of the book) ---------- */

.book-block {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.book-block-face {
  position: absolute;
  background:
    repeating-linear-gradient(90deg, #f3e4c7 0 1px, #ead7b3 1px 2px),
    linear-gradient(180deg, #f6e8cd, #d9c2a0);
}

/* Top edge (the thick top of the page block) — with a faint gilt tint */
.book-block-top {
  left: 1%;
  right: 1%;
  top: 0;
  height: 14px;
  background:
    linear-gradient(180deg, rgba(212, 168, 96, 0.22), transparent 70%),
    repeating-linear-gradient(90deg, #f3e4c7 0 1px, #ead7b3 1px 2px),
    linear-gradient(180deg, #f6e8cd, #d9c2a0);
  transform: rotateX(-90deg) translateY(-7px);
  transform-origin: 50% 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.book-block-bottom {
  left: 1%;
  right: 1%;
  bottom: 0;
  height: 14px;
  transform: rotateX(90deg) translateY(7px);
  transform-origin: 50% 100%;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/* Fore edge (right side of the closed block) */
.book-block-fore {
  top: 2%;
  bottom: 2%;
  right: 0;
  width: 14px;
  background:
    repeating-linear-gradient(180deg, #f3e4c7 0 1px, #e3cda6 1px 2px);
  transform: rotateY(90deg) translateX(7px);
  transform-origin: 100% 50%;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.18), inset 1px 0 0 rgba(255, 255, 255, 0.5);
  opacity: var(--fore-fade, 1);
  transition: opacity 240ms ease;
}

/* ---------- Spine (visible between the two open pages) ---------- */

.book-spine {
  position: absolute;
  top: -1%;
  bottom: -1%;
  left: 50%;
  width: 26px;
  transform: translateX(-50%) translateZ(-12px);
  background:
    linear-gradient(180deg, #1f1009 0%, #2b170c 50%, #170a04 100%);
  border-radius: 4px;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 200, 150, 0.08);
  opacity: calc(1 - var(--openness) * 0.6);
}

/* Gutter shadow visible when book is open */
.book-gutter {
  position: absolute;
  top: 2%;
  bottom: 2%;
  left: 50%;
  width: 60px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(3px);
  opacity: var(--openness);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Leaves ---------- */

.book-leaves {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.leaf {
  --leaf-rotation: 0deg;
  --leaf-depth: 0px;
  --turn-progress: 0;
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(var(--leaf-rotation)) translateZ(var(--leaf-depth));
  will-change: transform;
  pointer-events: none;
}

.leaf-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.8vw, 22px) clamp(22px, 2.6vw, 36px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 0 6px 6px 0;
  background:
    /* Binding shadow on spine edge */
    linear-gradient(to right, rgba(40, 26, 16, 0.28) 0%, rgba(40, 26, 16, 0.1) 3%, transparent 9%),
    /* Outer edge highlight (catching light) */
    linear-gradient(to left, rgba(255, 255, 255, 0.55), transparent 6%),
    /* Subtle horizontal ruling */
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(40, 26, 16, 0.035) 32px 33px),
    /* Faint paper grain */
    repeating-linear-gradient(45deg, rgba(80, 50, 25, 0.02) 0 2px, transparent 2px 4px),
    /* Soft vignette */
    radial-gradient(ellipse at 65% 35%, #fffbf2 0%, #f4e6cd 100%);
  box-shadow:
    inset 0 0 42px rgba(160, 120, 80, 0.1),
    1px 0 0 rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.leaf-face-back {
  transform: rotateY(180deg);
  border-radius: 0 6px 6px 0;
}

/* Curl / shading overlay during turn (peaks at midpoint).
   Two layered gradients give the page a real "bending" feel:
   1. Dark spine-side shadow (page tilts away from light here).
   2. A bright highlight band sweeping across the lifting surface. */
.leaf-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent 78%,
      rgba(30, 18, 8, 0.35) 100%
    ),
    linear-gradient(
      to right,
      transparent 38%,
      rgba(255, 248, 232, 0.55) 62%,
      transparent 88%
    ),
    linear-gradient(
      to right,
      rgba(20, 12, 6, 0.55) 0%,
      rgba(20, 12, 6, 0.22) 18%,
      transparent 48%
    );
  opacity: calc(var(--turn-progress) * (1 - var(--turn-progress)) * 4);
  mix-blend-mode: multiply;
}

/* ---------- Cover face (hardcover) ---------- */

.cover-face {
  background:
    /* Soft cloth weave (very subtle) */
    repeating-linear-gradient(0deg,   rgba(255, 220, 180, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(0, 0, 0, 0.06)        0 1px, transparent 1px 3px),
    /* Highlight pool top-left */
    radial-gradient(ellipse at 22% 16%, rgba(255, 220, 180, 0.22), transparent 55%),
    /* Shadow pool bottom-right */
    radial-gradient(circle at 92% 92%, rgba(0, 0, 0, 0.5), transparent 55%),
    /* Base leather/cloth color */
    linear-gradient(135deg, #3a2418 0%, #5e3624 42%, #2a1810 100%);
  color: #f3e0c0;
  border-radius: 0 9px 9px 0;
  padding: clamp(28px, 3.6vw, 48px) clamp(32px, 4.5vw, 56px);
  box-shadow:
    inset 16px 0 28px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 200, 150, 0.12),
    inset -2px 0 0 rgba(255, 220, 180, 0.06);
}

.cover-face::after {
  /* Replace the standard page curl with a richer cover-specific gradient */
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.28) 18%,
      rgba(255, 220, 170, 0.14) 60%,
      rgba(255, 220, 170, 0) 100%
    );
  mix-blend-mode: normal;
}

.cover-face::before {
  /* Embossed gilt frame */
  content: "";
  position: absolute;
  inset: clamp(16px, 2.4vw, 26px);
  border: 1px solid rgba(245, 210, 160, 0.32);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.cover-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(243, 224, 192, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cover-emblem {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: clamp(10px, 1.4vw, 16px) 0 0;
  color: rgba(245, 215, 165, 0.78);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
}

.cover-emblem > span {
  display: inline-block;
  transform: translateY(-1px);
}

.cover-emblem::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 215, 165, 0.5), transparent);
}

.cover-title {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.008em;
  color: #f8e8c8;
  text-shadow:
    0 1px 0 rgba(255, 235, 210, 0.22),
    0 -1px 0 rgba(0, 0, 0, 0.55),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.cover-rule {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 1px;
  margin: clamp(16px, 2vw, 22px) 0 clamp(10px, 1.4vw, 14px);
  background: linear-gradient(90deg, transparent, rgba(245, 215, 165, 0.7), transparent);
}

.cover-tag {
  position: relative;
  z-index: 1;
  margin: 0 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.94rem, 1.3vw, 1.14rem);
  color: rgba(243, 224, 192, 0.88);
}

.cover-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(243, 224, 192, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Inner page content ---------- */

.page-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.page-eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

.page-rule {
  width: 48px;
  height: 1px;
  margin: clamp(14px, 1.5vw, 18px) 0;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
  opacity: 0.7;
}

.page-meta {
  margin: 0;
  color: var(--soft-ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.96rem;
}

.page-body.poem {
  margin: 0;
  color: #2a1f17;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.45vh, 1.02rem);
  line-height: 1.38;
  white-space: pre-line;
  letter-spacing: 0.005em;
}

.page-body.poem::first-letter {
  font-family: var(--serif);
  font-size: 2.6em;
  font-weight: 500;
  line-height: 0.82;
  float: left;
  margin: 0.04em 0.1em 0 0;
  color: var(--clay);
}

.page-folio {
  margin: auto 0 0;
  padding-top: 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--soft-ink);
  letter-spacing: 0.1em;
}

/* Title pages — content centered vertically */
.face-title {
  justify-content: center;
}

.face-title .page-content {
  align-items: center;
  text-align: center;
  flex: 0 1 auto;
  margin-top: auto;
}

.face-title .page-title {
  margin: 6px 0 0;
}

.face-title .page-rule {
  margin-inline: auto;
}

.face-title .page-eyebrow {
  margin-bottom: 14px;
}

.face-title .page-meta {
  margin-top: 14px;
}

.face-title .page-folio {
  margin-top: auto;
}

.page-ornament {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--clay);
  opacity: 0.72;
  line-height: 1;
  text-align: center;
}

/* End page */
.face-end {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.face-end .page-eyebrow {
  margin: 0;
  letter-spacing: 0.34em;
}

.face-end .page-ornament {
  margin: 0;
  font-size: 1.4rem;
  opacity: 0.85;
}

.face-end .page-title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  max-width: 280px;
  margin: 0;
}

.face-end .end-quote {
  margin: 4px 0 0;
  max-width: 260px;
  color: var(--soft-ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ---------- Hint caption ---------- */

.book-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: var(--caption-fade, 1);
  transition: opacity 320ms ease;
  pointer-events: none;
}

.book-caption-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  animation: bookArrow 1.6s ease-in-out infinite;
}

@keyframes bookArrow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(2px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.is-ready .section-reveal:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
  .book-stage {
    opacity: 1 !important;
    transform: none !important;
  }
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 52vh;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 80px);
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 22px;
}

.email-link {
  position: relative;
  margin-top: 14px;
  color: var(--soft-ink);
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(24, 18, 15, 0.24);
  transition: color 220ms ease, border-color 220ms ease;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.section-reveal {
  transition:
    opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hero stays visible immediately to avoid an above-the-fold flash. */
html.is-ready .section-reveal:not(.is-revealed):not(.hero) {
  opacity: 0;
  transform: translateY(24px);
}

.section-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-top: clamp(44px, 8vw, 68px);
  }

  .hero-visual {
    width: min(420px, 100%);
    min-height: 470px;
  }

  .about,
  .craft,
  .samples {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .book-sticky {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .book {
    width: min(720px, 92vw, calc((100svh - 320px) * 8 / 5.4));
    aspect-ratio: 8 / 5.4;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 54px 100%, auto;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 20px;
  }

  nav {
    display: none;
  }

  .wordmark {
    font-size: 1rem;
  }

  section {
    scroll-margin-top: 72px;
  }

  .hero {
    padding: 38px 20px 28px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.018em;
  }

  h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
    line-height: 1.1;
  }

  .hero-text {
    margin: 16px 0 22px;
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual::before {
    width: 240px;
    right: -56px;
  }

  .portrait-card {
    min-height: 340px;
    max-height: 380px;
  }

  .about,
  .craft,
  .samples {
    padding: 48px 20px;
  }

  .skill-list {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .skill-list span {
    min-height: 52px;
    font-size: 1.12rem;
  }

  .skill-list span,
  .skill-list span:nth-child(even) {
    padding-left: 0;
  }

  .skill-list span:nth-child(odd) {
    border-right: 0;
  }

  .signature {
    padding: 56px 20px;
  }

  .signature blockquote {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.22;
  }

  .final-cta {
    min-height: auto;
    padding: 52px 20px;
  }

  .book-scroll {
    min-height: 420vh;
  }

  .book-sticky {
    top: 64px;
    height: calc(100svh - 64px);
    padding: 14px 20px 12px;
  }

  .book-stage {
    margin-top: 8px;
    gap: 10px;
  }

  .book {
    width: min(96vw, calc((100svh - 280px) * 8 / 6));
    aspect-ratio: 8 / 6;
  }

  .book-sticky h2 {
    font-size: clamp(1.3rem, 5.6vw, 1.85rem);
  }

  .leaf-face {
    padding: 18px 22px;
  }

  .cover-face {
    padding: 22px 26px;
  }

  .cover-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .page-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-body.poem {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .page-body.poem::first-letter {
    font-size: 2.8em;
  }

  .book-block-top,
  .book-block-bottom {
    height: 10px;
  }

  .book-block-top { transform: rotateX(-90deg) translateY(-5px); }
  .book-block-bottom { transform: rotateX(90deg) translateY(5px); }
}
