/* Ginger-Jar Peonies (LOCAL DRAFT 2026-11-13) — the cobalt-brush layer over the gatefold engine. Scoped to html[data-gf="ginger-jar"] / .gj-on.
   --accent = the brush's pigment (cobalt / celadon / rose), --ink = text. site/gingerjar/gingerjar.js */
html[data-gf="ginger-jar"] { --gj-serif: 'SwacHyphen', 'Bodoni Moda', 'Didot', Georgia, serif; --gj-sans: 'Jost', 'Futura', system-ui, sans-serif; }
html[data-gf="ginger-jar"] body { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
/* ── the hero layer ── */
.gj-on .hero { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.gj { position: absolute; inset: 0; z-index: 6; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--ink);
  background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.gj.open, .gj.done { pointer-events: none; cursor: default; }
.gj-k { position: absolute; left: 6%; right: 6%; text-align: center; font: 500 12.5px/1.3 var(--gj-sans); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transition: opacity 1s ease .1s; }
.gj.ready .gj-k { opacity: .95; }
/* a personal guest link: the closed kicker sits below "Dear Anna & Mark" (--gj-gh, gingerjar.js fitJar) and glides back as it opens */
.gj-k { translate: 0 var(--gj-gh, 0px); }
.gj.open .gj-k { translate: 0 0; transition: opacity 1s ease .1s, translate 1.05s cubic-bezier(.45, 0, .25, 1) .12s; }
.gj.instant .gj-k { transition: none; }
/* the jar: the lid lifts away, then the jar dissolves into the page as its mouth glides to where the flowers grow */
.gj-jar { position: absolute; opacity: 0; transition: opacity 1s ease .2s; }
.gj-jar canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.gj.ready .gj-jar { opacity: 1; }
.gj.open .gj-jar { opacity: 0; transform: translateY(var(--jdy, 0px)) scale(.97); transform-origin: 50% 22%;
  transition: opacity .62s cubic-bezier(.4, 0, .6, 1) .48s, transform 1.05s cubic-bezier(.45, 0, .25, 1) .12s; }
.gj.open .gj-lid { transform: translateY(-34px) rotate(-7deg); opacity: 0; transform-origin: 50% 12%;
  transition: transform .62s cubic-bezier(.3, .6, .3, 1), opacity .44s ease .14s; }
.gj.instant .gj-jar, .gj.instant .gj-lid { transition: none; }
/* the crown of peonies (two canvases: the finished strokes + the ones being painted), and one slow glaze sheen across it */
.gj-crown, .gj-foot { position: absolute; }
.gj-crown canvas, .gj-foot canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.gj-crown .gj-sheen { mix-blend-mode: normal; }
/* the names: Bodoni italic, written in by a soft wipe, line by line */
.gj-names { position: absolute; left: 0; right: 0; text-align: center; font: italic 400 60px/1.02 var(--gj-serif); color: var(--accent); pointer-events: none; }
.gj-names .l { display: block; white-space: nowrap; }
.gj-names .l.amp { font-size: .56em; line-height: 1.1; font-style: italic; }
.gj-names .t { display: inline-block; padding: 0 .12em; -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; opacity: 0; }
.gj-names .l.w .t { animation: gjWrite .78s cubic-bezier(.45, .1, .35, 1) both; }
@keyframes gjWrite { 0% { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 100% { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }
.gj.instant .gj-names .t { animation: none; opacity: 1; -webkit-mask: none; mask: none; }
.gj-meas { position: absolute; left: -9999px; top: 0; visibility: hidden; white-space: nowrap; font: italic 400 100px/1 var(--gj-serif); padding: 0 .12em; }
.gj-date { position: absolute; left: 6%; right: 6%; text-align: center; font: 400 23px/1.25 var(--gj-serif); color: var(--accent); opacity: 0;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; }
.gj.dated .gj-date { animation: gjWrite .7s cubic-bezier(.45, .1, .35, 1) both; }
.gj-where { position: absolute; left: 7%; right: 7%; text-align: center; font: 500 12.5px/1.6 var(--gj-sans); letter-spacing: .26em; padding-left: .26em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); text-wrap: balance; }
.gj.placed .gj-where { opacity: .9; transform: none; }
.gj.instant .gj-date { animation: none; opacity: 1; -webkit-mask: none; mask: none; }
.gj.instant .gj-where { transition: none; }
/* the tap hint: small spaced caps between two hairlines that breathe */
.gj-hint { position: absolute; left: 50%; bottom: calc(8% + env(safe-area-inset-bottom) * .5); transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 10px 6px; color: var(--accent); cursor: pointer; opacity: 0; transition: opacity .9s ease .8s; white-space: nowrap; }
.gj-hint span { font: 500 12.5px/1 var(--gj-sans); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; }
.gj-hl { display: block; width: 28px; height: 1px; background: currentColor; opacity: .6; transform-origin: 100% 50%; animation: gjHl 3s ease-in-out 1.6s infinite; }
.gj-hl:last-child { transform-origin: 0 50%; }
@keyframes gjHl { 0%, 100% { transform: scaleX(.45); opacity: .35; } 50% { transform: scaleX(1); opacity: .75; } }
.gj.ready .gj-hint { opacity: 1; }
.gj.open .gj-hint { opacity: 0; transition: opacity .25s; }
.gj-on .hero .cue { z-index: 8; color: var(--accent); }
.gj-on .hero .hn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .gj-hl { animation: none; } }

/* ── pages: one sheet of warm porcelain-white paper, Bodoni + Jost, sprays blooming in ── */
.gj-on #content { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.gj-on #content .sec, .gj-on #content .sec.foot { background: transparent; color: var(--ink); }
.gj-on .sec .kicker { font: 500 12.5px/1.4 var(--gj-sans); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--accent); }
.gj-on .sec h2.script { font: italic 400 clamp(38px, 11vw, 54px)/1.08 var(--gj-serif); color: var(--accent); letter-spacing: 0; text-transform: none; margin-top: 8px; text-wrap: balance; }
.gj-on h2.script::after { display: none; }
/* headings are written in (a soft wipe) when they scroll into view */
.gj-on .sec h2.script[data-reveal], .gj-on .names-big[data-reveal] { transform: none; opacity: 1; transition: none;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; }
.gj-on .sec h2.script[data-reveal].in, .gj-on .names-big[data-reveal].in { animation: gjWrite .9s cubic-bezier(.45, .1, .35, 1) .1s both; }
.gj-on .names-big { font: italic 400 clamp(40px, 12vw, 64px)/1.08 var(--gj-serif); color: var(--accent); }
.gj-on .names-big .amp { font-size: .6em; margin: 0 .2em; }
/* fonts 2026-11-19 (max 2 families): the body is Bodoni Moda 400 (optical size), ×.88 of the old Cormorant size */
.gj-on .sec p { font: 400 16.5px/1.6 var(--gj-serif); color: var(--ink); }
/* the date line's rules: hairlines in a pale wash of the pigment (were 1 px at 45 %) */
.gj-on .dateline span { border-top-width: .5px; border-bottom-width: .5px; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.gj-on .dateline span { font: 500 12px/1.3 var(--gj-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.gj-on .dateline b { font-family: var(--gj-serif); font-weight: 400; color: var(--accent); }
.gj-on .dateline b small { font-family: var(--gj-sans); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.gj-on .timeline-words { font-style: italic; }
/* the program (v2 2026-11-14, owner: "рамки слишком плотные"): no box — only a soft hairline BETWEEN the items, fading out at both
   ends like a brush lifted, and more air round each line */
.gj-on .prog { list-style: none; padding: 0; margin: 30px auto 0; max-width: 340px; text-align: left; }
.gj-on .prog li { display: grid !important; grid-template-columns: auto 1fr; gap: 3px 18px; align-items: baseline; padding: 19px 2px 18px; position: relative;
  border: 0; text-align: left; }
.gj-on .prog li + li::before { content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; transform: scaleY(.5); transform-origin: 50% 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 38%, transparent) 22%, color-mix(in srgb, var(--accent) 38%, transparent) 78%, transparent); }
.gj-on .prog .pi { display: none; }
.gj-on .prog .pt { display: contents; }
.gj-on .prog time { grid-row: 1 / span 2; font: italic 400 25px/1.1 var(--gj-serif); color: var(--accent); min-width: 3.6em; }
.gj-on .prog b { font: 500 12.5px/1.4 var(--gj-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.gj-on .prog span { font: italic 400 15px/1.45 var(--gj-serif); color: var(--ink); }
/* countdown */
.gj-on .framed.plain, .gj-on .framed.plain .framed-in { background: none; border: 0 !important; box-shadow: none; }
.gj-on .framed.plain .framed-in { padding: 4px 0; }
.gj-on .cd-days b { font: 400 clamp(92px, 30vw, 132px)/1 var(--gj-serif); color: var(--accent); }
.gj-on .cd-days span, .gj-on .cd-row span { font: 500 11.5px/1.3 var(--gj-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.gj-on .cd-row b { font: 400 40px/1 var(--gj-serif); color: var(--accent); }
.gj-on .cd-t { font: italic 400 19px/1.4 var(--gj-serif); color: var(--accent); }
/* venue, dress, notes */
.gj-on .venue-name, .gj-on .dress-title { font: italic 400 clamp(28px, 8.4vw, 38px)/1.15 var(--gj-serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--accent); text-wrap: balance; }
.gj-on .addr { font-family: var(--gj-serif); font-size: 16.5px !important; }
.gj-on .when { font: 500 12px/1.6 var(--gj-sans) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--accent) !important; }
.gj-on .note-card { background: transparent !important; box-shadow: none; border: 0 !important; outline: 0 !important; }
.gj-on .note-card::before, .gj-on .note-card::after { display: none; }
.gj-on .sec.rsvp .seal { display: none; }
.gj-on .btn { font: 500 12.5px/1 var(--gj-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); background: transparent;
  border: .75px solid color-mix(in srgb, var(--accent) 48%, transparent); border-radius: 999px; box-shadow: none; }
.gj-on .btn.fill { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.gj-on .sec.foot .sig { font: italic 400 26px/1.35 var(--gj-serif); color: var(--accent); }
/* photos (v2 2026-11-14, owner: frames too dense): set INTO a WHITE glazed porcelain frame — a slim cool-white band with a soft glaze
   light, ONE fine painted line of the pigment round it (like the jar's bands), the print's inner shadow and a soft shadow under it */
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe, html[data-gf="ginger-jar"] .gf-gal figure { position: relative; padding: 9px !important; border-radius: 3px !important; overflow: visible;
  background: linear-gradient(135deg, #ffffff 0%, #f6f7f8 38%, #eceef1 100%) !important;
  box-shadow: 0 16px 28px -16px rgba(16, 22, 40, .38), 0 2px 7px rgba(16, 22, 40, .1), inset 0 0 0 .5px rgba(30, 40, 70, .12), inset 0 1px 0 #fff !important; }
html[data-gf="ginger-jar"] .gf-gal figure { padding: 7px !important; }
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe { width: min(78%, 310px); aspect-ratio: 4 / 5; }
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe .ph { position: relative; inset: auto; width: 100%; height: 100%; border-radius: 1px !important; box-shadow: none !important; }
html[data-gf="ginger-jar"] .sec.photos .portrait .ph::after, html[data-gf="ginger-jar"] .sec.photos .portrait .ph-cast { display: none !important; }
html[data-gf="ginger-jar"] .gf-gal figure img { border-radius: 1px !important; }
/* the painted line on the frame: 3.5 px in from its edge, a fine stroke of the pigment */
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe::before, html[data-gf="ginger-jar"] .gf-gal figure::before { content: ''; display: block !important; position: absolute; inset: 3.5px !important;
  border: .75px solid color-mix(in srgb, var(--accent) 62%, transparent) !important; border-radius: 2px; background: none !important; pointer-events: none; z-index: 1; animation: none !important; opacity: 1 !important; transform: none !important; }
html[data-gf="ginger-jar"] .gf-gal figure::before { inset: 2.5px !important; }
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe::after, html[data-gf="ginger-jar"] .gf-gal figure::after, html[data-gf="ginger-jar"] .gf-gal figure.in::after { content: ''; display: block !important;
  position: absolute; inset: 9px !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 .5px rgba(0, 0, 0, .22), inset 0 2px 8px rgba(0, 0, 0, .26), inset 0 0 22px rgba(0, 0, 0, .1) !important; }
html[data-gf="ginger-jar"] .gf-gal figure::after, html[data-gf="ginger-jar"] .gf-gal figure.in::after { inset: 7px !important; }
html[data-gf="ginger-jar"] .gf-gal { gap: 26px 22px; width: min(86%, 350px); }
html[data-gf="ginger-jar"] .sec.photos .portrait.noframe + .gf-gal { margin-top: 40px; }
/* brush sprays (gingerjar.js): each paints itself stroke by stroke when it scrolls into view */
.gj-vig { position: relative; width: min(170px, 46vw); aspect-ratio: 200 / 120; margin: 0 auto 26px; pointer-events: none; }
.gj-vig canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.gj-vig.v-bud { width: min(130px, 36vw); aspect-ratio: 160 / 110; }
.gj-vig.v-branch { width: min(250px, 66vw); aspect-ratio: 300 / 72; margin: 0 auto; }
.gj-vig.v-sig { width: min(140px, 38vw); margin-bottom: 18px; }
.divider.ldiv.gj-div svg { display: none; }
.divider.ldiv.gj-div { width: auto; margin-top: 30px; }
.gj-on .note-card .gj-vig { margin-bottom: 26px; }
/* owner QA 2026-11-29 L-2: Bodoni Moda's hyphen is a hairline — "Maximiliana-Alexandrina" read as two names. Only the hyphen glyphs
   (unicode-range) come from a sturdier system face; every other letter stays Bodoni */
@font-face { font-family: 'SwacHyphen'; src: local('Helvetica Neue'), local('HelveticaNeue'), local('Roboto'), local('Arial'), local('DejaVu Sans'); unicode-range: U+002D, U+2010-2011; }
/* owner QA round 2 (2026-11-30) N-4: long names wrapped onto 3+ lines sat too tight (the "p y j" tails touched the capitals below) —
   a wrapped name gets more air between its lines */
.gj-names:has(.l:not(.amp) ~ .l:not(.amp) ~ .l:not(.amp)) .l:not(.amp) { line-height: 1.16; }
