/* Drawn Together (working name "The Sketch", LOCAL DRAFT 2026-11-13) — the line-drawing layer over the gatefold engine.
   Scoped to html[data-gf="sketch"] / .sk-on; the engine's own hero stays underneath (never seen). site/sketch/sketch.js */
html[data-gf="sketch"] { --sk-ink: var(--ink); }
html[data-gf="sketch"] body { background: var(--table); }
/* ── the hero layer ── */
.sk-on .hero { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.sk { position: absolute; inset: 0; z-index: 6; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; color: var(--ink); }
.sk::after { content: ''; position: absolute; inset: 0; pointer-events: none; /* a soft vignette, like light falling on a card */
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, color-mix(in srgb, var(--ink) 7%, transparent)); }
.sk.open { cursor: default; }
.sk.done, .sk.open { pointer-events: none; }
.sk canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.sk .sk-sprig { left: 50%; width: auto; transform: translateX(-50%); opacity: 0; transition: opacity .9s ease .1s, transform .7s cubic-bezier(.4, 0, .2, 1); }
.sk.ready .sk-sprig { opacity: 1; }
.sk.open .sk-sprig { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.94); transition: opacity .45s ease, transform .6s ease; }
.sk-k { position: absolute; left: 0; right: 0; top: 0; text-align: center; font: 500 13px/1 var(--serif); letter-spacing: .42em; padding-left: .42em;
  text-transform: uppercase; color: var(--ink); transform: translateY(var(--y-closed, 50vh)); opacity: 0;
  transition: transform 1s cubic-bezier(.55, 0, .2, 1) .05s, font-size 1s cubic-bezier(.55, 0, .2, 1) .05s, opacity .8s ease .25s; }
.sk.ready .sk-k { opacity: .92; }
/* on the tap the caps fade out where they are and fade back in at the top — they never travel through the drawing (round 5) */
.sk.open .sk-k { transform: translateY(var(--y-open, 60px)); font-size: 12px; opacity: .85; transition: none; animation: skKick 1.3s ease both; }
@keyframes skKick { 0% { transform: translateY(var(--y-closed)); font-size: 13px; opacity: .92; } 16% { transform: translateY(var(--y-closed)); font-size: 13px; opacity: 0; }
  17% { transform: translateY(var(--y-open)); font-size: 12px; opacity: 0; } 30% { transform: translateY(var(--y-open)); font-size: 12px; opacity: 0; } 100% { transform: translateY(var(--y-open)); font-size: 12px; opacity: .85; } }
.sk.instant .sk-k { animation: none; }
.sk:not(.open) .sk-names { visibility: hidden; } /* the names are written on after the tap; before it they are not there at all */
.sk-rule { position: absolute; left: 50%; width: 46px; height: 1px; margin-left: -23px; background: var(--ink); opacity: 0; transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.3, 0, .2, 1) .5s, opacity .6s ease .5s; }
.sk.ready .sk-rule { opacity: .45; transform: none; }
.sk.open .sk-rule { opacity: 0; transition: opacity .3s; }
/* watercolour washes (sketch.js + wash.js): rasterised once into canvases under the ink; each blooms in like wet paint spreading —
   it fades up from a soft blur while it grows a little (compositor-only: opacity, transform, filter — no repaints) */
.sk-wash { position: absolute; pointer-events: none; }
.sk-wash .w, .sk-vw .w { position: absolute; max-width: none; mix-blend-mode: multiply; opacity: 0; pointer-events: none; transform: scale(.9);
  will-change: opacity, transform; transition: opacity 1.3s cubic-bezier(.3, .2, .3, 1), transform 1.9s cubic-bezier(.2, .6, .3, 1); }
.sk-wash .w.on, .sk-vw .w.on { opacity: 1; transform: none; }
.sk.instant .sk-wash .w, .sk.instant .sk-wash .w.on { transition: none; }
.sk .sk-sprig-w { position: absolute; left: 50%; mix-blend-mode: multiply; opacity: 0; transition: opacity 1.4s ease .9s; pointer-events: none; }
.sk.ready .sk-sprig-w { opacity: 1; }
.sk.open .sk-sprig-w { opacity: 0; transition: opacity .45s ease; }
.sk-vw { position: absolute; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sk-wash .w, .sk-vw .w { transition: none; } }
/* names: written on by a moving mask (sketch.js) */
.sk-names { position: absolute; left: 4%; right: 4%; text-align: center; font-family: 'Parisienne', cursive; line-height: 1.22; color: var(--ink);
  pointer-events: none; }
