:root {
  --moonpond: #102A3A;
  --mist: #DCEFF6;
  --bluebell: #A9CFE2;
  --linen: #F6F1E6;
  --sage: #9EB79A;
  --lilac: #C7B7E5;
  --dew: #EEF8FB;
  --display: "Fraunces", Georgia, serif;
  --body: "Alegreya Sans", "Trebuchet MS", sans-serif;
  --caption: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--moonpond);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--moonpond);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 12%, rgba(199, 183, 229, .42), transparent 26rem),
    radial-gradient(circle at 88% 5%, rgba(169, 207, 226, .55), transparent 25rem),
    linear-gradient(115deg, var(--dew), var(--mist) 46%, #CFE5F0 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .32;
  background-image:
    linear-gradient(90deg, rgba(16,42,58,.04) 1px, transparent 1px),
    linear-gradient(rgba(16,42,58,.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(16,42,58,.07) 1px, transparent 1.8px);
  background-size: 42px 42px, 42px 42px, 13px 13px;
  mix-blend-mode: multiply;
}

a { color: inherit; }

.particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pond-lens {
  position: fixed;
  width: 190px;
  height: 190px;
  left: -220px;
  top: -220px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(169, 207, 226, .55);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(238, 248, 251, .28), transparent 55%),
    repeating-radial-gradient(circle, transparent 0 23px, rgba(169, 207, 226, .22) 24px 25px);
  filter: blur(.1px);
  opacity: .44;
  transform: translate3d(0,0,0);
}

.page-ribbon {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 14px 10px;
  background: rgba(246, 241, 230, .45);
  border: 1px solid rgba(16, 42, 58, .13);
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(16, 42, 58, .11);
  backdrop-filter: blur(8px);
}

.ribbon-mark {
  width: 12px;
  height: 34px;
  display: block;
  border-radius: 999px;
  background: rgba(169, 207, 226, .62);
  border: 1px solid rgba(16, 42, 58, .14);
  position: relative;
  text-decoration: none;
  transition: height .7s ease, background .7s ease;
}

.ribbon-mark span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--caption);
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
  opacity: 0;
  color: var(--moonpond);
  transition: opacity .5s ease;
}

.ribbon-mark:hover span,
.ribbon-mark.is-active span { opacity: .72; }
.ribbon-mark.is-active { height: 58px; background: var(--lilac); }

.journal {
  position: relative;
  z-index: 1;
}

.spread {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(34px, 6vw, 94px);
  padding: clamp(42px, 6vw, 92px) clamp(46px, 8vw, 128px);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 58%, rgba(238, 248, 251, .74), transparent 34rem),
    linear-gradient(90deg, rgba(246, 241, 230, .62), rgba(220, 239, 246, .64));
}

.spread::before {
  content: "";
  position: absolute;
  inset: 28px clamp(22px, 4vw, 70px);
  border: 1px solid rgba(16, 42, 58, .1);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(246,241,230,.52), transparent 48%, rgba(238,248,251,.34)),
    radial-gradient(circle at 9% 12%, rgba(158,183,154,.15), transparent 11rem);
  box-shadow: inset 0 0 80px rgba(255,255,255,.3), 0 30px 100px rgba(16, 42, 58, .08);
  pointer-events: none;
}

.spread::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .19;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at center, rgba(16,42,58,.13) 0 1px, transparent 1.5px),
    linear-gradient(110deg, transparent 0 46%, rgba(246,241,230,.45) 46% 51%, transparent 51%);
  background-size: 18px 18px, 100% 100%;
}

.fold {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 34px;
  transform: translateX(-50%);
  z-index: 1;
  background:
    linear-gradient(90deg, transparent, rgba(16, 42, 58, .1) 45%, rgba(255,255,255,.5) 50%, rgba(16,42,58,.06) 55%, transparent),
    repeating-linear-gradient(180deg, rgba(16,42,58,.16) 0 7px, transparent 8px 26px);
  opacity: .5;
}

.folio {
  position: absolute;
  z-index: 2;
  top: 48px;
  font-family: var(--caption);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .08em;
  color: rgba(16, 42, 58, .58);
}
.folio-left { left: clamp(54px, 8vw, 132px); }
.folio-right { right: clamp(54px, 8vw, 132px); }

