/* ============================================================
   GGIGGL.com — hand-drawn dopamine clubhouse
   palette:
     #FFF6E4  paper cream
     #1B1A2E  ink midnight
     #FF3D7F  bubblegum shock
     #00E0B8  mint zap
     #FFD400  highlighter sun
     #7C3CFF  grape buzz
     #FF8A3D  tangerine pop
   typography (all Google Fonts, handwritten only — no sans-serif):
     Caveat Brush          display headline
     Shadows Into Light Two secondary handwriting / nav
     Patrick Hand           body
     Reenie Beanie          footnotes / "this one"
     Gloria Hallelujah      emergency form-input neutral
   ============================================================ */

:root {
    --cream:      #FFF6E4;
    --ink:        #1B1A2E;
    --bubblegum:  #FF3D7F;
    --mint:       #00E0B8;
    --highlight:  #FFD400;
    --grape:      #7C3CFF;
    --tangerine:  #FF8A3D;

    --font-display:  "Caveat Brush", "Patrick Hand", cursive;
    --font-second:   "Shadows Into Light Two", "Patrick Hand", cursive;
    --font-body:     "Patrick Hand", "Shadows Into Light Two", cursive;
    --font-foot:     "Reenie Beanie", "Patrick Hand", cursive;
    --font-form:     "Gloria Hallelujah", "Patrick Hand", cursive;

    --wobble-ease:   cubic-bezier(.34, 1.56, .64, 1);
}

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

html, body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }
body { cursor: crosshair; }

/* svg defs container — invisible */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
   PAPER GRAIN OVERLAY
   ============================================================ */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-radial-gradient(circle at 15% 30%, rgba(27,26,46,0.018) 0 1px, transparent 1px 4px),
        repeating-radial-gradient(circle at 85% 70%, rgba(27,26,46,0.022) 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at 30% 0%, rgba(255, 138, 61, 0.04), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 61, 127, 0.03), transparent 60%);
    mix-blend-mode: multiply;
}

/* ============================================================
   CURSOR INK TRAIL
   ============================================================ */
.ink-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: transform 80ms linear, opacity 220ms ease-out;
    mix-blend-mode: multiply;
}
.ink-dot-1 { background: var(--ink);       width: 7px; height: 7px; }
.ink-dot-2 { background: var(--bubblegum); width: 5px; height: 5px; transition-duration: 150ms; opacity: 0; }
.ink-dot-3 { background: var(--grape);     width: 3.5px; height: 3.5px; transition-duration: 220ms; opacity: 0; }

body.has-cursor .ink-dot-1 { opacity: 0.62; }
body.has-cursor .ink-dot-2 { opacity: 0.42; }
body.has-cursor .ink-dot-3 { opacity: 0.28; }

/* ============================================================
   RIBBON NAVIGATION (right edge, hand-drawn snake)
   ============================================================ */
.ribbon-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
}

.ribbon-nav svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: url(#ink-rough);
}

.ribbon-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-ribbon 1.2s ease-out 0.2s forwards;
    opacity: 0.95;
}

.ribbon-stitch {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-ribbon 1.6s ease-out 0.6s forwards;
}

@keyframes draw-ribbon {
    to { stroke-dashoffset: 0; }
}

.ribbon-label {
    font-family: var(--font-second);
    font-size: 14px;
    fill: var(--ink);
    letter-spacing: 0.04em;
    opacity: 0;
    animation: ribbon-label-in 0.6s ease-out 1.3s forwards;
}

@keyframes ribbon-label-in {
    to { opacity: 0.92; }
}

/* ============================================================
   SCROLL SKETCHBOOK CONTAINER
   ============================================================ */
.scroll-sketchbook {
    position: relative;
    z-index: 2;
    padding-right: 70px;
}

/* ============================================================
   SPREAD (each section)
   ============================================================ */
.spread {
    position: relative;
    min-height: 100vh;
    padding: 6rem 8vw 8rem;
    overflow: hidden;
    isolation: isolate;
}

.section-eyebrow {
    font-family: var(--font-second);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    color: var(--ink);
    transform: rotate(-2.4deg);
    margin-bottom: 2.4rem;
    display: inline-block;
}

