/* Blossom calendar · Luxe (core/date/015) — INV-12 Burgundy Blossom v2 · Luxe W2 (A1722; plan docs/plans/plan_inv12_v2_luxe_w2.md
   D1), a fork of core/date/013 (v2 Premium). The calendar on the Luxe skin: the lines are letterpressed in once (90 ms apart),
   the month prints day by day and a blossom drifts down onto the day (its shadow tightens, the numeral turns cream), and the
   swash under the title is a foil rule that catches the light. Every before state waits for the section's own is-armed, so
   lite, reduced motion and no JS show the finished calendar. Below: dt013's rules, then the Luxe block. */
.dt160 { color: var(--k-ink); text-align: center; }
.dt160 .dt160__in { padding: calc(var(--k-cw) * .16 + var(--k-join-room)) calc(var(--k-cw) * .09) calc(var(--k-cw) * .08 - 7px); } /* W1.2: bottom .12 x cw -> .08 x cw - 7 px: the calendar's
   last line carries 7-20 px of its own space (by sample), so the events' join ornament sits in the middle of its gap (joins.mjs) */
.dt160 .dt160__kicker { margin: 0 0 clamp(6px, 2cqw, 12px); }
.dt160 .dt160__title { margin: 0; font: 400 clamp(30px, 9cqw, 44px)/1.15 var(--k-font-script); color: var(--k-wine); }
.dt160 .dt160-rule { margin: clamp(6px, 2cqw, 12px) auto clamp(16px, 5cqw, 28px); } /* L16: the skin's .k-foil--rule (the swash as a foil mask) */

