:root {
  --parchment: #FFF8F0;
  --umber: #3C2415;
  --brass: #A0895C;
  --sienna: #B8652A;
  --rose: #C4928B;
  --sage: #8B9E7C;
  --ink: #2A2320;
  --paper-edge: #C4A882;
  --diagonal: 7deg;
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --reading-measure: 52ch;
}

/* Typography compliance note: Interactive pairing creates a specific old/new tension that mirrors the site's thematic content. The headlines feel contemporary and decisive. Space Grotesk (Google Fonts). */

@keyframes parchment-breathe {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.5; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--umber);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 146, 139, 0.18), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(160, 137, 92, 0.16), transparent 32%),
    repeating-linear-gradient(96deg, rgba(60, 36, 21, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
  z-index: 30;
  animation: parchment-breathe 12s ease-in-out infinite;
}

h1, h2, h3, .eyebrow, .folio, .card-label {
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
}

h3 { line-height: 1.05; }

.eyebrow, .folio, .card-label {
  color: var(--brass);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.reading-ribbon {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 18px;
  width: 2px;
  height: 100vh;
  background: rgba(160, 137, 92, 0.24);
}

.reading-ribbon span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--brass);
}

.reading-ribbon i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--sienna);
  box-shadow: 0 0 0 5px rgba(160, 137, 92, 0.16);
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 6vw, 7rem);
  isolation: isolate;
}

.opening-panel {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--parchment);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 16vh;
}

.diagonal-lines,
.fork-panel::before,
.resolution-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: 0.55;
  transform: rotate(var(--diagonal));
  background: repeating-linear-gradient(0deg, transparent 0 46px, rgba(160, 137, 92, 0.4) 47px, transparent 48px 92px);
}

.opening-copy {
  position: relative;
  max-width: 920px;
  transform: rotate(-3deg) translateY(12px);
  opacity: 0;
  transition: opacity 600ms ease 400ms, transform 600ms ease 400ms;
}

.opening-copy.is-loaded {
  opacity: 1;
  transform: rotate(-3deg) translateY(0);
}

.opening-copy h1 { color: var(--umber); }

.margin-note {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  max-width: 20ch;
  color: rgba(60, 36, 21, 0.66);
  font-style: italic;
  font-size: 0.95em;
  transform: rotate(6deg);
}

.scale { position: relative; }
.scale span, .scale b, .scale i, .scale em { position: absolute; display: block; }
.scale span { height: 2px; background: currentColor; transform: rotate(4deg); transform-origin: center; }
.scale b { width: 2px; background: currentColor; left: 50%; transform: translateX(-50%); }
.scale i, .scale em { border: 2px solid currentColor; border-top: 0; border-radius: 0 0 50% 50%; }
.scale i { left: 8%; }
.scale em { right: 8%; }

.scale-ghost {
  position: absolute;
  width: 42vw;
  height: 24vw;
  color: rgba(60, 36, 21, 0.05);
  right: -6vw;
  bottom: 8vh;
  transform: rotate(-8deg);
}
.scale-ghost span { top: 35%; left: 0; width: 100%; }
.scale-ghost b { top: 18%; height: 70%; }
.scale-ghost i, .scale-ghost em { top: 35%; width: 22%; height: 24%; }

.small-scale, .card-scale { width: 120px; height: 70px; color: var(--brass); margin: 0 auto 1rem; }
.small-scale span, .card-scale span { top: 28px; left: 0; width: 100%; }
.small-scale b, .card-scale b { top: 8px; height: 56px; }
.small-scale i, .small-scale em, .card-scale i, .card-scale em { top: 29px; width: 28px; height: 16px; }

.fork-panel {
  margin-top: -8vh;
  background: var(--umber);
  color: var(--parchment);
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
  padding-top: 18vh;
  padding-bottom: 18vh;
}

.section-mark { text-align: center; margin-bottom: clamp(2rem, 4vw, 4rem); }

.fork-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.choice {
  position: relative;
  max-width: 38ch;
  padding: clamp(2rem, 5vw, 6rem);
  background: var(--parchment);
  color: var(--umber);
  border: 1px solid var(--paper-edge);
  box-shadow: 4px 4px 0 #8B7355;
  text-align: justify;
  transition: transform 420ms var(--spring), opacity 420ms ease, background 420ms ease;
}

.choice-left { justify-self: end; transform: rotate(4deg); }
.choice-right { justify-self: start; transform: rotate(-4deg); }
.fork-wrap.lean-left .choice-left { transform: rotate(3deg) scale(1.02); background: #FFF8F0; }
.fork-wrap.lean-left .choice-right { opacity: 0.85; transform: rotate(-5deg) scale(0.985); }
.fork-wrap.lean-right .choice-right { transform: rotate(-3deg) scale(1.02); background: #FFF8F0; }
.fork-wrap.lean-right .choice-left { opacity: 0.85; transform: rotate(5deg) scale(0.985); }

.choice h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  color: var(--umber);
  text-align: left;
}

.choice aside {
  position: absolute;
  right: -3rem;
  top: 35%;
  width: 16ch;
  font-style: italic;
  font-size: 0.86em;
  line-height: 1.4;
  color: var(--brass);
  transform: rotate(8deg);
}

.dropcap {
  float: left;
  font-size: 4.2em;
  line-height: 0.75;
  padding-right: 0.09em;
  font-style: italic;
  color: var(--sienna);
}

.inkline {
  position: relative;
  display: inline-block;
  font-style: italic;
}

.inkline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--sienna);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 850ms ease;
}