.sk-names .l { display: block; white-space: nowrap; width: max-content; margin: 0 auto; padding: 0 .35em; -webkit-mask-image: linear-gradient(90deg, #000 -60px, transparent -20px); mask-image: linear-gradient(90deg, #000 -60px, transparent -20px); }
.sk-names.wrap .l { white-space: normal; width: auto; }
.sk-names i { font-style: normal; font-size: .8em; padding: 0 .08em; }
.sk-date { position: absolute; left: 0; right: 0; }
.sk-city { position: absolute; left: 6%; right: 6%; text-align: center; font: 500 11.5px/1.3 var(--serif); letter-spacing: .34em; padding-left: .34em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity 1s ease, transform 1s ease; }
.sk.city .sk-city { opacity: .78; transform: none; }
/* the tap hint: an ink ring that keeps redrawing itself round a dot */
.sk-hint { position: absolute; left: 50%; bottom: calc(9% + env(safe-area-inset-bottom) * .5); transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 10px; background: none; border: 0; padding: 8px 16px; color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .8s ease .9s; }
.sk.ready .sk-hint { opacity: 1; }
.sk.open .sk-hint { opacity: 0; transition: opacity .3s; }
.sk-ring { position: relative; width: 44px; height: 44px; }
.sk-ring svg { width: 100%; height: 100%; overflow: visible; }
.sk-ring path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8;
  animation: skRing 2.8s cubic-bezier(.45, 0, .25, 1) 1.2s infinite; }
.sk-ring i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--ink); opacity: .75;
  animation: skDot 2.8s ease-in-out 1.2s infinite; }
