/* Garden journal (addon/story/010), fork of addon/story/001 for INV-01 v2 · Luxe: the story is a page in a garden
   journal: ivory paper with ruled lines, two pressed roses held by paper tape, a garden tag with the couple's initials
   and the year. The title writes on; each line is written in once by a soft pen edge (section.js). Reduced motion,
   lite and no JS: the same page, all shown. Garden kit blocks (scripts/garden_luxe_kit): paper (no glint) and bloom. */
.st010 { background: var(--k-light-ground); color: var(--k-ink); }
.st010__inner {
  position: relative; z-index: 1;
  max-width: calc(var(--k-measure) + 2 * var(--k-gutter)); margin: 0 auto;
  padding: var(--k-section-pad) var(--k-gutter) 0; text-align: center;
}
.st010 .k-kicker + .k-title { margin-top: var(--k-s-2); }
.st010__p { margin-top: var(--k-s-5); }
/* SplitText line masks set inline overflow:clip, which iOS < 16 ignores */
.st010 .st010-sl-mask { overflow: hidden; }
/* tablets and laptops: the story spans the screen less a thin margin (92 % / 90 %), its paragraphs in two columns */
@media (min-width: 768px) {
  .st010 { --st010-frame: 92vw; }
  .st010__inner { max-width: none; width: var(--st010-frame); padding-inline: 0; }
  .st010__cols { max-width: 1180px; margin: 0 auto; columns: 2; column-gap: clamp(48px, 6vw, 112px); column-rule: 1px solid rgb(150 144 172 / .35); text-align: left; }
  .st010__cols .st010__p:first-child { margin-top: var(--k-s-6); }
}
@media (min-width: 1100px) { .st010 { --st010-frame: min(90vw, 1728px); } }