/* ============================================================
   DIVIDERS (hand-drawn diagonal SVG paths, never clip-path)
   ============================================================ */
.divider {
    position: relative;
    width: 100%;
    height: 80px;
    margin-top: -40px;
    margin-bottom: -40px;
    z-index: 5;
    pointer-events: none;
}
.divider svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.divider .divider-line {
    filter: url(#ink-rough);
}

/* ============================================================
   SECTION 1: COVER SPREAD
   ============================================================ */
.spread-cover {
    background: var(--cream);
    min-height: 100vh;
    padding-top: 8vh;
    transform: rotate(-1deg);
}

.cover-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
    padding-left: 4vw;
}

.cover-word {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 0.86;
    letter-spacing: -0.02em;
    display: inline-block;
    transform-origin: left center;
}

.cover-word-1 {
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--bubblegum);
    transform: rotate(-3deg) skewX(-4deg);
    opacity: 0.84;
}
.cover-word-2 {
    font-size: clamp(4rem, 9vw, 8rem);
    color: var(--ink);
    transform: rotate(2deg);
    margin-left: 3vw;
}
.cover-word-3 {
    font-size: clamp(3.4rem, 6vw, 5.4rem);
    color: var(--mint);
    transform: rotate(-5deg) skewY(-2deg);
    margin-left: -2vw;
    opacity: 0.78;
}
.cover-word-4 {
    font-size: clamp(3.8rem, 7vw, 6.4rem);
    color: var(--grape);
    transform: rotate(4deg);
    margin-left: 6vw;
}
.cover-word-5 {
    position: relative;
    font-size: clamp(4rem, 11vw, 11rem);
    color: var(--ink);
    transform: rotate(-1deg);
    margin-left: 1vw;
    padding: 0.05em 0.18em;
    display: inline-block;
}

.circle-lasso {
    position: absolute;
    top: 50%; left: 50%;
    width: 110%;
    height: 130%;
    transform: translate(-50%, -50%) rotate(-3deg);
    pointer-events: none;
    overflow: visible;
    filter: url(#ink-rough);
}
.circle-lasso path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-lasso 1.4s ease-out 1.2s forwards;
}
@keyframes draw-lasso {
    to { stroke-dashoffset: 0; }
}

.cover-pointer {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-foot);
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    color: var(--ink);
    transform: rotate(-2deg);
    margin-top: 1rem;
    margin-left: 28vw;
}
.cover-pointer svg {
    width: 110px;
    height: 50px;
    overflow: visible;
}
.cover-pointer em {
    font-style: normal;
    color: var(--ink);
}

/* ============================================================
   MARGINALIA (asides, scribbles, decoration)
   ============================================================ */
.margin-aside {
    position: absolute;
    font-family: var(--font-foot);
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.3;
    opacity: 0.84;
    pointer-events: none;
}

