/* The order of the day · Luxe (core/events/018). A printed programme on the sheet under a small gilded arch: "The day" (or
   "The celebrations" over several days) under the ornament, then the times in gold caps on the left (about 30 %,
   right-aligned), a 1 px foil rule down the middle with a 5 px gold diamond at each time, and the name, note, venue and
   dress code on the right. A bud and eucalyptus sit at the rule's top, a daisy at its foot (the skin's art). The daisy
   draws the rule down with the scroll; each row opens as the daisy reaches it. cqw resolves against
   the column; the gap leaves the riding daisy 8 px clear of both columns. */
.ev018 .ev018__prog { --ev018-tw: 30%; }
.ev018 { --ev018-gap: clamp(44px, 11cqw, 56px); --ev018-art: min(calc(var(--k-ga-k) * 56px), 56px);
  padding: calc(var(--k-ga-gap) / 2) 0; color: var(--k-ink); }
.ev018 .ev018__head { text-align: center; }
.ev018 .ev018__title { margin: 0; font: 600 clamp(12px, 3.5cqw, 16px)/1.2 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .34em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev018 .ev018-rule { display: block; width: clamp(110px, 34cqw, 190px); height: auto; margin: clamp(8px, 2.4cqw, 14px) auto 0;
  color: var(--k-line); overflow: visible; }

/* the programme: the rule runs from the art at the top to the art at the foot */
.ev018 .ev018__prog { position: relative; margin-top: clamp(14px, 4cqw, 22px); }
.ev018 .ev018__line { position: absolute; left: calc(var(--ev018-tw) + var(--ev018-gap) / 2); top: calc(var(--ev018-art) * .7); bottom: calc(var(--ev018-art) * .37);
  width: 1px; margin-left: -.5px; background: linear-gradient(#7E6233, #B08E52 22%, #E4CF9C 38%, #A3834A 52%, #C6A866 72%, #806437);
  transform-origin: 50% 0; }
.ev018 .ev018__top, .ev018 .ev018__foot { position: relative; }
.ev018 .ev018__foot { height: calc(var(--ev018-art) * .82); } /* the daisy's own height, so the section ends where its ink does */
.ev018 .ev018__top { height: calc(var(--ev018-art) * 1.2); }
.ev018 .ev018__a { position: absolute; display: block; background: center / contain no-repeat; pointer-events: none; }
.ev018 .ev018__a--euc { width: var(--ev018-art); aspect-ratio: var(--k-ga-ar-p-euc1, 1.0619); left: calc(var(--ev018-tw) + var(--ev018-gap) / 2 - var(--ev018-art) * .86);
  top: 2%; transform: rotate(-20deg); translate: 0 calc(var(--ev018-dz, 0) * -14px); }
.ev018 .ev018__a--bud { width: calc(var(--ev018-art) * .62); aspect-ratio: var(--k-ga-ar-p-bud, .5063); left: calc(var(--ev018-tw) + var(--ev018-gap) / 2 - var(--ev018-art) * .2);
  top: -8%; transform: rotate(-20deg); translate: 0 calc(var(--ev018-dz, 0) * -42px); filter: drop-shadow(0 8px 12px rgb(66 46 18 / .2)); }
.ev018 .ev018__a--daisy { width: calc(var(--ev018-art) * .82); aspect-ratio: var(--k-ga-ar-p-daisy1, 1); left: calc(var(--ev018-tw) + var(--ev018-gap) / 2 - var(--ev018-art) * .41);
  top: 0; filter: drop-shadow(0 8px 12px rgb(66 46 18 / .2)); }
/* the parts are the same files op032's low spray loads on the cover, so they add nothing before the tap */
.ev018 .ev018__a--euc { background-image: var(--k-ga-art-p-euc1); }
.ev018 .ev018__a--bud { background-image: var(--k-ga-art-p-bud); }
.ev018 .ev018__a--daisy { background-image: var(--k-ga-art-p-daisy1); }

/* from a 600 px column (tablets and computers) the rule runs down the middle of the page, under the title: the times
   end at it on the left and the names start from it on the right */
@container (min-width: 600px) { .ev018 .ev018__prog { --ev018-tw: calc(50% - var(--ev018-gap) / 2); } }
/* one event: the rule keeps some length between the art */
.ev018 .ev018__list:has(> .ev018-row:only-child) { padding-block: calc(var(--k-ga-k) * 26px); }
.ev018 .ev018-nb { white-space: nowrap; }

/* the rows */
.ev018 .ev018__list { position: relative; margin: 0; padding: 0; list-style: none; }
.ev018 .ev018-row { position: relative; display: grid; grid-template-columns: var(--ev018-tw) 1fr; column-gap: var(--ev018-gap); align-items: start;
  padding: clamp(17px, 5cqw, 28px) 0; }
.ev018 .ev018-row__when { text-align: right; }
.ev018 .ev018-row__date { margin: 0 0 .45em; font: 600 clamp(9.5px, 2.8cqw, 13px)/1.35 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev018 .ev018-row__time { position: relative; margin: 0; font: 600 clamp(13px, 3.8cqw, 17px)/1.3 var(--k-font-display); font-variant-numeric: lining-nums;
  letter-spacing: .14em; text-transform: uppercase; color: var(--k-gold-ink); text-wrap: balance; }
/* the diamond on the rule, level with the time */
.ev018 .ev018-row__time::after { content: ""; position: absolute; top: .65em; right: calc(var(--ev018-gap) / -2 - 4px); width: 8px; height: 8px;
  margin-top: -4px; background: #A3834A; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); rotate: 0deg; }
/* each row waits for the daisy (section.js) and opens as it passes the row's keystone: a gold ring breathes out from the
   keystone, the time unveils leftward from the rule and the details rightward, while the words print and rise inside them
   (the skin's entrance). The time column's right edge stays open for the keystone and its ring. */
.ev018 .ev018-row__time::before { content: ""; position: absolute; top: .65em; right: calc(var(--ev018-gap) / -2 - 25px); width: 50px; height: 50px;
  margin-top: -25px; border: 1px solid rgb(184 154 98 / .85); border-radius: 50%; opacity: 0; pointer-events: none; }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018-row.k-wait .ev018-row__when { clip-path: inset(-1em calc(var(--ev018-gap) / -2 - 34px) -1em 100%); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018-row.k-wait .ev018-row__what { clip-path: inset(-1em 100% -1em -12px); }
.ev018-row.k-in:not(.k-done) .ev018-row__when { clip-path: inset(-1em calc(var(--ev018-gap) / -2 - 34px) -1em -12%); transition: clip-path 1100ms cubic-bezier(.22, .8, .2, 1); }
.ev018-row.k-in:not(.k-done) .ev018-row__what { clip-path: inset(-1em -12% -1em -12px); transition: clip-path 1100ms cubic-bezier(.22, .8, .2, 1) 60ms; }
/* the section's own group is done long before the daisy opens the later rows, and the skin's `.k-done [data-k-rise]` would
   then drop their names' arch at once: an opening row keeps the rise through the arch until it is done itself */
.ev018 .ev018-row.k-in:not(.k-done) [data-k-rise] { clip-path: inset(-40% -20% -30% -20% round 50% 50% 0 0 / 2.4em 2.4em 0 0); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018-row.k-in:not(.k-done) .ev018-row__time::before { animation: ev018-ring 1000ms cubic-bezier(.2, .7, .3, 1) both; }
@keyframes ev018-ring { 0% { opacity: 0; scale: .15; } 18% { opacity: .9; } 100% { opacity: 0; scale: 1; } }
/* each time's keystone settles on the rule as its row arrives (after its time prints) */
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018-row.k-wait .ev018-row__time::after { opacity: 0; translate: 0 -10px; rotate: -45deg; }
.ev018-row.k-in .ev018-row__time::after { transition: opacity 200ms ease calc(var(--k-at, 0ms) + 150ms), translate 520ms cubic-bezier(.3, 1.3, .5, 1) calc(var(--k-at, 0ms) + 150ms),
  rotate 520ms cubic-bezier(.3, 1.3, .5, 1) calc(var(--k-at, 0ms) + 150ms); }
.ev018 .ev018-row__what { text-align: left; }
.ev018 .ev018-row__name { margin: 0; font: 500 clamp(19px, 6cqw, 26px)/1.2 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .06em; text-transform: uppercase; color: var(--k-ink); }
.ev018 .ev018-row__note { margin: .2em 0 0; font: italic 500 clamp(15px, 4.4cqw, 20px)/1.3 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink-soft); }
.ev018 .ev018-row__venue, .ev018 .ev018-row__dress { margin: .45em 0 0; font: 600 clamp(9.5px, 2.8cqw, 13px)/1.45 var(--k-font-display); font-variant-numeric: lining-nums;
  letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-soft); }

/* the gilded arch above (the skin draws it; a width of its own for other skins) */
.ev018 .k-aj { width: var(--k-aj-w, min(210px, 58%)); }
/* the daisy draws the day (section.js): it rolls down the rule with the scroll, the gold drawn behind it over a faint
   track, pops as it passes each keystone (never stopping) and settles at the foot; its shadow offset is turned back by its own
   angle, so the shadow stays put on screen. Lite, reduced motion and no script: the whole rule, the daisy at the foot */
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018.is-riding [data-ev018-line] { transform: scaleY(var(--ev018-t, 0)); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018.is-riding .ev018__prog::before { content: ""; position: absolute; left: calc(var(--ev018-tw) + var(--ev018-gap) / 2);
  top: calc(var(--ev018-art) * .7); bottom: calc(var(--ev018-art) * .37); width: 1px; margin-left: -.5px; background: rgb(163 131 74 / .22); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .ev018.is-riding .ev018__a--daisy { translate: 0 var(--ev018-ry, 0px); rotate: var(--ev018-rr, 0deg);
  scale: var(--ev018-rs, 1); opacity: var(--ev018-ro, 1);
  filter: drop-shadow(calc(8px * sin(var(--ev018-rr, 0deg))) calc(8px * cos(var(--ev018-rr, 0deg))) 12px rgb(66 46 18 / .2)); }
