/* Circled month · Luxe paper (core/date/007) — fork of core/date/006 for INV-01 Luxe (finish w1): the page is
   Luxe paper (ivory cotton + a gold edge, GLPAPER block). From core/date/006 — inv01_v2 w1: a calendar page for the main day's month, hung on a
   twine loop, with the day circled by a pen loop that ends in a small heart. A light part over the skin's light ground.
   Still states: the base is the finished page (ring drawn, heart shown); the start state lives under
   html.kjy-fx:not(.kjy-lite), so reduced motion, no JavaScript and lite devices all show the drawn ring. */
/*GLPAPER-CSS>*/
.dt021 { --dt021-ivory: #FFFFFF; }
.dt021-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(--dt021-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); }
.dt021-paper__deboss, .dt021-paper__foil { position: absolute; z-index: 0; pointer-events: none; }
.dt021-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); }
.dt021-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) {
  .dt021-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; }
  .dt021-paper.is-lit .dt021-paper__foil { animation: dt021-glint 1.4s cubic-bezier(.45, 0, .25, 1) 1 both; }
}
@keyframes dt021-glint { from { background-position: 100% 0; } to { background-position: 0 0; } }
html.motion-reduce .dt021-paper.is-lit .dt021-paper__foil { animation: none; }
@media (prefers-reduced-motion: reduce) { .dt021-paper.is-lit .dt021-paper__foil { animation: none; } }
/*<GLPAPER-CSS*/
.dt021 { background: var(--k-light-ground); color: var(--k-ink); }
.dt021__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;
}
.dt021 .k-kicker + .k-title { margin-top: var(--k-s-2); }

/* The page */
.dt021__page {
  position: relative; width: min(100%, 420px); margin: var(--k-s-8) auto 0;
  padding: var(--k-s-7) var(--k-s-6) var(--k-s-6); /* the gold edge sits 18 px in: content clears it by 14 px */
}
@media (min-width: 768px) { .dt021__page { width: 460px; } }
@media (min-width: 1200px) { .dt021__page { width: 500px; } }
.dt021__twine { position: absolute; left: 50%; top: -30px; width: 120px; height: 50px; margin-left: -60px; overflow: visible; }
.dt021__twine path { fill: none; stroke: var(--c-secondary); stroke-width: 1.5; stroke-linecap: round; }
.dt021__twine circle { fill: var(--c-secondary-dark); }
.dt021__hole {
  position: absolute; z-index: 1; top: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--k-paper); box-shadow: inset 0 1px 2px rgb(0 0 0 / .22);
}
.dt021__hole--l { left: calc(50% - 53px); }
.dt021__hole--r { left: calc(50% + 43px); }
.dt021__month { margin: 0; font: 400 clamp(2.75rem, 12vw, 3.5rem)/1.05 var(--k-font-script); color: var(--c-primary-deep); }
.dt021__year {
  margin: var(--k-s-1) 0 var(--k-s-5);
  font: 600 .8125rem/1.4 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .32em; text-transform: uppercase; color: var(--k-ink-soft);
}

/* The grid */
.dt021__wd, .dt021__grid { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.dt021__wd {
  padding-bottom: var(--k-s-2); margin-bottom: var(--k-s-2); border-bottom: 1px solid rgb(var(--c-secondary-rgb) / .3);
  font: 600 .75rem/1 var(--k-font-display); letter-spacing: .14em; color: var(--c-secondary-dark);
}
@media (min-width: 768px) { .dt021__wd { font-size: .8125rem; } }
.dt021__d {
  position: relative; display: grid; place-items: center; height: clamp(38px, 10.5vw, 48px);
  font: 500 clamp(1.0625rem, 4.6vw, 1.375rem)/1 var(--k-font-body); color: var(--k-ink); font-variant-numeric: lining-nums;
}
.dt021__n { position: relative; z-index: 1; }
.dt021__d--main { color: var(--c-primary-deep); font-weight: 600; }
.dt021__d--ev::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--c-secondary);
}
.dt021__ring {
  /* the skin caps svg at max-width 100%; the loop keeps the drawing's 6:5 shape at every cell size */
  position: absolute; left: 50%; top: 50%; height: 140%; width: auto; max-width: none; aspect-ratio: 6 / 5;
  transform: translate(-50%, -50%); overflow: visible; pointer-events: none;
}
.dt021__loop {
  fill: none; stroke: var(--c-primary); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.dt021__heart { fill: var(--c-primary); }
html.kjy-fx:not(.kjy-lite) .dt021__loop { stroke-dashoffset: 1; }
html.kjy-fx:not(.kjy-lite) .dt021__heart { opacity: 0; }

/* Under the page */
.dt021__long { margin: var(--k-s-7) 0 0; font: 600 clamp(1.1875rem, 5vw, 1.375rem)/1.3 var(--k-font-display); color: var(--k-ink); }
.dt021__time { margin: var(--k-s-1) 0 0; font: italic 500 1.125rem/1.4 var(--k-font-body); color: var(--k-ink-soft); }
.dt021__cal { margin-top: var(--k-s-5); }
.dt021 .kjy-cal { display: inline-block; width: min(100%, 260px); }
.dt021 .kjy-cal__toggle { width: 100%; list-style: none; }
.dt021 .kjy-cal__toggle::-webkit-details-marker { display: none; }
.dt021 .kjy-cal__toggle::after {
  content: ""; width: 7px; height: 7px; margin-left: var(--k-s-1);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.dt021 .kjy-cal[open] .kjy-cal__toggle::after { transform: translateY(2px) rotate(225deg); }
.dt021 .kjy-cal__menu {
  margin-top: var(--k-s-2); padding: var(--k-s-1) 0; background: var(--k-paper);
  border: 1px solid rgb(var(--c-secondary-rgb) / .35); border-radius: 12px;
}
.dt021 .kjy-cal__opt {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--k-s-4);
  font-size: 1.0625rem; color: var(--c-primary); text-decoration: none;
}
.dt021 .kjy-cal__opt + .kjy-cal__opt { border-top: 1px solid rgb(var(--c-secondary-rgb) / .25); }
.dt021__key {
  display: inline-grid; gap: var(--k-s-2); margin: var(--k-s-6) auto 0; padding: 0; list-style: none; text-align: left;
  font: 500 1rem/1.4 var(--k-font-body); color: var(--k-ink-soft);
}
.dt021__dot {
  display: inline-block; width: 6px; height: 6px; margin: 0 var(--k-s-2) 2px 0;
  border-radius: 50%; background: var(--c-secondary); vertical-align: middle;
}
/* tablets and laptops: the calendar page and the date words side by side across the screen less a thin margin */
.dt021__spread, .dt021__info { display: contents; }
@media (min-width: 768px) {
  .dt021 { --dt021-frame: 92vw; }
  .dt021__inner { max-width: none; width: var(--dt021-frame); padding-inline: 0; }
  .dt021__spread { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(48px, 5vw, 96px); align-items: center; margin-top: var(--k-s-8); }
  .dt021__spread:not(:has(.dt021__page)) { display: block; margin-top: 0; }
  .dt021__page { width: 100%; margin: 0; }
  .dt021__info { display: block; }
  .dt021__info > :first-child { margin-top: 0; }
}
@media (min-width: 1100px) {
  .dt021 { --dt021-frame: min(90vw, 1728px); }
  .dt021__page { max-width: 760px; justify-self: end; }
  .dt021__long { font-size: 1.875rem; }
  .dt021__time { font-size: 1.3125rem; }
}
