/* Riso Flower Market (LOCAL DRAFT 2026-11-13) — the two-ink riso layer over the gatefold engine. Scoped to html[data-gf="riso"] / .ri-on.
   --accent = drum A (blooms, type), --accent2 = drum B (stems, leaves, halftones), --ink = body text. site/riso/riso.js */
html[data-gf="riso"] { --ri-a: var(--accent); --ri-b: var(--accent2); --ri-grain: url("../art/riso/ink.png");
  --ri-rule-c: color-mix(in srgb, var(--ri-a) 62%, transparent);
  --ri-dots: radial-gradient(circle, var(--ri-rule-c) .95px, transparent 1.25px) 0 50% / 5px 3px repeat-x;
  --ri-cond: 'Archivo', 'Arial Narrow', sans-serif; --ri-sans: 'Archivo', system-ui, sans-serif; /* fonts 2026-11-19: Archivo 700 caps (was DM Sans = a 3rd family) */ --ri-serif: 'Fraunces', Georgia, serif; }
html[data-gf="riso"] body { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
/* printed type: flat ink with the drum's speckle */
.ri-ink { -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }

/* ── the hero layer ── */
.ri-on .hero { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.ri { position: absolute; inset: 0; z-index: 6; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--ri-a);
  background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.ri.open, .ri.done { pointer-events: none; cursor: default; }
.ri-top { position: absolute; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font: 700 12.5px/1.2 var(--ri-sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .8s ease .1s; }
.ri-top.one { justify-content: center; }
.ri-top.one .ri-n { display: none; }
.ri-top .ri-n { letter-spacing: .14em; }
.ri-top > span { -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
/* v2 2026-11-14 (owner: "the frames are too dense"): a light halftone dot rule instead of a 2 px ink bar */
.ri-rule { position: absolute; left: var(--pad); right: var(--pad); height: 3px; margin-top: -.5px; background: var(--ri-dots); transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform 1s cubic-bezier(.3, 0, .2, 1) .25s; }
.ri.ready .ri-top { opacity: 1; }
.ri.ready .ri-rule { transform: none; }
/* a personal guest link: the closed kicker row sits below "Dear Anna & Mark" (--ri-gh, riso.js closedFit) and glides back as it opens */
.ri-top, .ri-rule { translate: 0 var(--ri-gh, 0px); }
.ri.open .ri-top, .ri.open .ri-rule { translate: 0 0; }
.ri.open .ri-top { transition: opacity .8s ease .1s, translate .9s cubic-bezier(.45, 0, .2, 1); }
.ri.open .ri-rule { transition: transform 1s cubic-bezier(.3, 0, .2, 1) .25s, translate .9s cubic-bezier(.45, 0, .2, 1); }
.ri.instant .ri-top, .ri.instant .ri-rule { transition: none; }
/* the drawing: every drum layer is its own canvas, multiplied onto the paper (overlaps print a third colour) */
.ri-art { position: absolute; translate: 0 var(--cy, 0px); }
.ri.open .ri-art { translate: 0 0; transition: translate .9s cubic-bezier(.45, 0, .2, 1); }
.ri.instant .ri-art { transition: none; }
.ri-art canvas, .ri-dr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ri-art canvas { mix-blend-mode: multiply; }
.ri-dr { opacity: 0; will-change: transform, opacity; }
.ri-a { transform: translate3d(calc(-1 * var(--slide, 240px)), -10px, 0) rotate(-2.5deg); }
.ri-b { transform: translate3d(var(--slide, 240px), 12px, 0) rotate(2deg); }
.ri .c-disc, .ri .c-wrb, .ri .c-wra, .ri .c-fpl, .ri .c-fpr, .ri .c-pka { opacity: 0; transition: opacity .9s ease .15s; }
.ri.ready .c-disc { opacity: .8; }
.ri.open .c-disc { opacity: 1; transition: opacity .8s ease .3s; }
.ri.ready .c-wrb, .ri.ready .c-wra, .ri.ready .c-fpl, .ri.ready .c-fpr, .ri.ready .c-pka { opacity: 1; }
.ri-flap { will-change: transform; }
/* the tap: the flaps fan open; the peeking tips go; drum B (stems, leaves, sun) and drum A (blooms) slide in from opposite sides
   and snap into register — the last 12 % is the snap: a small overshoot that clicks back, leaving a hair of misregistration */
.ri.open .ri-flap { transform: rotate(var(--ang)); transition: transform .62s cubic-bezier(.3, .75, .25, 1), opacity .62s; }
.ri.open .c-pka { opacity: 0; transition: opacity .3s ease .12s; }
.ri.open .ri-b { animation: riInB .86s cubic-bezier(.2, .62, .2, 1) .12s both; }
.ri.open .ri-a { animation: riInA .86s cubic-bezier(.2, .62, .2, 1) .2s both; }
@keyframes riInB { 0% { opacity: 0; transform: translate3d(var(--slide), 12px, 0) rotate(2deg); } 22% { opacity: 1; }
  84% { opacity: 1; transform: translate3d(-5px, -1px, 0) rotate(-.15deg); } 92% { transform: translate3d(1.6px, .4px, 0) rotate(0); } 100% { opacity: 1; transform: translate3d(.9px, .6px, 0); } }
@keyframes riInA { 0% { opacity: 0; transform: translate3d(calc(-1 * var(--slide)), -10px, 0) rotate(-2.5deg); } 22% { opacity: 1; }
  84% { opacity: 1; transform: translate3d(5px, .8px, 0) rotate(.15deg); } 92% { transform: translate3d(-1.4px, -.6px, 0) rotate(0); } 100% { opacity: 1; transform: translate3d(-.9px, -.6px, 0); } }
/* the moment the drums lock: the whole print gives a tiny press */
.ri.snap .ri-art { animation: riPress .26s cubic-bezier(.3, 0, .3, 1) both; }
@keyframes riPress { 0%, 100% { transform: none; } 40% { transform: scale(.992) translateY(1px); } }
.ri.instant .ri-dr { animation: none; opacity: 1; transform: translate3d(.9px, .6px, 0); }
.ri.instant .ri-a { transform: translate3d(-.9px, -.6px, 0); }
.ri.instant .ri-flap, .ri.instant .c-pka { transition: none; }
.ri.instant .ri-art { animation: none; }
/* the names: giant condensed type, stamped in line by line (a press from above: big and light → down hard → settle) */
.ri-names { position: absolute; left: 0; right: 0; text-align: center; font: 900 60px/.9 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62;
  text-transform: uppercase; color: var(--ri-a); pointer-events: none; }
.ri-names .l { display: block; white-space: nowrap; opacity: 0; transform: scale(1.32); transform-origin: 50% 60%; }
.ri-names .t { display: inline-block; padding: .02em .04em 0; -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
.ri-names .l.st { animation: riStamp .4s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes riStamp { 0% { opacity: 0; transform: scale(1.32); } 45% { opacity: .9; transform: scale(.975); } 70% { opacity: 1; transform: scale(1.008); } 100% { opacity: 1; transform: none; } }
.ri.instant .ri-names .l { animation: none; opacity: 1; transform: none; }
.ri-meas { position: absolute; left: -9999px; top: 0; visibility: hidden; white-space: nowrap; font: 900 100px/1 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; padding: 0 .04em; }
.ri-date { position: absolute; left: var(--pad); right: var(--pad); text-align: center; font: 700 13.5px/1.3 var(--ri-sans); letter-spacing: .18em; padding-left: .18em;
  text-transform: uppercase; color: var(--ri-a); opacity: 0; transform: scale(1.12); transition: opacity .3s ease, transform .34s cubic-bezier(.3, .1, .3, 1.4); }
.ri-where { position: absolute; left: var(--pad); right: var(--pad); text-align: center; font: italic 500 17px/1.3 var(--ri-serif); color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); text-wrap: balance; }
.ri.dated .ri-date { opacity: 1; transform: none; }
.ri.placed .ri-where { opacity: .92; transform: none; }
.ri.instant .ri-date, .ri.instant .ri-where { transition: none; }
/* the tag: a stamped price-tag button, breathing very slowly */
.ri-tag { position: absolute; left: 50%; translate: 0 var(--cy, 0px); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 26px 14px; border: 0; border-radius: 6px;
  background: none; color: var(--paper); cursor: pointer; opacity: 0; transform: translateX(-50%); transition: opacity .8s ease .5s; isolation: isolate;
  width: max-content; max-width: calc(100vw - 40px); text-align: center; }
.ri-tag::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ri-a); z-index: -1;
  -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
.ri-tag b { font: 700 12.5px/1 var(--ri-sans); letter-spacing: .24em; padding-left: .24em; text-transform: uppercase; white-space: nowrap; }
.ri-tag i small { display: block; margin-top: 3px; font-size: .76em; opacity: .9; } /* English + Spanish: the Spanish line */
.ri-tag i { font: italic 500 19px/1.1 var(--ri-serif); }
.ri.ready .ri-tag { opacity: 1; animation: riBreathe 3.2s ease-in-out 1.6s infinite; }
@keyframes riBreathe { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.035); } }
.ri.open .ri-tag { opacity: 0; animation: none; transition: opacity .22s ease; }
.ri-on .hero .cue { z-index: 8; color: var(--ri-a); }
.ri-on .hero .hn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ri.ready .ri-tag { animation: none; } }

/* ── pages: one sheet of paper (no seams), headings stamped in, riso stems printing in ── */
.ri-on #content { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.ri-on #content .sec, .ri-on #content .sec.foot { background: transparent; }
.ri-on #content .sec { color: var(--ink); }
.ri-on .sec .kicker { font: 700 12.5px/1.3 var(--ri-sans); letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--ri-a); }
.ri-on .sec h2.script, .ri-on .names-big { font-family: var(--ri-cond); font-weight: 900; font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-style: normal; color: var(--ri-a); letter-spacing: 0; line-height: .92; -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
.ri-on .sec h2.script { font-size: clamp(46px, 15vw, 76px); margin: 10px auto 0; text-wrap: balance; }
.ri-on h2.script::after { display: none; }
/* headings and the big names are stamped in when they scroll into view */
.ri-on .sec h2.script[data-reveal], .ri-on .names-big[data-reveal] { opacity: 0; transform: scale(1.26); transition: none; }
.ri-on .sec h2.script[data-reveal].in, .ri-on .names-big[data-reveal].in { animation: riStamp .42s cubic-bezier(.3, .1, .3, 1) .08s both; }
.ri-on .names-big { font-size: clamp(54px, 18vw, 96px); }
.ri-on .names-big .amp { display: inline; font-size: 1em; margin: 0 .12em; }
.ri-on .names-big .n { display: inline; }
.ri-on .sec p { font-family: var(--ri-serif); font-size: 18.5px; line-height: 1.55; color: var(--ink); }
.ri-on .dateline span { font: 700 12.5px/1.3 var(--ri-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ri-a); }
.ri-on .dateline span { border: 0; background: var(--ri-dots); background-position: 0 100%; padding: 6px 0 10px; }
.ri-on .dateline b { font-family: var(--ri-cond); font-weight: 900; font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--ri-a); }
.ri-on .dateline b small { font-family: var(--ri-sans); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ri-on .timeline-words { font-style: italic; }
/* the program: a printed running order — big times, bold titles, italic notes, ink rules between */
/* v2 2026-11-14: open, not boxed — no rule above the first or below the last line, a light halftone dot rule between, more air */
.ri-on .prog { list-style: none; padding: 0; margin: 30px auto 0; max-width: 340px; text-align: left; }
.ri-on .prog li { display: grid !important; grid-template-columns: auto 1fr; gap: 0 18px; align-items: baseline; padding: 21px 4px 20px; border: 0;
  flex-direction: unset; text-align: left; }
.ri-on .prog li + li { background: var(--ri-dots); background-position: 0 0; }
.ri-on .prog li:first-child { padding-top: 6px; }
.ri-on .prog li:last-child { padding-bottom: 4px; }
.ri-on .prog .pi { display: none; }
.ri-on .prog .pt { display: contents; }
.ri-on .prog time { grid-row: 1 / span 2; font: 900 34px/1 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--ri-a); min-width: 3.1em; text-transform: uppercase; }
.ri-on .prog b { font: 700 15px/1.3 var(--ri-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ri-on .prog span { font: italic 400 16.5px/1.45 var(--ri-serif); color: var(--ink); opacity: .9; }
/* countdown */
.ri-on .framed.plain, .ri-on .framed.plain .framed-in { background: none; border: 0 !important; box-shadow: none; }
.ri-on .framed.plain .framed-in { padding: 6px 0 4px; }
.ri-on .framed .kicker { color: var(--ri-a); }
.ri-on .cd-days b { font: 900 clamp(110px, 38vw, 170px)/.9 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--ri-a);
  -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
.ri-on .cd-days span, .ri-on .cd-row span { font: 700 12px/1.3 var(--ri-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.ri-on .cd-row b { font: 900 46px/1 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--ri-a); }
.ri-on .cd-t { font: italic 500 18px/1.4 var(--ri-serif); color: var(--ink); }
/* venue, dress, notes */
.ri-on .venue-name, .ri-on .dress-title { font: 900 clamp(34px, 11vw, 52px)/.98 var(--ri-cond); font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  color: var(--ri-a); letter-spacing: 0 !important; font-weight: 900; text-wrap: balance; -webkit-mask: var(--ri-grain) 0 0 / 200px repeat; mask: var(--ri-grain) 0 0 / 200px repeat; }
.ri-on .addr { font-family: var(--ri-serif); }
.ri-on .when { font: 700 12.5px/1.5 var(--ri-sans) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-a) !important; }
.ri-on .note-card { background: transparent !important; box-shadow: none; border: 0 !important; outline: 0 !important; }
.ri-on .note-card::before, .ri-on .note-card::after { display: none; }
.ri-on .sec.rsvp .seal { display: none; }
/* buttons: a printed block of ink A / an ink outline */
.ri-on .btn { font: 700 13px/1 var(--ri-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ri-a); background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--ri-a) 80%, transparent); border-radius: 6px; box-shadow: none; }
.ri-on .btn.fill { border-color: var(--ri-a); }
.ri-on .btn.fill { background: var(--ri-a); color: var(--paper); }
/* the sign-off */
.ri-on .sec.foot .sig { font: italic 500 24px/1.35 var(--ri-serif); color: var(--ri-a); }
/* photos (v2 2026-11-14: a slim 4 px edge, lighter halftone): set INTO a printed ink-A frame (inner shadow on the print, a soft shadow under the frame) with a drum-B halftone shadow
   offset behind it — like a two-colour print pulled a few millimetres out of register. No mats, no tilt. (html[data-gf] beats the
   engine's default photo finish html[data-pfx=h]) */