.aside-top-right     { top: 8%;  right: 6vw;  transform: rotate(6deg);  color: var(--tangerine); }
.aside-bot-left      { bottom: 8%; left: 6vw; transform: rotate(-4deg); color: var(--bubblegum); font-size: 1.6rem; }
.aside-premise-right { top: 30%; right: 5vw; transform: rotate(4deg);  color: var(--tangerine); display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.aside-premise-right svg { width: 80px; height: 50px; overflow: visible; }
.aside-cards-bot     { bottom: 6%; right: 8vw; transform: rotate(-5deg); color: var(--grape); text-align: right; }
.aside-cards-bot svg { width: 56px; height: 36px; overflow: visible; margin-top: 0.2rem; }
.aside-garden        { top: 14%; right: 8vw; transform: rotate(3deg); color: var(--cream); font-size: 1.4rem; }
.aside-notes-right   { top: 20%; right: 4vw; transform: rotate(5deg); color: var(--bubblegum); text-align: right; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.aside-notes-right svg { width: 56px; height: 44px; overflow: visible; }

/* ============================================================
   WASHI TAPE
   ============================================================ */
.washi {
    position: absolute;
    height: 36px;
    width: 130px;
    background: var(--highlight);
    opacity: 0.62;
    border-radius: 1px;
    mix-blend-mode: multiply;
    pointer-events: none;
    box-shadow: inset 0 -2px 0 rgba(27,26,46,0.06);
}
.washi-1 { top: 4%; left: 14%; transform: rotate(-22deg); }
.washi-2 { bottom: 20%; right: 18%; transform: rotate(12deg); background: var(--bubblegum); opacity: 0.42; }

.washi-yellow { background: var(--highlight); opacity: 0.55; }
.washi-pink   { background: var(--bubblegum); opacity: 0.42; }
.washi-pin-tl { position: absolute; top: -18px; left: -14px; width: 110px; height: 28px; transform: rotate(-16deg); }
.washi-pin-br { position: absolute; bottom: -16px; right: -18px; width: 130px; height: 32px; transform: rotate(8deg); }

/* ============================================================
   SECTION 2: PREMISE
   ============================================================ */
.spread-premise {
    background: var(--cream);
    transform: rotate(1deg);
    margin-top: -2vh;
}

.premise-pinned {
    position: relative;
    max-width: 760px;
    margin: 6vh auto 0;
    padding: 3rem 3rem 3rem;
    background: rgba(255, 246, 228, 0.6);
    border: 1.5px dashed rgba(27,26,46,0.3);
    border-radius: 4px;
    transform: rotate(-2deg);
}

.premise-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 1.6rem;
    transform: rotate(-1deg);
}

.strike-mark {
    position: relative;
    color: rgba(27,26,46,0.45);
    text-decoration: line-through;
    text-decoration-color: var(--bubblegum);
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
    margin-right: 0.2em;
}

.circled-word {
    position: relative;
    display: inline-block;
    padding: 0 0.4em;
    color: var(--ink);
}
.circled-word::before {
    content: "";
    position: absolute;
    inset: -8% -6%;
    border: 3px solid var(--bubblegum);
    border-radius: 50%;
    transform: rotate(-3deg) scaleY(0.85) scaleX(1.08);
    pointer-events: none;
}

.premise-body {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.premise-body-counter {
    transform: rotate(0.6deg);
    padding-left: 1rem;
}
.premise-body .hi-mark,
mark.hi-mark {
    background: linear-gradient(180deg, transparent 50%, rgba(255, 212, 0, 0.7) 50% 92%, transparent 92%);
    padding: 0 0.15em;
    color: var(--ink);
    mix-blend-mode: multiply;
}

.footnote {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-foot);
    color: var(--tangerine);
    font-size: 1rem;
    transform: rotate(-1deg);
}

/* ============================================================
   SECTION 3: CARDS (3 leaf-shaped, dealt diagonal)
   ============================================================ */
.spread-cards {
    background: var(--cream);
    transform: rotate(-0.6deg);
    padding-top: 8rem;
}

.card-deck {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 4rem auto;
    max-width: 1100px;
}

.leaf-card {
    position: relative;
    width: 280px;
    height: 360px;
    transition: transform 360ms var(--wobble-ease);
}

.leaf-card-1 { transform: rotate(-6deg) translateY(10px); }
.leaf-card-2 { transform: rotate(2deg)  translateY(-30px); }
.leaf-card-3 { transform: rotate(7deg)  translateY(20px); }

.leaf-card:hover, .leaf-card.is-lifted {
    transform: rotate(0deg) translateY(-12px) scale(1.04);
    z-index: 10;
}

.leaf-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(4px 6px 0 rgba(27, 26, 46, 0.18));
}

.leaf-card-inner {
    position: absolute;
    inset: 0;
    padding: 6rem 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.leaf-card-inner h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.leaf-card-inner p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.4;
}

/* ============================================================
   SECTION 4: LEAF GARDEN (gradient mesh canvas)
   ============================================================ */
.spread-garden {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    transform: rotate(1.4deg);
    padding-top: 8rem;
    padding-bottom: 14rem;
    overflow: hidden;
    min-height: 110vh;
}

.mesh-canvas {
    position: absolute;
    inset: -10%;
    z-index: 0;
    overflow: hidden;
}

.mesh-layer {
    position: absolute;
    inset: -10%;
    will-change: transform;
}