.inkline.is-drawn::after { transform: scaleX(1); }

.archive-panel {
  margin-top: -8vh;
  min-height: 120vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
  clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
  padding-top: 18vh;
  padding-bottom: 20vh;
}

.archive-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(97deg, transparent 0 49%, rgba(160, 137, 92, 0.23) 49.1% 49.25%, transparent 49.35%),
    linear-gradient(83deg, transparent 0 54%, rgba(196, 168, 130, 0.16) 54.1% 54.25%, transparent 54.35%);
}

.archive-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.archive-heading h2 { color: var(--parchment); }

.desk-collage {
  position: relative;
  min-height: 720px;
  max-width: 1160px;
  margin: 0 auto;
}

.paper-card {
  position: absolute;
  width: clamp(210px, 27vw, 340px);
  min-height: 170px;
  padding: 1.3rem;
  background: var(--parchment);
  color: var(--umber);
  border: 1px solid var(--paper-edge);
  box-shadow: 3px 3px 0 rgba(60, 36, 21, 0.15);
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms var(--spring);
}

.paper-card h3 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--sienna); margin-bottom: 0.4rem; }
.paper-card .quote { font-style: italic; font-size: 1.18em; }
.paper-card ol { margin: 0; padding-left: 1.2rem; }

.card-one { left: 3%; top: 10%; transform: translate(-34vw, 40px) rotate(-20deg); }
.card-two { left: 31%; top: 2%; transform: translate(0, -38vh) rotate(15deg); }
.card-three { right: 5%; top: 15%; transform: translate(36vw, 80px) rotate(18deg); }
.card-four { left: 14%; top: 48%; transform: translate(-28vw, 30vh) rotate(-18deg); }
.card-five { right: 22%; top: 43%; transform: translate(20vw, 34vh) rotate(14deg); }
.card-six { right: 3%; top: 66%; transform: translate(34vw, 0) rotate(20deg); }

.desk-collage.is-assembled .paper-card { opacity: 1; }
.desk-collage.is-assembled .card-one { transform: rotate(-8deg); transition-delay: 0ms; }
.desk-collage.is-assembled .card-two { transform: rotate(4deg); transition-delay: 120ms; }
.desk-collage.is-assembled .card-three { transform: rotate(7deg); transition-delay: 240ms; }
.desk-collage.is-assembled .card-four { transform: rotate(5deg); transition-delay: 360ms; }
.desk-collage.is-assembled .card-five { transform: rotate(-5deg); transition-delay: 480ms; }
.desk-collage.is-assembled .card-six { transform: rotate(8deg); transition-delay: 600ms; }

.resolution-panel {
  margin-top: -8vh;
  display: grid;
  place-items: center;
  background: var(--parchment);
  color: var(--umber);
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  padding-top: 20vh;
}

.resolution-copy {
  max-width: var(--reading-measure);
  margin-inline: auto;
}

.resolution-copy h2 { color: var(--umber); }

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brass);
  margin-top: 3rem;
  font-style: italic;
}

.ornament span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.reveal-item {
  opacity: 0;
  transform: translateY(30px) rotate(var(--resting-rotation, 0deg));
  transition: opacity 800ms ease, transform 800ms var(--spring);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--resting-rotation, 0deg));
}

.choice-left.reveal-item { --resting-rotation: 4deg; }
.choice-right.reveal-item { --resting-rotation: -4deg; }

@media (max-width: 820px) {
  .reading-ribbon { left: 9px; }
  .panel { padding-inline: 1.4rem; }
  .opening-copy, .opening-copy.is-loaded { transform: rotate(-2deg) translateY(0); }
  .margin-note { position: static; margin-top: 2rem; transform: rotate(3deg); }
  .fork-wrap { grid-template-columns: 1fr; }
  .choice, .choice-left, .choice-right { justify-self: center; max-width: 100%; }
  .choice aside { position: static; width: auto; transform: none; }
  .desk-collage { min-height: auto; display: grid; gap: 1.4rem; }
  .paper-card, .card-one, .card-two, .card-three, .card-four, .card-five, .card-six {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .desk-collage.is-assembled .card-one,
  .desk-collage.is-assembled .card-two,
  .desk-collage.is-assembled .card-three,
  .desk-collage.is-assembled .card-four,
  .desk-collage.is-assembled .card-five,
  .desk-collage.is-assembled .card-six { transform: rotate(0deg); }
}