html[data-gf="riso"] .sec.photos .portrait.noframe, html[data-gf="riso"] .gf-gal figure { position: relative; padding: 4px !important; background: var(--ri-a) !important;
  border-radius: 3px !important; overflow: visible; box-shadow: 0 16px 26px -14px rgba(20, 10, 10, .5), 0 3px 7px rgba(20, 10, 10, .16) !important; }
html[data-gf="riso"] .sec.photos .portrait.noframe { width: min(80%, 320px); aspect-ratio: 4 / 5; }
html[data-gf="riso"] .sec.photos .portrait.noframe .ph { position: relative; inset: auto; width: 100%; height: 100%; border-radius: 1px !important; box-shadow: none !important; }
html[data-gf="riso"] .sec.photos .portrait .ph::after, html[data-gf="riso"] .sec.photos .portrait .ph-cast { display: none !important; }
html[data-gf="riso"] .gf-gal figure img { border-radius: 1px !important; }
html[data-gf="riso"] .sec.photos .portrait.noframe::after, html[data-gf="riso"] .gf-gal figure::after, html[data-gf="riso"] .gf-gal figure.in::after { content: ''; display: block !important; position: absolute; inset: 4px !important;
  border: 0; border-radius: 1px !important; pointer-events: none; z-index: 2; background: none !important; animation: none !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 0 3px 10px rgba(0, 0, 0, .34), inset 0 0 26px rgba(0, 0, 0, .14) !important; }
