/* The Day cards (core/events/070) — INV-04 Keepsake Table · Luxe W1 (A1987; plan docs/plans/plan_inv04_keepsake_table_master.md).
   Stage 1, still. One tall "The Day" card per day lies on the table (section.js deals the events into days; one card
   holds everything without JavaScript). Each card: "Day one" in capitals, "The Day" in the couple's script, the date,
   a gold rule, then each event: a gold line icon with a small leaf in the couple's colour (the skin's k-kt-ico-* set,
   picked by the engine's event kind; the leaf is this section's own symbol), the time, the name in capitals, the venue, the dress code, Map and Add to
   calendar. Phone: the cards stack, dealt overlapping and turned a little; from 760 px they lie side by side. A
   corner cluster of white flowers sits under the deck's top corner. Shadows: the skin's --k-sh-* tokens only. */
.ev070 { position: relative; z-index: 1; background: var(--k-light-ground); color: var(--k-ink); padding: var(--k-section-pad) 0 0; }
.ev070__head { padding: 0 var(--k-gutter); text-align: center; }
.ev070 .k-kicker + .k-title { margin-top: var(--k-s-2); }
.ev070__lay { position: relative; width: min(92vw, 480px); margin: var(--k-s-7) auto 0; }
.ev070__fl { position: absolute; z-index: 2; width: clamp(170px, 46vw, 340px); right: -16%; top: -10%; }
/* mirrored, not turned: the photo's light stays at the top (AG-T284); the element itself never turns (its shadow) */
.ev070__fl::before { scale: -1 1; rotate: -10deg; }
/* W1.4 (A2034): a brass key beside the day card, its bow tucked under the card's right edge */
.ev070__key { position: absolute; z-index: 2; width: clamp(30px, 8.5vw, 50px); right: -7%; top: 46%; }
.ev070__key::before { rotate: 7deg; }
.ev070__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ev070__deck { position: relative; z-index: 1; display: grid; gap: 0; }

