/* =====================================================
   PPADDL.com — Pacific Paddlers' Constellation Society
   Honey-warm retro paddling almanac
   ===================================================== */

:root {
  --tallow-cream: #F5E8C8;
  --milled-honey: #E9D29A;
  --burnt-honey: #C9974A;
  --steeped-tea: #7A5D2E;
  --walnut-bark: #3B2F1E;
  --dusk-lake: #2A3A4F;
  --linen-mist: #D9E4EE;
  --linen-page: #F9F2DF;

  --col-body: 720px;
  --col-plate: 1040px;

  --spring-fast: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1.4, 0.36, 1);
  --spring-bounce: cubic-bezier(0.18, 1.8, 0.42, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tallow-cream);
  color: var(--steeped-tea);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 30px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Page-wide hue shift driven by JS scroll progress */
  transition: background-color 0.4s var(--spring-soft);
}

/* Risograph grain overlay — alive but imperceptible */
.riso-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.riso-grain rect {
  width: 100%;
  height: 100%;
}

/* =====================================================
   Cursor star trail
   ===================================================== */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9000;
}

.star-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.star-cursor-1 { width: 12px; height: 12px; opacity: 0.85; }
.star-cursor-2 { width: 10px; height: 10px; opacity: 0.6; }
.star-cursor-3 { width: 8px;  height: 8px;  opacity: 0.4; }

/* =====================================================
   Distant constellation stars (parallax z=-2)
   ===================================================== */
.distant-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.distant-stars .ds-star {
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  will-change: transform, opacity;
}

/* =====================================================
   Almanac (main container)
   ===================================================== */
.almanac {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col-plate);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   Plate (generic)
   ===================================================== */
.plate {
  position: relative;
  width: 100%;
  padding: 18vh 0 16vh;
  isolation: isolate;
}

.plate-watermark {
  position: absolute;
  top: 6vh;
  left: -2vw;
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-size: 240px;
  line-height: 1;
  color: var(--burnt-honey);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

.plate-header {
  max-width: var(--col-body);
  margin: 0 auto 6vh;
  text-align: center;
  position: relative;
  z-index: 2;
}

.plate-eyebrow {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steeped-tea);
  margin-bottom: 14px;
}

.plate-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--milled-honey);
  text-shadow: 1px 1px 0 rgba(122, 93, 46, 0.18);
  margin-bottom: 18px;
}

.plate-subtitle {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: var(--steeped-tea);
}

/* Plate break — double-rule honey hairline with star glyph */
.plate-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: var(--col-body);
  margin: 10vh auto 0;
  position: relative;
  z-index: 2;
}

.plate-break .rule-line {
  flex: 1;
  height: 1px;
  background: var(--burnt-honey);
  position: relative;
}

.plate-break .rule-line.rule-line-double::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 1px;
  background: var(--burnt-honey);
  opacity: 0.65;
}

.plate-break .rule-glyph {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =====================================================
   PLATE I — Masthead Cove
   ===================================================== */
.plate-i {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 14vh;
}

.masthead {
  position: relative;
  max-width: var(--col-plate);
  width: 100%;
  text-align: center;
  padding: 0 24px;
  will-change: transform;
}

.masthead-glyphs {
  position: absolute;
  top: -40px;
  left: 6%;
  width: 220px;
  height: 180px;
  pointer-events: none;
}

.glyph-star {
  position: absolute;
  width: 14px;
  height: 14px;
  will-change: opacity;
}

.glyph-star-a { top: 8px;  left: 16px; animation: pulse 5.2s ease-in-out infinite; }
.glyph-star-b { top: 60px; left: 80px; animation: pulse 6.4s ease-in-out infinite 0.8s; }
.glyph-star-c { top: 24px; left: 140px; animation: pulse 4.6s ease-in-out infinite 1.4s; }
.glyph-star-d { top: 110px; left: 40px; animation: pulse 5.8s ease-in-out infinite 2.0s; }
.glyph-star-e { top: 130px; left: 150px; animation: pulse 6.8s ease-in-out infinite 2.8s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.12); }
}

.masthead-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 540px;
  margin: 0 auto 28px;
}

.masthead-rule-lower {
  margin: 30px auto 22px;
}

.masthead-rule .rule-line {
  flex: 1;
  height: 1px;
  background: var(--burnt-honey);
  position: relative;
}