.mesh-a {
    background: radial-gradient(circle at 25% 30%, rgba(124, 60, 255, 0.78), transparent 55%),
                radial-gradient(circle at 80% 60%, rgba(255, 61, 127, 0.68), transparent 60%);
    filter: blur(80px);
    mix-blend-mode: screen;
    animation: mesh-drift-a 60s ease-in-out infinite alternate;
}

.mesh-b {
    background: radial-gradient(circle at 70% 20%, rgba(0, 224, 184, 0.62), transparent 55%),
                radial-gradient(circle at 30% 80%, rgba(255, 212, 0, 0.5), transparent 60%);
    filter: blur(90px);
    mix-blend-mode: screen;
    animation: mesh-drift-b 60s ease-in-out infinite alternate;
}

.mesh-c {
    background: conic-gradient(from 30deg at 50% 50%, rgba(255, 138, 61, 0.45), rgba(124, 60, 255, 0.4), rgba(0, 224, 184, 0.4), rgba(255, 138, 61, 0.45));
    filter: blur(120px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: mesh-rotate 90s linear infinite;
}

.mesh-grain {
    position: absolute;
    inset: 0;
    background-image:
        repeating-radial-gradient(circle at 22% 18%, rgba(255,246,228,0.04) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 78% 82%, rgba(255,246,228,0.05) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
    opacity: 0.7;
}

@keyframes mesh-drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(6%, 4%) scale(1.05); }
}
@keyframes mesh-drift-b {
    from { transform: translate(0, 0) scale(1.04); }
    to   { transform: translate(-5%, -3%) scale(1); }
}
@keyframes mesh-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.garden-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(4rem, 11vw, 11rem);
    line-height: 0.86;
    color: var(--cream);
    transform: rotate(-3deg);
    margin-bottom: 4rem;
    text-shadow: 4px 4px 0 rgba(255, 61, 127, 0.4);
}

.leaf-field {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
}

.garden-leaf {
    width: 100%;
    max-width: 220px;
    height: auto;
    overflow: visible;
    transform-origin: bottom center;
    opacity: 0;
    transform: scale(0.55) rotate(-6deg);
    transition: opacity 800ms ease-out, transform 1100ms var(--wobble-ease);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
}

.garden-leaf-1 { transform-origin: bottom left;  transform: scale(0.5) rotate(-12deg); }
.garden-leaf-2 { transform-origin: bottom center; transform: scale(0.55) rotate(4deg); }
.garden-leaf-3 { transform-origin: bottom right; transform: scale(0.5) rotate(8deg); }
.garden-leaf-4 { transform-origin: bottom center; transform: scale(0.55) rotate(-6deg); }
.garden-leaf-5 { transform-origin: bottom left;  transform: scale(0.5) rotate(10deg); }

.garden-leaf.is-grown {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.garden-leaf-1.is-grown { transform: scale(1) rotate(-4deg); }
.garden-leaf-2.is-grown { transform: scale(1.05) rotate(1deg); }
.garden-leaf-3.is-grown { transform: scale(1.05) rotate(3deg); }
.garden-leaf-4.is-grown { transform: scale(1) rotate(-2deg); }
.garden-leaf-5.is-grown { transform: scale(1.05) rotate(4deg); }

/* veins draw themselves via stroke-dashoffset */
.leaf-vein {
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    transition: stroke-dashoffset 1600ms ease-out;
}
.garden-leaf.is-grown .leaf-vein {
    stroke-dashoffset: 0;
}

/* hover: leaf vein color flashes grape */
.garden-leaf:hover .leaf-vein {
    stroke: var(--grape);
}

/* ============================================================
   SECTION 5: FIELD NOTES (progressive disclosure)
   ============================================================ */
.spread-notes {
    background: var(--cream);
    transform: rotate(-1.4deg);
    padding-top: 8rem;
}

.notes-list {
    list-style: none;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.note-entry {
    position: relative;
    padding: 1rem 1.2rem 1rem 5.4rem;
    border-left: 3px dashed rgba(27,26,46,0.25);
    transform: rotate(-0.6deg);
    outline: none;
    cursor: pointer;
}
.note-entry:nth-child(even) { transform: rotate(0.8deg); padding-left: 6rem; }
.note-entry:nth-child(3n)   { transform: rotate(-1.2deg); }

.note-entry::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 1.2rem;
    width: 14px;
    height: 14px;
    background: var(--bubblegum);
    border-radius: 50%;
    border: 2px solid var(--ink);
    transform: rotate(-12deg);
}
.note-entry:nth-child(2)::before { background: var(--mint); }
.note-entry:nth-child(3)::before { background: var(--highlight); }
.note-entry:nth-child(4)::before { background: var(--grape); }
.note-entry:nth-child(5)::before { background: var(--tangerine); }

.note-date {
    position: absolute;
    left: 1.6rem;
    top: 1rem;
    font-family: var(--font-foot);
    color: var(--tangerine);
    font-size: 1rem;
    transform: rotate(-2deg);
}

.note-text {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--ink);
    line-height: 1.5;
}