.plate,
.annotation {
  position: relative;
  z-index: 2;
}

.plate {
  min-height: clamp(420px, 68vh, 720px);
  border-radius: 38px 28px 44px 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(238, 248, 251, .85), transparent 18rem),
    linear-gradient(145deg, rgba(246, 241, 230, .86), rgba(220, 239, 246, .68));
  border: 1px solid rgba(16, 42, 58, .11);
  box-shadow: 0 38px 88px rgba(16,42,58,.15), inset 0 0 45px rgba(255,255,255,.55);
  display: grid;
  place-items: center;
}

.annotation {
  max-width: 520px;
  padding: clamp(28px, 4vw, 54px);
  background: rgba(246, 241, 230, .63);
  border: 1px solid rgba(16, 42, 58, .1);
  border-radius: 24px 34px 28px 40px;
  box-shadow: 0 28px 80px rgba(16,42,58,.11);
}

.vellum-panel {
  background: rgba(238, 248, 251, .53);
  backdrop-filter: blur(9px);
}

.torn-paper {
  clip-path: polygon(1% 3%, 15% 0, 31% 2%, 47% 0, 64% 3%, 82% 1%, 99% 4%, 97% 21%, 100% 39%, 97% 55%, 99% 76%, 96% 99%, 72% 97%, 55% 100%, 33% 97%, 17% 99%, 2% 96%, 4% 77%, 1% 58%, 3% 36%);
}

.specimen,
.caption-strip,
.vertical-label,
.detail-panel,
.pinned-panel {
  font-family: var(--caption);
  font-style: italic;
  letter-spacing: .05em;
}

.specimen {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(16, 42, 58, .6);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0;
  color: var(--moonpond);
}

h1 { font-size: clamp(64px, 9vw, 142px); }
h2 { font-size: clamp(42px, 5vw, 82px); }

p {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 300;
}

.lead {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.18;
  color: rgba(16, 42, 58, .84);
}

.wordmark-dot {
  position: relative;
  display: inline-block;
}
.wordmark-dot::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 62%;
  top: 60%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, rgba(169, 207, 226, .52) 0 2px, transparent 3px 20px);
  animation: wordRipple 9s ease-out infinite;
  z-index: -1;
}

.line-art {
  width: min(86%, 660px);
  height: auto;
  overflow: visible;
}
.line-art path,
.line-art circle,
.line-art ellipse {
  fill: none;
  stroke: var(--moonpond);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
  filter: url(#none);
}
.line-art .sage { stroke: var(--sage); opacity: .9; }
.line-art .lilac { stroke: var(--lilac); opacity: .95; }
.thread-line { stroke: var(--bluebell) !important; stroke-dasharray: 7 11; }

.cover-plate { min-height: 72vh; }
.moon-wash {
  position: absolute;
  inset: 8% 7%;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(ellipse, rgba(169, 207, 226, .42), transparent 65%);
  filter: blur(3px);
  animation: breathe 12s ease-in-out infinite;
}

.cover-note,
.pinned-panel,
.detail-panel {
  position: absolute;
  max-width: 210px;
  padding: 12px 16px;
  background: rgba(246, 241, 230, .74);
  border: 1px solid rgba(16,42,58,.12);
  box-shadow: 0 16px 40px rgba(16,42,58,.1);
  font-family: var(--caption);
  font-style: italic;
  font-size: 16px;
}
.note-one { left: 9%; top: 18%; transform: rotate(-5deg); }
.note-two { right: 8%; bottom: 17%; transform: rotate(4deg); }

.caption-strip {
  margin-top: 28px;
  padding: 12px 16px;
  background: rgba(169, 207, 226, .26);
  border-left: 3px solid var(--bluebell);
  color: rgba(16,42,58,.66);
}

.thread {
  position: absolute;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--bluebell), transparent);
  opacity: .6;
}
.thread-one {
  width: 62vw;
  left: 18vw;
  top: 76vh;
  transform: rotate(-4deg);
}