.masthead-rule .rule-line::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--burnt-honey);
  opacity: 0.55;
}

.masthead-rule .rule-glyph {
  width: 12px;
  height: 12px;
}

.wordmark {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 13vw, 144px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--milled-honey);
  text-shadow:
    1px 1px 0 rgba(122, 93, 46, 0.28),
    2px 2px 0 rgba(201, 151, 74, 0.22);
  margin: 8px 0 16px;
  will-change: transform;
}

.tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--steeped-tea);
}

.tagline em {
  font-style: italic;
  color: var(--walnut-bark);
  letter-spacing: 0.03em;
}

.masthead-meta {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut-bark);
  margin-top: 20px;
}

.paddle-masthead {
  position: absolute;
  top: 50%;
  right: 4%;
  width: 64px;
  height: 280px;
  transform: translateY(-50%) rotate(18deg);
  transform-origin: center;
  will-change: transform;
  opacity: 0.92;
  filter: drop-shadow(2px 4px 6px rgba(122, 93, 46, 0.18));
}

/* =====================================================
   PLATE II — Almanac Index
   ===================================================== */
.index-list {
  list-style: none;
  max-width: var(--col-body);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.index-item {
  display: grid;
  grid-template-columns: 100px 1fr 70px;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 151, 74, 0.22);
  position: relative;
  cursor: default;
  transform: translateX(0);
  transition: transform 0.45s var(--spring-fast);
  will-change: transform;
}

.index-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--burnt-honey);
  transition: width 0.34s var(--spring-soft);
}

.index-item:hover {
  transform: translateX(8px);
}

.index-item:hover::after {
  width: 100%;
}

.index-numeral {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--burnt-honey);
  text-align: right;
}

.index-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-name {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--walnut-bark);
}

.index-note {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--steeped-tea);
}

.index-page {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steeped-tea);
  text-align: right;
  align-self: center;
}

/* =====================================================
   PLATE III — River Atlas
   ===================================================== */
.river-stage {
  position: relative;
  max-width: var(--col-plate);
  margin: 0 auto;
  min-height: 1200px;
  padding: 0 24px;
}

.river-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 1400px;
  max-width: 90%;
  will-change: transform;
  z-index: 1;
}

.river-outline {
  stroke-dashoffset: 2400;
  stroke-dasharray: 2400;
  animation: drawRiver 2s var(--spring-soft) forwards paused;
}

.plate-iii.in-view .river-outline {
  animation-play-state: running;
}

@keyframes drawRiver {
  to { stroke-dashoffset: 0; }
}

.bend-marker text {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  will-change: transform;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 0.75px solid var(--burnt-honey);
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 151, 74, 0.05) 1px, transparent 1.6px) 0 0 / 4px 4px,
    rgba(201, 151, 74, 0.14);
  pointer-events: none;
  will-change: transform, opacity;
}

.river-annotation {
  position: absolute;
  max-width: 240px;
  background: rgba(249, 242, 223, 0.85);
  padding: 14px 18px;
  border-left: 2px solid var(--burnt-honey);
  z-index: 3;
  box-shadow: 2px 3px 0 rgba(122, 93, 46, 0.08);
}

.river-anno-1 { top: 200px;  left: 8%; transform: rotate(-1deg); }
.river-anno-2 { top: 600px;  right: 6%; transform: rotate(0.8deg); }
.river-anno-3 { top: 1020px; left: 4%; transform: rotate(-0.6deg); }

.anno-roman {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 32px;
  color: var(--burnt-honey);
  line-height: 1;
  margin-bottom: 4px;
}

.anno-text {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--steeped-tea);
}

/* =====================================================
   PLATE IV — Field Notes
   ===================================================== */