/* the halftone shadow shows only where it sticks out past the frame (the frame's own box is clipped out) */
html[data-gf="riso"] .sec.photos .portrait.noframe::before, html[data-gf="riso"] .gf-gal figure::before { content: ''; display: block !important; position: absolute; inset: 0 !important; border: 0 !important;
  border-radius: 3px; pointer-events: none; transform: translate(7px, 8px); mix-blend-mode: multiply; opacity: .62;
  background: radial-gradient(circle, var(--ri-b) .95px, transparent 1.25px) 0 0 / 4.4px 4.4px;
  clip-path: polygon(calc(100% - 7px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 8px), calc(100% - 7px) calc(100% - 8px)); }
html[data-gf="riso"] .gf-gal figure:nth-child(even)::before { transform: translate(-7px, 8px); clip-path: polygon(0 0, 7px 0, 7px calc(100% - 8px), 100% calc(100% - 8px), 100% 100%, 0 100%); }
html[data-gf="riso"] .gf-gal { gap: 30px 24px; width: min(86%, 360px); }
html[data-gf="riso"] .sec.photos .portrait.noframe + .gf-gal { margin-top: 44px; }
html[data-gf="riso"] .portrait .ph, html[data-gf="riso"] .gf-gal img { filter: contrast(1.03) saturate(.95); }
/* riso stems: two drum canvases that slide in from opposite sides and snap into register when they scroll into view */
.ri-vig { position: relative; width: min(150px, 42vw); aspect-ratio: 160 / 118; margin: 0 auto 20px; pointer-events: none; }
.ri-vig canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: 0; }
.ri-vig .va { transform: translate3d(-26px, -3px, 0) rotate(-3deg); }
.ri-vig .vb { transform: translate3d(26px, 3px, 0) rotate(3deg); }
.ri-vig.in .vb { animation: riVb .7s cubic-bezier(.2, .62, .2, 1) both; }
.ri-vig.in .va { animation: riVa .7s cubic-bezier(.2, .62, .2, 1) .08s both; }
@keyframes riVb { 0% { opacity: 0; transform: translate3d(26px, 3px, 0) rotate(3deg); } 30% { opacity: 1; } 84% { opacity: 1; transform: translate3d(-2px, 0, 0); } 100% { opacity: 1; transform: translate3d(.7px, .5px, 0); } }
@keyframes riVa { 0% { opacity: 0; transform: translate3d(-26px, -3px, 0) rotate(-3deg); } 30% { opacity: 1; } 84% { opacity: 1; transform: translate3d(2px, 0, 0); } 100% { opacity: 1; transform: translate3d(-.7px, -.5px, 0); } }
.ri-vig.v-cosmos { aspect-ratio: 160 / 120; }
.ri-vig.v-berries { width: min(230px, 62vw); aspect-ratio: 240 / 56; margin: 0 auto; }
.ri-vig.v-bunch { width: min(100px, 28vw); aspect-ratio: 120 / 150; margin: 0 auto 18px; }
.divider.ldiv.ri-div svg { display: none; }
.divider.ldiv.ri-div { width: auto; margin-top: 30px; }
.ri-on .note-card .ri-vig { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) { .ri-vig canvas { animation: none !important; opacity: 1; transform: none; } }
.ri-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* "2027 · Rosewood Hall" when read as text (user-sim P1-9) */