/* ---- a card ---- */
.ev070-card { position: relative; filter: none; rotate: -1deg; }
.ev070-card + .ev070-card { margin-top: -18px; rotate: 1.2deg; }
.ev070-card + .ev070-card + .ev070-card { rotate: -.6deg; }
.ev070-card__paper { position: relative; padding: clamp(36px, 6svh, 52px) clamp(20px, 6vw, 40px) clamp(30px, 5svh, 44px); box-shadow: var(--k-edge), var(--k-sh-card); }
.ev070-card__paper::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(var(--c-secondary-rgb) / .5); pointer-events: none; }
.ev070-card__head { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ev070-card__head [hidden] { display: none; }
.ev070-card__kicker { font: 400 .78rem/1.4 var(--k-font-display); letter-spacing: .26em; text-transform: uppercase; color: var(--c-secondary-dark); }
.ev070-card__title { margin: 0; font: 400 clamp(2.5rem, 11vw, 3.2rem)/1.1 var(--k-font-script); color: var(--k-script-ink); }
.ev070-card__date { font: 400 clamp(.86rem, 3.6vw, .98rem)/1.4 var(--k-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.ev070-card__date:empty { display: none; }
.ev070-card__rule { width: min(60%, 200px); margin: var(--k-s-3) auto 0; }

/* ---- an event ---- */
.ev070-card__list { margin: var(--k-s-5) 0 0; padding: 0; list-style: none; }
.ev070-ev { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: var(--k-s-4); align-items: start; }
.ev070-ev + .ev070-ev { margin-top: var(--k-s-5); padding-top: var(--k-s-5); border-top: 1px dotted rgb(var(--c-secondary-rgb) / .6); }
/* W1.4 (A2034; the owner's W1.1 remark "an ink line connects the events"): a hand-wobbled ink stroke runs from each
   event's icon down to the next one's (the skin's ink-line-v as a mask, repeat-y); the dotted separator leaves the icon
   column so the line runs clear. :last-child is per card, after section.js deals the events. Still; it draws in stage 2 */
.ev070-ev { position: relative; }
.ev070-ev:not(:last-child)::before { content: ""; position: absolute; left: 16px; width: 8px; top: 48px; bottom: -47px; pointer-events: none;
  background: color-mix(in oklab, var(--c-primary) 82%, #000);
  -webkit-mask: var(--k-kt-inkline) 0 0 / 8px auto repeat-y; mask: var(--k-kt-inkline) 0 0 / 8px auto repeat-y; }
.ev070-ev + .ev070-ev::before { top: 72px; }
.ev070-ev + .ev070-ev { border-top: 0; }
.ev070-ev + .ev070-ev::after { content: ""; position: absolute; left: 62px; right: 0; top: 0; border-top: 1px dotted rgb(var(--c-secondary-rgb) / .6); pointer-events: none; }
.ev070-ev__ico { position: relative; display: block; width: 40px; height: 40px; margin-top: 2px; color: var(--c-secondary-dark); }
.ev070-ev__line { width: 40px; height: 40px; }
.ev070-ev__leaf { position: absolute; right: -7px; bottom: -3px; width: 16px; height: 16px; color: var(--c-primary); }
.ev070-ev__text { min-width: 0; }
.ev070-ev__day { font: 400 .72rem/1.4 var(--k-font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); }
.ev070.is-dealt .ev070-ev__day { display: none; }
.ev070-ev__time { font: 400 .9rem/1.3 var(--k-font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--c-secondary-dark); text-wrap: balance; }
.ev070-ev__name { margin: 2px 0 0; font: 400 clamp(1.02rem, 4.4vw, 1.15rem)/1.3 var(--k-font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--k-ink); overflow-wrap: anywhere; }
.ev070 .ev070-nb { white-space: nowrap; }
.ev070-ev__venue { margin-top: 4px; font: italic 500 1.08rem/1.35 var(--k-font-body); color: var(--k-ink); }
.ev070-ev__fact { margin-top: 2px; font: 500 1rem/1.4 var(--k-font-body); color: var(--k-ink-soft); }
.ev070-ev__links { display: flex; flex-wrap: wrap; gap: var(--k-s-2); margin-top: var(--k-s-3); }
.ev070 .k-btn { min-height: 44px; padding: 0 var(--k-s-4); font-size: .68rem; }
.ev070 .k-ico { width: 15px; height: 15px; }
.ev070 .kjy-cal { position: relative; }
.ev070 .kjy-cal__toggle { list-style: none; }
.ev070 .kjy-cal__toggle::-webkit-details-marker { display: none; }
.ev070 .kjy-cal__menu { position: absolute; z-index: 3; left: 0; top: calc(100% + 6px); min-width: 210px; padding: var(--k-s-1) 0;
  background: var(--k-card); border: 1px solid rgb(var(--c-secondary-rgb) / .45); border-radius: 12px; box-shadow: var(--k-sh-card); }
.ev070 .kjy-cal__opt { display: flex; align-items: center; min-height: 44px; padding: 0 var(--k-s-4); font: 500 1.02rem/1.2 var(--k-font-body); color: var(--c-primary); text-decoration: none; }
.ev070 .kjy-cal__opt + .kjy-cal__opt { border-top: 1px solid rgb(var(--c-secondary-rgb) / .3); }

/* ---- tablets and computers: the day cards side by side ---- */
@media (min-width: 760px) {
  .ev070__lay { width: 92vw; }
  /* the column count comes from the minimum (a fixed maximum would count by 520 px and stack two cards on a tablet) */
  .ev070__deck { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); justify-items: center; column-gap: clamp(20px, 3vw, 48px); row-gap: var(--k-s-6); align-items: start; }
  .ev070-card { width: 100%; max-width: 540px; }
  .ev070-card + .ev070-card { margin-top: 28px; }
  .ev070__fl { right: -4%; top: -14%; width: clamp(240px, 24vw, 380px); }
  /* W1.4: the key beside the deck; one day card is centred at its 540 px, so the key lies 64 px off that card's edge */
  .ev070__key { right: -1%; width: 56px; }
  .ev070__lay:has(.ev070__deck > .ev070-card:only-child) .ev070__key { right: calc(50% - 270px - 64px); }
}
@media (min-width: 1100px) {
  .ev070__lay { width: min(90vw, 1500px); }
  .ev070__deck { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
  .ev070-card { max-width: 580px; }
  .ev070-card__paper { padding: 56px 48px 48px; }
  .ev070__lay:has(.ev070__deck > .ev070-card:only-child) .ev070__key { right: calc(50% - 290px - 72px); width: 62px; }
}

/* ---- stage 2 W2.2 (A2057; plan ~/.claude/plans/witty-leaping-globe.md, the owner's pick "the ink line draws the day"):
   section.js draws each ink line down with the scroll (--ev070-p, high-water: it never undraws) and sets the next event
   down when the line reaches it (its icon and words rise 10 px and come in, once). The before states exist only while
   the script runs (.is-armed under kjy-fx): lite, reduced motion and no JS show every line and every event ---- */
html.kjy-fx .ev070.is-armed .ev070-ev:not(:last-child)::before { clip-path: inset(0 0 calc((1 - var(--ev070-p, 1)) * 100%) 0); }
html.kjy-fx .ev070.is-armed .ev070-ev > :is(.ev070-ev__ico, .ev070-ev__text) { transition: opacity .6s var(--k-ease), translate .6s var(--k-ease); }
html.kjy-fx .ev070.is-armed .ev070-ev.is-wait > :is(.ev070-ev__ico, .ev070-ev__text) { opacity: 0; translate: 0 10px; }
html.kjy-fx .ev070.is-armed .ev070-ev > .ev070-ev__text { transition-delay: .12s; }