.botanical-plate { transform: rotate(-1.5deg); }
.vertical-label {
  position: absolute;
  left: 22px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  color: rgba(16,42,58,.48);
}
.pinned-panel { right: 8%; top: 12%; transform: rotate(3deg); }

.field-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 13px;
  font-size: 19px;
  font-weight: 300;
}
.field-list li::before {
  content: "◌";
  color: var(--sage);
  margin-right: 10px;
}

.pond-divider {
  width: 180px;
  height: 90px;
  margin-top: 24px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse, transparent 0 14px, rgba(169,207,226,.65) 15px 16px);
  opacity: .7;
}
.pond-divider.release-ring { animation: smallRipple 2.3s ease-out; }

.sketch-spread { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); }
.sketch-plate { min-height: 64vh; transform: rotate(1deg); }
.small-poem { margin-left: clamp(0px, 4vw, 70px); }
.detail-panel { left: 11%; bottom: 9%; transform: rotate(-3deg); }

.compose-spread {
  background: radial-gradient(ellipse at center, rgba(16,42,58,.12), transparent 36rem), linear-gradient(90deg, var(--mist), var(--dew));
}
.pond-map { border-radius: 44% 56% 48% 52%; min-height: 70vh; }
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.material-grid span {
  padding: 13px 14px;
  background: rgba(246, 241, 230, .48);
  border: 1px solid rgba(16, 42, 58, .11);
  border-radius: 999px;
  font-family: var(--caption);
  font-style: italic;
  text-align: center;
}

.final-plate { background: radial-gradient(circle at center, rgba(199,183,229,.28), transparent 24rem), linear-gradient(145deg, rgba(16,42,58,.88), rgba(16,42,58,.68)); }
.final-plate .line-art path { stroke: var(--dew); opacity: .8; }
.final-plate .line-art .lilac { stroke: var(--lilac); }
.luminous-map {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(238,248,251,.22) 0 2px, transparent 3px 38px);
  animation: glowMap 10s ease-in-out infinite;
}
.luminous-map span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 28px var(--lilac);
}
.luminous-map span:nth-child(1) { left: 24%; top: 34%; }
.luminous-map span:nth-child(2) { left: 61%; top: 28%; background: var(--dew); }
.luminous-map span:nth-child(3) { left: 48%; top: 66%; background: var(--bluebell); }
.luminous-map span:nth-child(4) { left: 73%; top: 57%; background: var(--sage); }

.handwritten-note {
  display: inline-block;
  margin-top: 22px;
  padding: 18px 22px;
  text-decoration: none;
  font-family: var(--caption);
  font-style: italic;
  font-size: 25px;
  background: rgba(246, 241, 230, .82);
  border: 1px solid rgba(16,42,58,.13);
  transform: rotate(-2deg);
  box-shadow: 0 18px 44px rgba(16,42,58,.12);
}
.handwritten-note span { font-size: 15px; color: rgba(16,42,58,.62); }

.annotation,
.plate {
  opacity: 0;
  transform: translateY(22px) rotate(var(--tilt, 0deg));
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.spread.in-view .annotation,
.spread.in-view .plate {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

@keyframes wordRipple {
  0% { transform: translate(-50%, -50%) scale(.45); opacity: .92; }
  70% { opacity: .24; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { transform: scale(.96) rotate(0deg); opacity: .66; }
  50% { transform: scale(1.05) rotate(2deg); opacity: .92; }
}

@keyframes smallRipple {
  from { transform: scale(.8); opacity: .95; }
  to { transform: scale(1.16); opacity: .52; }
}

@keyframes glowMap {
  0%,100% { opacity: .58; filter: blur(.2px); }
  50% { opacity: .9; filter: blur(1px); }
}

@media (max-width: 900px) {
  .spread,
  .sketch-spread {
    grid-template-columns: 1fr;
    padding: 76px 26px;
    gap: 28px;
  }
  .fold { left: 26px; opacity: .25; }
  .plate { min-height: 420px; }
  .annotation { max-width: none; }
  .page-ribbon { right: 8px; }
  h1 { font-size: clamp(52px, 18vw, 94px); }
  .material-grid { grid-template-columns: 1fr; }
}