.hidden-tail {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
    color: var(--grape);
    transition: max-width 600ms var(--wobble-ease), color 300ms ease-out;
}
.note-entry:hover .hidden-tail,
.note-entry:focus-within .hidden-tail,
.note-entry:focus .hidden-tail,
.note-entry.is-revealed .hidden-tail {
    max-width: 60ch;
    color: var(--ink);
}

/* ============================================================
   SECTION 6: MARGIN SCRIBBLES (deliberately chaotic)
   ============================================================ */
.spread-scribbles {
    position: relative;
    background: var(--cream);
    transform: rotate(0.8deg);
    min-height: 90vh;
    padding-top: 8rem;
    padding-bottom: 10rem;
}

.scribbles-eyebrow {
    color: var(--grape);
}

.scribble {
    position: absolute;
    font-family: var(--font-foot);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1.3;
}

.scribble-1 {
    top: 14%;
    left: 8%;
    width: 280px;
    transform: rotate(-7deg);
    color: var(--ink);
}
.scribble-1 svg {
    width: 110px;
    height: 50px;
    overflow: visible;
    display: block;
    margin-top: 0.6rem;
}

.scribble-2 {
    top: 24%;
    right: 14%;
    transform: rotate(8deg);
    width: 200px;
    text-align: center;
}
.scribble-2 svg { width: 80px; height: 80px; display: block; margin: 0 auto; }
.scribble-2 em { font-style: normal; color: var(--tangerine); font-size: 1.1rem; }

.scribble-3 {
    top: 48%;
    left: 22%;
    transform: rotate(-3deg);
    font-size: 1.5rem;
    color: var(--bubblegum);
}
.scribble-3 .strike-mark {
    color: rgba(27,26,46,0.55);
    text-decoration-color: var(--bubblegum);
}

.scribble-4 {
    top: 56%;
    right: 8%;
    transform: rotate(6deg);
    width: 240px;
    text-align: right;
}
.scribble-4 svg { width: 180px; height: 60px; overflow: visible; display: block; margin-left: auto; }
.scribble-4 .scribble-label { color: var(--mint); font-size: 1.1rem; }

.scribble-5 {
    bottom: 16%;
    left: 14%;
    transform: rotate(-5deg);
    width: 280px;
    color: var(--ink);
    font-size: 1.3rem;
}

.scribble-6 {
    bottom: 22%;
    right: 24%;
    transform: rotate(4deg);
    color: var(--grape);
    font-size: 1.5rem;
    text-align: center;
}
.scribble-6 em { font-style: normal; color: var(--tangerine); font-size: 1.1rem; }
.scribble-6 .circled-word { margin: 0 0.3rem; }