/*GLPAPER-CSS>*/
.st010 { --st010-ivory: #FFFFFF; }
.st010-paper { position: relative; isolation: isolate; border: 0; border-radius: 3px;
  background: radial-gradient(120% 90% at 18% 0%, rgb(255 255 255 / .55), transparent 60%), linear-gradient(160deg, transparent 55%, rgb(96 86 128 / .03)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .26  .14 0 0 0 -.055'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='l' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  -.14 0 0 0 .085'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23l)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .4  0 0 0 0 .3  .07 0 0 0 -.02'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23m)'/%3E%3C/svg%3E"),
    var(--st010-ivory);
  box-shadow: 0 0 0 .5px rgb(52 46 74 / .07), 0 1px 1px rgb(52 46 74 / .08), 0 3px 2px -1px rgb(52 46 74 / .05), 0 22px 44px -18px rgb(68 58 98 / .22); }
.st010-paper__deboss, .st010-paper__foil { position: absolute; z-index: 0; pointer-events: none; }
.st010-paper__deboss { inset: 12px; border-radius: 2px; box-shadow: inset 1px 1px 0 rgb(90 80 120 / .16), inset -1px -1px 0 rgb(255 255 255 / .9), 1px 1px 0 rgb(255 255 255 / .9), -1px -1px 0 rgb(90 80 120 / .12); }
.st010-paper__foil { inset: 18px; border-radius: 1px; border: 1.5px solid rgb(150 144 172 / .7); }
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .st010-paper__foil { border: 0; padding: 1.5px; background: linear-gradient(118deg, #726C8C, #ADA8C2 22%, #E6E3EF 42%, #ADA8C2 60%, #726C8C 80%, #ADA8C2) 100% 0 / 260% 100% border-box;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .st010-paper.is-lit .st010-paper__foil { animation: st010-glint 1.4s cubic-bezier(.45, 0, .25, 1) 1 both; }
}
@keyframes st010-glint { from { background-position: 100% 0; } to { background-position: 0 0; } }
html.motion-reduce .st010-paper.is-lit .st010-paper__foil { animation: none; }
@media (prefers-reduced-motion: reduce) { .st010-paper.is-lit .st010-paper__foil { animation: none; } }
/*<GLPAPER-CSS*/
/*GLBLOOM-CSS>*/
.st010 { --st010-tint-a: var(--c-primary); --st010-tint-a-deep: color-mix(in oklab, var(--c-primary) 65%, var(--c-primary-deep)); --st010-tint-b: #5B4F80; --st010-tint-b-deep: #3D3460;
  --st010-tint-leaf: var(--c-secondary-dark); --st010-tint-leaf-deep: color-mix(in oklab, var(--c-secondary-dark) 60%, var(--c-secondary-deep)); --st010-tint-centre: #8F8045; }
.st010-rose { position: absolute; left: var(--st010-x); top: var(--st010-y); width: var(--st010-w); aspect-ratio: 1; translate: -50% -50%; pointer-events: auto; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.st010-rose__s { position: absolute; inset: 0; transform-origin: 50% 50%; }
.st010-ink { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.st010-rose--a .st010-ink--petal { background: var(--st010-tint-a); }
.st010-rose--a .st010-ink--deep { background: var(--st010-tint-a-deep); }
.st010-rose--b .st010-ink--petal { background: var(--st010-tint-b); }
.st010-rose--b .st010-ink--deep { background: var(--st010-tint-b-deep); }
.st010-ink--leaf { background: var(--st010-tint-leaf); }
.st010-ink--leafdeep { background: var(--st010-tint-leaf-deep); }
.st010-ink--centre { background: var(--st010-tint-centre); }
.st010-ink--body { background: var(--st010-ivory, var(--k-card)); }
.st010-ink--boost { background: transparent; }
@supports (color: oklch(from red l c h)) {
  .st010-rose--a .st010-ink--boost { background: oklch(from var(--st010-tint-a) l c h / clamp(0, (0.551 - l) * 6, .9)); }
}
.st010-rose__s1, .st010-rose__s2 { display: none; }
.st010.is-bloom .st010-rose__s1, .st010.is-bloom .st010-rose__s2 { display: block; }
@supports (mask-image: radial-gradient(#000, transparent)) or (-webkit-mask-image: radial-gradient(#000, transparent)) {
  .st010.is-bloom .st010-rose__s2 { -webkit-mask-image: radial-gradient(closest-side, #000 calc(var(--st010-r2, 0) * 100% - 18%), transparent calc(var(--st010-r2, 0) * 100%)); mask-image: radial-gradient(closest-side, #000 calc(var(--st010-r2, 0) * 100% - 18%), transparent calc(var(--st010-r2, 0) * 100%)); }
  .st010.is-bloom .st010-rose__s3 { -webkit-mask-image: radial-gradient(closest-side, #000 calc(var(--st010-r3, 0) * 100% - 18%), transparent calc(var(--st010-r3, 0) * 100%)); mask-image: radial-gradient(closest-side, #000 calc(var(--st010-r3, 0) * 100% - 18%), transparent calc(var(--st010-r3, 0) * 100%)); }
}
/*<GLBLOOM-CSS*/
/* the pressed roses: one still bloom each, a little faded; their masks load only when the story is near (a tint with no mask would fill its box) */
.st010-pressed .st010-rose { --st010-x: 50%; --st010-y: 50%; --st010-w: 100%; filter: saturate(.62) brightness(1.04); opacity: .9; pointer-events: none; }
.st010 .st010-ink { display: none; }
.st010.is-near .st010-ink, .js.motion-reduce .st010 .st010-ink, html:not(.js) .st010 .st010-ink { display: block; }
.st010.is-near .st010-rose--a .st010-ink--body, .js.motion-reduce .st010 .st010-rose--a .st010-ink--body, html:not(.js) .st010 .st010-rose--a .st010-ink--body { -webkit-mask-image: var(--glk-rose-a-3-body); mask-image: var(--glk-rose-a-3-body); }
.st010.is-near .st010-rose--a .st010-ink--petal, .js.motion-reduce .st010 .st010-rose--a .st010-ink--petal, html:not(.js) .st010 .st010-rose--a .st010-ink--petal { -webkit-mask-image: var(--glk-rose-a-3-petal); mask-image: var(--glk-rose-a-3-petal); }
.st010.is-near .st010-rose--a .st010-ink--boost, .js.motion-reduce .st010 .st010-rose--a .st010-ink--boost, html:not(.js) .st010 .st010-rose--a .st010-ink--boost { -webkit-mask-image: var(--glk-rose-a-3-petal); mask-image: var(--glk-rose-a-3-petal); }
.st010.is-near .st010-rose--a .st010-ink--deep, .js.motion-reduce .st010 .st010-rose--a .st010-ink--deep, html:not(.js) .st010 .st010-rose--a .st010-ink--deep { -webkit-mask-image: var(--glk-rose-a-3-deep); mask-image: var(--glk-rose-a-3-deep); }
.st010.is-near .st010-rose--b .st010-ink--body, .js.motion-reduce .st010 .st010-rose--b .st010-ink--body, html:not(.js) .st010 .st010-rose--b .st010-ink--body { -webkit-mask-image: var(--glk-rose-b-3-body); mask-image: var(--glk-rose-b-3-body); }
.st010.is-near .st010-rose--b .st010-ink--petal, .js.motion-reduce .st010 .st010-rose--b .st010-ink--petal, html:not(.js) .st010 .st010-rose--b .st010-ink--petal { -webkit-mask-image: var(--glk-rose-b-3-petal); mask-image: var(--glk-rose-b-3-petal); }
.st010.is-near .st010-rose--b .st010-ink--deep, .js.motion-reduce .st010 .st010-rose--b .st010-ink--deep, html:not(.js) .st010 .st010-rose--b .st010-ink--deep { -webkit-mask-image: var(--glk-rose-b-3-deep); mask-image: var(--glk-rose-b-3-deep); }
.st010.is-near .st010-rose--b .st010-ink--leaf, .js.motion-reduce .st010 .st010-rose--b .st010-ink--leaf, html:not(.js) .st010 .st010-rose--b .st010-ink--leaf { -webkit-mask-image: var(--glk-rose-b-3-leaf); mask-image: var(--glk-rose-b-3-leaf); }
.st010.is-near .st010-rose--b .st010-ink--centre, .js.motion-reduce .st010 .st010-rose--b .st010-ink--centre, html:not(.js) .st010 .st010-rose--b .st010-ink--centre { -webkit-mask-image: var(--glk-rose-b-3-centre); mask-image: var(--glk-rose-b-3-centre); }

/* the journal page: ivory paper with ruled lines under each line of words (1lh; none without it) */
.st010 { overflow-x: clip; }
.st010__page { position: relative; margin: var(--k-s-7) auto 0; padding: 72px 28px 84px; text-align: left; }
.st010__page .st010__p:first-child { margin-top: 0; }
.st010__p { break-inside: avoid; }
@supports (height: 1lh) { .st010__p { background: linear-gradient(transparent calc(1lh - 1px), rgb(var(--c-primary-rgb) / .14) 0) 0 0 / 100% 1lh; } }
/* two roses pressed in its corners, held by paper tape; a garden tag with the couple's initials */
.st010-pressed { position: absolute; z-index: 1; width: 88px; aspect-ratio: 1; pointer-events: none; }
.st010-pressed--a { top: -28px; right: -14px; rotate: -18deg; }
.st010-pressed--b { bottom: -20px; left: -12px; rotate: 24deg; }
.st010-tape { position: absolute; left: 50%; top: 50%; width: 46px; height: 16px; translate: -50% -50%; rotate: 32deg; background: rgb(236 230 248 / .78); box-shadow: 0 1px 2px rgb(52 46 74 / .12);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 90%, 6% 100%, 0 92%); }
.st010-tag { position: absolute; z-index: 2; left: 18px; top: -6px; width: 74px; height: 50px; transform-origin: 50% -18px; pointer-events: none; }
.st010-tag__string { position: absolute; left: 50%; bottom: calc(100% - 8px); width: 1px; height: 26px; background: rgb(116 108 136 / .55); }
.st010-tag__in { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; padding-top: 13px; text-align: center; /* below the string's hole */
  background: radial-gradient(circle at 50% 8px, transparent 3px, rgb(var(--c-secondary-rgb) / .35) 3px 4px, #F3F0F9 4px);
  box-shadow: inset 0 0 0 1px rgb(var(--c-secondary-rgb) / .35); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px); }
.st010-tag__ini { font: 400 22px/1 var(--k-font-script); color: var(--c-primary-deep); }
.st010-tag__yr { font: 600 12px/1 var(--k-font-body); letter-spacing: .2em; color: var(--k-ink-soft); }
@media (min-width: 768px) {
  .st010__page { padding: clamp(88px, 8vw, 120px) clamp(56px, 7vw, 140px) clamp(96px, 9vw, 128px); }
  .st010-pressed { width: 112px; } .st010-pressed--a { top: -40px; right: -24px; } .st010-pressed--b { bottom: -32px; left: -18px; }
}
/* armed (JS, motion only): each line is written in by a soft pen edge; a line with no --st010-pen shows whole */
.st010.is-armed .st010-sl { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--st010-pen, 300vw) - 24px), transparent var(--st010-pen, 300vw)); mask-image: linear-gradient(90deg, #000 calc(var(--st010-pen, 300vw) - 24px), transparent var(--st010-pen, 300vw)); }
.st010.is-armed .st010-pressed:not(.is-in), .st010.is-armed .st010-tag:not(.is-in) { opacity: 0; }