@keyframes skRing { 0% { stroke-dashoffset: 1; opacity: .8; } 55% { stroke-dashoffset: 0; opacity: .8; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes skDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.sk-ht { font: 600 11px/1 var(--serif); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; opacity: .82; white-space: nowrap; }
.sk-ht small { display: block; margin-top: 7px; font-size: .82em; letter-spacing: .26em; opacity: .78; text-align: center; } /* English + Spanish: the Spanish line */
/* the pen: its nib tip sits on the drawing point */
.sk-pen { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 2; }
.sk-pen.on { opacity: 1; }
.sk-pen svg { position: absolute; left: -.6px; top: -8.5px; width: 85px; height: 17px; transform-origin: .6px 8.5px; transform: rotate(-40deg);
  filter: drop-shadow(3px 7px 5px color-mix(in srgb, var(--ink) 22%, transparent)); }
.sk-pen .b { fill: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.sk-pen .h { stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; opacity: .32; fill: none; }
.sk-pen .g { fill: color-mix(in srgb, var(--ink) 35%, #c9c4bb); }
.sk-pen .n { fill: color-mix(in srgb, #d8c08a 70%, var(--ink)); }
.sk-pen .s { stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: .7; fill: none; }
.sk-pen .s2 { fill: color-mix(in srgb, var(--ink) 70%, transparent); }
.sk-on .hero .cue { z-index: 8; color: var(--ink); }
.sk-on .hero .hn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sk-ring path, .sk-ring i { animation: none; stroke-dashoffset: 0; } .sk.open .sk-k { animation: none; } }

/* ── pages ── */
.sk-on #content .sec { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
/* tighter pages (guest review 2026-11-19: 250-350 px of bare paper between sections while a drawing was still to come): the
   engine's 76 px serif-page padding → 46 px; the drawings start before they scroll in (sketch.js io) */
html.sk-on #content > .sec:not(.foot):not(.note) { padding-top: 46px; padding-bottom: 46px; }
html.sk-on #content > .sec.note { padding-top: 46px; }
.sk-vig { width: min(150px, 42vw); aspect-ratio: 4 / 3; margin: 0 auto 16px; position: relative; }
.sk-vig .sk-vw { position: absolute; inset: 0; overflow: hidden; } /* washes never leave their drawing's box */
.sk-vig canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.sk-vig.v-swallow { width: min(96px, 26vw); aspect-ratio: 64 / 44; }
.sk-vig.v-pin { aspect-ratio: 120 / 94; }
.sk-vig.v-rings { aspect-ratio: 120 / 80; }
.sk-vig.v-gate { width: min(200px, 54vw); aspect-ratio: 120 / 92; }
.sk-vig.v-glasses, .sk-vig.v-envelope { width: min(160px, 44vw); }
/* olive branches in place of the engine's line dividers */
.divider.ldiv.sk-olive svg { display: none; }
.divider.ldiv.sk-olive { width: min(78%, 300px); }
.sk-vig.v-olive { width: 100%; aspect-ratio: 240 / 40; margin: 0 auto; }
/* round 5: more drawings while scrolling (sketch.js) — each keeps ≥ 12 px of paper from any text */
.sk-on h2.script::after { display: none; }
.sk-vig.sk-ul { width: min(132px, 40vw); aspect-ratio: 120 / 16; margin: 14px auto 18px; }
.sk-vig.v-clock { width: min(78px, 24vw); aspect-ratio: 120 / 90; margin: 18px auto 16px; }
.sk-vig.v-bouquet { width: min(124px, 36vw); aspect-ratio: 120 / 110; margin: 0 auto 20px; }
.sk-vig.sk-fly { width: min(280px, 76vw); aspect-ratio: 240 / 60; margin: 20px auto 0; } /* was 34px (2026-11-19 tighter pages) */
.sk-vig.sk-mg { position: absolute; top: 90px; width: 92px; aspect-ratio: 44 / 96; margin: 0; }
.sk-vig.sk-mg.mg-l { left: calc(-1 * min(140px, (100vw - 480px) / 2 - 24px)); }
.sk-vig.sk-mg.mg-r { right: calc(-1 * min(140px, (100vw - 480px) / 2 - 24px)); transform: scaleX(-1); }
@media (min-width: 900px) { html.sk-on .app { overflow: visible; } }
.sk-on .note-card .sk-vig { margin-bottom: 4px; }
.sk-on .sec.rsvp .seal { display: none; } /* the engine's wax-seal art — not part of a line drawing */
.sk-on .names-big { font-family: 'Parisienne', cursive; }
.sk-on .sec .kicker { color: var(--soft); }
.sk-on .btn { border-color: color-mix(in srgb, var(--ink) 55%, transparent); color: var(--ink); background: transparent; box-shadow: none; }
.sk-on .btn.fill { background: var(--ink); color: var(--paper); }
.sk-on .note-card { background: transparent; box-shadow: none; border: 0; }
.sk-on .framed.plain { background: transparent; box-shadow: none; border: 0; }
/* photos: set INTO an irregular ink frame — inner shadow on the print, a soft shadow under it, the frame drawn on scroll-in */
.sk-on .sk-ph { position: relative; overflow: visible !important; }
.sk-on .sk-ph .sk-fr { position: absolute; left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; mix-blend-mode: multiply; z-index: 3; }
.sk-on .sk-ph .ph, .sk-on .sk-ph img { border-radius: 1px; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--ink) 40%, transparent), 0 2px 5px color-mix(in srgb, var(--ink) 18%, transparent) !important; }
.sk-on .sk-ph::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent), inset 0 3px 10px rgba(0, 0, 0, .28), inset 0 0 24px rgba(0, 0, 0, .12); }
.sk-on .gf-gal { gap: 30px 26px; }
.sk-on .sec.photos .portrait.noframe, .sk-on .sec.photos .portrait.noframe .ph { border-radius: 2px; }
.sk-on .sk-ph::after { border: 0 !important; border-radius: 2px !important; }
.sk-on .sec.photos .portrait.noframe { margin-top: 30px; }
.sk-on .sec.photos .portrait.noframe + .gf-gal { margin-top: 44px; }