.field-spread {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr;
  gap: 32px;
  align-items: start;
  max-width: var(--col-plate);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.field-margin {
  transform: rotate(-0.6deg);
  padding-top: 20px;
  will-change: transform;
}

.margin-note {
  font-family: "Caveat", cursive;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  color: var(--walnut-bark);
  margin-bottom: 36px;
  position: relative;
  padding-left: 14px;
  border-left: 1px solid rgba(122, 93, 46, 0.3);
}

.margin-note-a { transform: rotate(-1deg); }
.margin-note-b { transform: rotate(0.5deg); margin-left: 14px; }
.margin-note-c { transform: rotate(-0.4deg); }
.margin-note-d { transform: rotate(0.8deg); margin-left: 8px; }

.pressed-leaf {
  width: 84px;
  height: 84px;
  margin-top: 40px;
  align-self: start;
  will-change: transform;
  animation: leafSpin 60s linear infinite;
}

@keyframes leafSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.field-body {
  transform: rotate(0.4deg);
  padding-top: 8px;
  will-change: transform;
}

.field-body p {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 17px;
  line-height: 30px;
  color: var(--steeped-tea);
  margin-bottom: 22px;
  text-align: left;
}

.drop-cap {
  position: relative;
}

.drop {
  float: left;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 64px;
  line-height: 0.85;
  color: var(--burnt-honey);
  padding: 6px 10px 0 0;
}

.field-body em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--walnut-bark);
}

/* =====================================================
   PLATE V — Star Index
   ===================================================== */
.star-chart-stage {
  max-width: var(--col-body);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.star-chart {
  width: min(540px, 92vw);
  height: min(540px, 92vw);
  overflow: visible;
}

.star-group {
  transform-origin: 270px 270px;
  animation: chartRotate 200s linear infinite;
  will-change: transform;
}

@keyframes chartRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.star-chart .star-dot {
  fill: var(--walnut-bark);
  cursor: default;
  transition: transform 0.5s var(--spring-fast), fill 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.star-chart .star-dot.is-active {
  fill: var(--dusk-lake);
  transform: scale(1.8);
}

.lines-container path {
  stroke: var(--dusk-lake);
  stroke-width: 0.7;
  fill: none;
  opacity: 0.85;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.32s var(--spring-soft), opacity 0.32s ease;
}

.lines-container path.is-drawn {
  stroke-dashoffset: 0;
}

.cursor-glow {
  pointer-events: none;
  transition: opacity 0.4s ease, cx 0.3s var(--spring-fast), cy 0.3s var(--spring-fast);
  filter: blur(4px);
}

.chart-caption {
  margin-top: 24px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--steeped-tea);
}

/* =====================================================
   PLATE VI — Ephemera Drawer
   ===================================================== */
.ephemera-stage {
  position: relative;
  max-width: var(--col-plate);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 28px;
  padding: 0 24px;
  z-index: 2;
}

.ephemera-card {
  position: relative;
  background: var(--linen-page);
  padding: 18px;
  box-shadow:
    2px 4px 0 rgba(122, 93, 46, 0.1),
    4px 8px 14px rgba(122, 93, 46, 0.08);
  will-change: transform;
  transition: transform 0.5s var(--spring-fast);
}

.ephemera-card::before {
  /* Halftone texture overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 151, 74, 0.18) 0.6px, transparent 0.9px);
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.55;
}

.ephemera-card > * {
  position: relative;
  z-index: 1;
}

/* Paper-tape pins */
.paper-tape {
  position: absolute;
  width: 70px;
  height: 22px;
  background: rgba(233, 210, 154, 0.85);
  border: 1px dashed rgba(122, 93, 46, 0.25);
  box-shadow: 0 2px 3px rgba(122, 93, 46, 0.12);
  z-index: 3;
  pointer-events: none;
}

.paper-tape-tl { top: -10px; left: -16px; transform: rotate(-12deg); }
.paper-tape-tr { top: -10px; right: -16px; transform: rotate(10deg); }
.paper-tape-br { bottom: -10px; right: -14px; transform: rotate(8deg); }
.paper-tape-top { top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* Postcard */
.postcard {
  padding: 14px;
}

.postcard-art svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(122, 93, 46, 0.2);
  margin-bottom: 12px;
}

.postcard-line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--walnut-bark);
  text-align: center;
  margin-bottom: 6px;
}

.postcard-meta {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steeped-tea);
  text-align: center;
}

/* Paddle tag */
.paddle-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 18px;
  max-width: 180px;
  justify-self: center;
}

.tag-paddle {
  width: 36px;
  height: 130px;
}

.tag-text {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut-bark);
  text-align: center;
  line-height: 1.6;
}

.tag-text span {
  font-family: "Caveat", cursive;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--steeped-tea);
}

/* Leaf card */
.leaf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px;
  max-width: 220px;
  justify-self: center;
}