/* the month: Monday first (format.js monthGrid) */
.dt160 .dt160__page { max-width: 30em; margin: 0 auto; font-size: clamp(14px, 4.2cqw, 19px); }
.dt160 .dt160__wd, .dt160 .dt160__grid { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.dt160 .dt160__wd li { padding-bottom: .6em; font: 400 clamp(9px, 2.6cqw, 12px)/1 var(--k-font-caps); letter-spacing: .12em; color: var(--k-ink-soft); }
.dt160 .dt160__grid { position: relative; z-index: 0; row-gap: .25em; }
.dt160 .dt160__d { position: relative; display: grid; place-items: center; min-height: 2.5em;
  font: 600 1em/1 var(--k-font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--k-ink); }
.dt160 .dt160__d--blank .dt160__n { visibility: hidden; }
.dt160 .dt160__d--ev::after { content: ""; position: absolute; left: 50%; bottom: .3em; width: 3px; height: 3px; margin-left: -1.5px;
  border-radius: 50%; background: var(--k-gold); }
.dt160 .dt160__d--main::after { content: none; }
/* the pressed blossom sits under every number (z -1 inside the grid's stacking context) */
.dt160 .dt160__bloom { left: 50%; top: 50%; width: 2.6em; translate: -50% -50%; z-index: -1; }
/* rev3 A2: the day sits on the blossom's yellow stamens, so the cream numeral carries a halo in the couple's derived ink */
.dt160 .dt160__d--main .dt160__n { position: relative; isolation: isolate; color: #FCFCFD;
  text-shadow: 0 0 2px var(--k-wine, #AD4D6E), 0 0 6px var(--k-wine, #AD4D6E), 0 1px 2px rgb(40 0 10 / .35); }
/* W3 (A1732, parked #4): a soft wine heart under the cream numeral covers the blossom's yellow centre (the kit has no centre-less bloom) */
.dt160 .dt160__d--main .dt160__n::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 1.2em; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--k-wine, #AD4D6E) 80%, transparent) 50%, color-mix(in oklab, var(--k-wine, #AD4D6E) 0%, transparent)); }

/* under the month */
.dt160 .dt160__long { margin: clamp(18px, 5.6cqw, 30px) 0 0; font: 400 clamp(10px, 3.05cqw, 14.5px)/1.6 var(--k-font-caps);
  letter-spacing: .12em; text-transform: uppercase; color: var(--k-wine); }
.dt160 .dt160__cal { margin-top: clamp(16px, 5cqw, 26px); }
.dt160 .kjy-cal { display: inline-block; width: min(100%, 260px); }
.dt160 .kjy-cal__toggle { width: 100%; list-style: none; }
.dt160 .kjy-cal__toggle::-webkit-details-marker { display: none; }
.dt160 .kjy-cal__toggle::after { content: ""; width: 6px; height: 6px; margin-left: .7em;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dt160 .kjy-cal[open] .kjy-cal__toggle::after { transform: translateY(2px) rotate(225deg); }
.dt160 .kjy-cal__menu { margin-top: 8px; padding: 4px 0; background: var(--k-paper); border: 1px solid var(--k-wine); }
.dt160 .kjy-cal__opt { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  font: 400 clamp(10px, 2.9cqw, 13px)/1.2 var(--k-font-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--k-wine); text-decoration: none; }
.dt160 .kjy-cal__opt + .kjy-cal__opt { border-top: 1px solid var(--k-line); }
.dt160 .dt160__key { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.4em; margin: clamp(14px, 4cqw, 22px) 0 0; padding: 0;
  list-style: none; font: 400 clamp(8.5px, 2.5cqw, 11.5px)/1.5 var(--k-font-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--k-ink-soft); }
.dt160 .dt160__dot { display: inline-block; width: 3px; height: 3px; margin-right: .6em; border-radius: 50%; background: var(--k-gold); vertical-align: middle; }

/* W1.2 (A1660, plan docs/plans/plan_inv12_v2_w1_2.md D1): the skin's join ornament (.k-join) opens the section. The top
   padding takes the join's room, and the ornament's top puts it in the middle of the join: (this top - the section above's
   bottom) / 2, so the space above and below it match, and it stays inside this section (whose top is clipped). */
.dt160 > .k-join { top: calc((var(--k-cw) * .16 + var(--k-join-room)) / 2); }
/* W1.1: the near-full-width desktop card (the skin's query): the padding follows the skin's rhythm, not the card's width */
/* W2a (A1676): portrait tablets take this wide block too (plan_inv12_v2_w2.md A3) */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) {
  .dt160 > .k-join { top: calc((var(--k-dpad-t) + var(--k-join-room)) / 2); }
  .dt160 .dt160__in { padding: calc(var(--k-dpad-t) + var(--k-join-room)) calc(var(--k-cw) * .06) calc(var(--k-dpad-b) - 6px); }
}

/* ---------- Luxe (W2, A1722) ---------- */
/* L02: the date and the time are letterpressed too (the kicker and the title are, through the skin) */
.dt160 .dt160__long { text-shadow: var(--k-press); }
/* L15 parts: the landing wrapper covers the day cell (absolute: the cell is a grid, an in-flow wrapper would push the numeral
   to row 2); the shadow sits on it and never turns (AG-T162); W3: at rest it stays as a soft contact shadow (.2) */
.dt160 .dt160__land { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dt160 .dt160__shade { position: absolute; left: 50%; top: 50%; width: 2.4em; height: 1em; translate: -50% 30%; z-index: -1; opacity: .26; scale: .5;
  background: radial-gradient(closest-side, rgb(50 40 48 / .6), rgb(50 40 48 / 0)); }
.dt160 .dt160__page.is-landed .dt160__d--main .dt160__n { transition: color .4s ease, text-shadow .4s ease; } /* on the landed state only: arming switches at once */
.dt160 .dt160__page.is-landed .dt160__d--main .dt160__n::before { transition: opacity .4s ease; }
.dt160 .dt160__page.is-landed .dt160__d--ev::after { transition: opacity .3s ease; }
/* L14 + L15: armed by the script; the month prints day by day, then the blossom drifts down onto the day and the numeral turns
   cream (no wine halo before it lands); the other event days' dots follow the landing. Land and turn move transform, so the
   bloom's centring translate composes untouched. The animations need is-armed too, so a late lite look stops them (review) */
html.kjy-fx .dt160 .dt160__page.is-armed:not(.is-printed) :is(.dt160__d, .dt160__land) { opacity: 0; }
html.kjy-fx .dt160 .dt160__page.is-armed:not(.is-landed) .dt160__d--ev::after { opacity: 0; }
html.kjy-fx .dt160 .dt160__page.is-armed:not(.is-landed) .dt160__d--main .dt160__n { color: var(--k-wine); text-shadow: none; }
html.kjy-fx .dt160 .dt160__page.is-armed:not(.is-landed) .dt160__d--main .dt160__n::before { opacity: 0; }
html.kjy-fx .dt160 .dt160__page.is-armed.is-printed .dt160__d { animation: dt160-print 420ms var(--k-ease) calc(var(--dt160-i) * 14ms) both; }
html.kjy-fx .dt160 .dt160__page.is-armed.is-printed .dt160__land { animation: dt160-land 1100ms cubic-bezier(.3, .7, .2, 1) calc(var(--dt160-n) * 14ms + 280ms) both; }
html.kjy-fx .dt160 .dt160__page.is-armed.is-printed .dt160__bloom { animation: dt160-turn 1100ms cubic-bezier(.3, .7, .2, 1) calc(var(--dt160-n) * 14ms + 280ms) both; }
html.kjy-fx .dt160 .dt160__page.is-armed.is-printed .dt160__shade { animation: dt160-shade 1100ms ease calc(var(--dt160-n) * 14ms + 280ms) both; }
@keyframes dt160-print { from { opacity: 0; translate: 0 3px; } to { opacity: 1; translate: 0 0; } }
@keyframes dt160-land { from { opacity: 0; transform: translate(-8px, -54px); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes dt160-turn { from { transform: rotate(-64deg) scale(.84); } to { transform: none; } }
@keyframes dt160-shade { from { opacity: 0; scale: 1; } 70% { opacity: .45; scale: .62; } to { opacity: .26; scale: .5; } }
/* the letterpress entrance: a line appears, settles from .985 to full size, then its press shadow deepens (no mask, so the
   foil rule's own scroll glint is untouched); the transition is on the shown state, so arming hides at once (review) */
html.kjy-fx .dt160.is-armed [data-dt160-in].is-in { transition: opacity 700ms var(--k-ease) calc(var(--dt160-j, 0) * 120ms),
  scale 900ms var(--k-ease-press) calc(var(--dt160-j, 0) * 120ms), text-shadow 500ms ease calc(var(--dt160-j, 0) * 120ms + 420ms); }
html.kjy-fx .dt160.is-armed [data-dt160-in]:not(.is-in) { opacity: 0; scale: .975; text-shadow: none; } /* eye r1: .985 -> .975, 120 ms apart */

/* INV-12B W1d (A2569; owner 2026-11-02: "sprinkle more blossom on the left side, it looks a bit empty"): a mirrored spray on
   the card's left, opposite this section's right-hand corner (the long card had blossom on the right only). */
.dt160 .dt160__cornerl { width: 13cqw; left: -3cqw; bottom: 3%; rotate: -24deg; scale: -1 1; }
@media (min-aspect-ratio: 1/1) and (min-width: 1000px), (max-aspect-ratio: 999/1000) and (min-width: 700px) { .dt160 .dt160__cornerl { width: min(13cqw, 110px); } }