.coffee-ring {
    position: absolute;
    bottom: 6%;
    right: 6%;
    width: 220px;
    height: 220px;
    pointer-events: none;
    filter: url(#ink-rough);
    opacity: 0.7;
}
.coffee-ring svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ============================================================
   SECTION 7: SIGN-OFF
   ============================================================ */
.spread-signoff {
    background: var(--cream);
    transform: rotate(-0.4deg);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 14vh;
}

.signoff-letter {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    color: var(--ink);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 3.6rem;
    transform: rotate(-1deg);
}

.signoff-signature {
    display: inline-flex;
    align-items: flex-end;
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 0.9;
    gap: 0.04em;
    transform: rotate(-3deg);
}

.sig-letter {
    font-size: clamp(5rem, 14vw, 13rem);
    display: inline-block;
}
.sig-letter:nth-child(1) { transform: rotate(-3deg); color: var(--ink); }
.sig-letter:nth-child(2) { transform: rotate(2deg);  color: var(--ink); }
.sig-letter:nth-child(3) { transform: rotate(-1deg); color: var(--ink); position: relative; }
.sig-letter:nth-child(4) { transform: rotate(3deg);  color: var(--ink); }
.sig-letter:nth-child(5) { transform: rotate(-2deg); color: var(--ink); }
.sig-letter:nth-child(6) { transform: rotate(1deg);  color: var(--ink); }

.sig-i {
    position: relative;
    color: transparent !important;
    width: 0.5em;
    overflow: visible;
}
.sig-i::after {
    content: "i";
    position: absolute;
    left: 0;
    bottom: 0;
    color: var(--ink);
    transform: translateX(20%);
}

.sig-leaf-dot {
    position: absolute;
    top: -0.18em;
    left: 50%;
    width: 0.45em;
    height: 0.55em;
    transform: translateX(-50%) rotate(-12deg);
    overflow: visible;
    filter: drop-shadow(2px 2px 0 rgba(27,26,46,0.15));
}

.signoff-postscript {
    margin-top: 3rem;
    font-family: var(--font-foot);
    color: var(--tangerine);
    font-size: 1.3rem;
    transform: rotate(1deg);
}
.signoff-postscript em { color: var(--ink); }

/* ============================================================
   WOBBLY UNDERLINES on links (none in design, but safe)
   ============================================================ */
a {
    color: var(--ink);
    text-decoration: underline wavy var(--bubblegum) 2px;
    text-underline-offset: 4px;
}
a:hover {
    color: var(--bubblegum);
}

/* form inputs (none in design but use Gloria Hallelujah per spec) */
input, textarea, button, select {
    font-family: var(--font-form);
    font-size: 1rem;
    background: var(--cream);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
    .scroll-sketchbook { padding-right: 50px; }
    .ribbon-nav { width: 70px; }
    .ribbon-label { font-size: 11px !important; }
    .spread { padding: 5rem 6vw 6rem; }
    .cover-pointer { margin-left: 12vw; }
    .leaf-card { width: 240px; height: 320px; }
    .leaf-card-inner { padding: 5rem 1.6rem 1.6rem; }
    .premise-pinned { padding: 2rem 1.4rem; }
    .scribble { font-size: 1.15rem; }
    .scribble-1 { width: 220px; left: 4%; top: 12%; }
    .scribble-2 { right: 4%; top: 26%; }
    .scribble-3 { left: 8%; top: 50%; }
    .scribble-4 { right: 4%; top: 62%; width: 200px; }
    .scribble-5 { left: 4%; bottom: 18%; width: 220px; }
    .scribble-6 { right: 6%; bottom: 26%; }
    .coffee-ring { width: 150px; height: 150px; bottom: 4%; right: 4%; }
}

@media (max-width: 560px) {
    body { font-size: 17px; }
    .spread { padding: 4rem 5vw 5rem; }
    .cover-pointer svg { width: 80px; }
    .leaf-field { gap: 1rem; }
    .garden-leaf { max-width: 150px; }
    .ribbon-nav { width: 56px; }
    .scribbles-eyebrow { font-size: 1.4rem; }
    .signoff-signature { transform: rotate(-3deg) scale(0.85); }
}

/* ============================================================
   REDUCED MOTION — freeze drift, keep wobble
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .ribbon-path, .ribbon-stitch, .circle-lasso path { stroke-dashoffset: 0 !important; }
    .ribbon-label { opacity: 0.92 !important; }
    .mesh-a, .mesh-b, .mesh-c { animation: none !important; }
    .garden-leaf { opacity: 1 !important; transform: scale(1) rotate(0) !important; }
    .leaf-vein { stroke-dashoffset: 0 !important; }
}