.leaf-card-svg {
  width: 88px;
  height: 88px;
  margin-bottom: 10px;
}

.leaf-card-caption {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--steeped-tea);
  text-align: center;
}

/* Receipt */
.receipt {
  padding: 18px 22px;
  background: var(--linen-page);
  font-family: "Hanken Grotesk", sans-serif;
}

.receipt-head {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut-bark);
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(122, 93, 46, 0.35);
  padding-bottom: 8px;
}

.receipt-list {
  list-style: none;
  margin-bottom: 12px;
}

.receipt-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 22px;
  color: var(--steeped-tea);
  border-bottom: 1px dotted rgba(122, 93, 46, 0.18);
  padding: 2px 0;
}

.receipt-foot {
  font-family: "Caveat", cursive;
  font-size: 16px;
  color: var(--walnut-bark);
  text-align: right;
}

/* =====================================================
   PLATE VII — Colophon Lake
   ===================================================== */
.plate-vii {
  background: linear-gradient(180deg, var(--tallow-cream) 0%, var(--milled-honey) 30%, var(--burnt-honey) 65%, var(--steeped-tea) 100%);
  margin-top: 4vh;
  border-radius: 0;
  position: relative;
}

.plate-vii .plate-watermark {
  color: var(--linen-page);
  opacity: 0.18;
}

.plate-vii .plate-eyebrow,
.plate-vii .plate-subtitle {
  color: var(--linen-page);
  opacity: 0.85;
}

.plate-vii .plate-title {
  color: var(--linen-page);
  text-shadow: 1px 1px 0 rgba(59, 47, 30, 0.4);
}

.lake-stage {
  position: relative;
  max-width: var(--col-plate);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 80vh;
}

.lake-sky {
  position: relative;
  height: 220px;
  width: 100%;
}

.lake-sky .ls-star,
.lake-reflection .ls-star {
  position: absolute;
  pointer-events: none;
  fill: var(--linen-mist);
}

.waterline {
  position: relative;
  width: 100%;
  height: 24px;
  margin: 12px 0 0;
}

.waterline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.buoy {
  position: absolute;
  top: 240px;
  left: 50%;
  width: 64px;
  height: 90px;
  transform: translateX(-50%);
  will-change: transform;
  z-index: 4;
  filter: drop-shadow(0 4px 4px rgba(59, 47, 30, 0.35));
}

.lake-reflection {
  position: relative;
  height: 220px;
  width: 100%;
  transform: scaleY(-1);
  opacity: 0.32;
  filter: blur(0.6px);
  margin-bottom: 30px;
}

.colophon {
  text-align: center;
  max-width: 540px;
  margin: 40px auto 30px;
  padding-bottom: 40px;
}

.colophon-line {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--linen-page);
  margin-bottom: 8px;
  opacity: 0.9;
}

.colophon-line-end {
  margin-top: 22px;
  font-family: "Fraunces", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--linen-mist);
}

.colophon-paddle {
  width: 22px;
  height: 76px;
  margin: 20px auto 4px;
  display: block;
  opacity: 0.85;
}

.colophon-paddle path,
.colophon-paddle ellipse,
.colophon-paddle line {
  stroke: var(--linen-page);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
  .ephemera-stage {
    grid-template-columns: repeat(2, 1fr);
  }
  .plate-watermark {
    font-size: 180px;
    left: -1vw;
  }
  .field-spread {
    grid-template-columns: 1fr;
  }
  .field-margin {
    transform: none;
    order: 2;
  }
  .pressed-leaf {
    display: none;
  }
  .field-body {
    transform: none;
  }
  .paddle-masthead {
    width: 44px;
    height: 200px;
    right: 2%;
  }
}

@media (max-width: 600px) {
  .ephemera-stage {
    grid-template-columns: 1fr;
  }
  .index-item {
    grid-template-columns: 60px 1fr 50px;
    gap: 12px;
  }
  .index-numeral {
    font-size: 42px;
  }
  .index-name {
    font-size: 18px;
  }
  .river-stage {
    min-height: 900px;
  }
  .river-svg {
    height: 1100px;
  }
  .river-annotation {
    max-width: 200px;
    padding: 10px 14px;
  }
  .plate-watermark {
    font-size: 120px;
  }
  .paddle-masthead {
    display: none;
  }
}
