/* Kolačići: a ledger. The title over the fold of an open book, what is never set struck through on the left, what may
   be stored on the right; each of the three in full with its duration drawn as a line; this browser, right now.
   Page prefix: kc-. */

.ln { display: block; clip-path: inset(-45% -8% -.24em -8%); }
.lni { display: inline-block; }
code { font: inherit; }

/* =================== the ledger =================== */
.kc-open { padding: clamp(28px, 3.4vw, 64px) var(--g) clamp(60px, 7vw, 120px); }
.kc-kick { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; border-bottom: 1.6px solid var(--ink); font: 600 12.5px/1.2 var(--ft); font-stretch: 75%; letter-spacing: .17em; text-transform: uppercase; color: var(--ink2); }
.kc-h1 { margin: clamp(30px, 3.6vw, 64px) 0 0; text-align: center; font: 900 clamp(72px, 12.4vw, 236px)/.84 var(--fd); letter-spacing: -.05em; }
.kc-h1 .ln { clip-path: inset(-45% -4% -.24em -4%); }
.js .kc-h1 .lni { animation: kc-rise 1.3s var(--ease) .05s both; }
@keyframes kc-rise { from { transform: translateY(112%); } to { transform: none; } }
.kc-book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(30px, 3.6vw, 60px); border-top: 1.6px solid var(--ink); border-bottom: 1px solid var(--rule); }
.kc-book::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.6px; margin-left: -.8px; background: var(--ink); transform-origin: 50% 0; }
.js .kc-book::before { animation: kc-fold 1.2s var(--door) .3s both; }
@keyframes kc-fold { from { transform: scaleY(0); } to { transform: none; } }
.kc-pg { padding: clamp(26px, 3vw, 50px) clamp(22px, 3.4vw, 64px) clamp(32px, 3.6vw, 60px) 0; }
.kc-yes { padding-left: clamp(22px, 3.4vw, 64px); padding-right: 0; }
.kc-colh { display: flex; align-items: center; gap: 12px; font: 600 12.5px/1.2 var(--ft); font-stretch: 75%; letter-spacing: .17em; text-transform: uppercase; color: var(--ink2); }
.kc-mk { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.kc-mk-no { box-shadow: inset 0 0 0 1.6px var(--ink3); }
.kc-mk-yes { background: var(--green); }
.kc-nol { margin-top: clamp(8px, 1vw, 14px); }
.kc-nol li { position: relative; width: fit-content; max-width: 100%; margin-top: clamp(16px, 1.8vw, 28px); font: 850 clamp(34px, 3.9vw, 72px)/1.04 var(--fd); letter-spacing: -.03em; color: var(--ink3); }
.kc-strike { position: absolute; left: -.05em; right: -.05em; top: 52%; height: .075em; border-radius: 99px; background: var(--terra); transform-origin: 0 50%; }
.js .kc-strike { animation: kc-strike 1s var(--door) both; animation-delay: calc(1s + var(--i, 0) * .4s); }
@keyframes kc-strike { from { transform: scaleX(0); } to { transform: none; } }
.kc-yl { margin-top: clamp(10px, 1.2vw, 18px); }
.kc-yl a { display: grid; grid-template-columns: 30px auto minmax(24px, 1fr) auto; align-items: baseline; column-gap: 14px; padding: clamp(15px, 1.5vw, 22px) 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.kc-yl li:last-child a { border-bottom: 0; }
.kc-yn { font: 600 12.5px/1 var(--ft); font-stretch: 75%; letter-spacing: .15em; color: var(--terra); }
.kc-yc { font: 850 clamp(22px, 2.1vw, 34px)/1.1 var(--fd); letter-spacing: -.012em; transition: color .3s; overflow-wrap: anywhere; }
.kc-yd { height: 3px; background: radial-gradient(circle, rgba(34, 28, 22, .45) 1.05px, transparent 1.5px) 0 50% / 9px 3px repeat-x; }
.kc-yw { font: 500 clamp(14.5px, 1.1vw, 16.5px)/1.4 var(--ft); color: var(--ink2); text-align: right; }
.kc-yl a:hover .kc-yc { color: var(--terra); }
.kc-check { display: flex; gap: 12px; align-items: baseline; margin-top: 22px; max-width: 52em; font: 500 clamp(15px, 1.15vw, 17px)/1.5 var(--ft); color: var(--ink2); }
.kc-check::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }

/* =================== the three, in full =================== */
.kc-list { padding: clamp(90px, 10vw, 160px) var(--g) clamp(90px, 10vw, 160px); }
.kc-lh { max-width: 1000px; }
.kc-items { margin-top: clamp(50px, 6vw, 100px); display: grid; gap: clamp(56px, 7vw, 110px); }
.kci { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.2vw; row-gap: 26px; align-items: start; padding-top: clamp(22px, 2.2vw, 34px); border-top: 1.6px solid var(--ink); scroll-margin-top: calc(var(--hd) + 20px); }
.kci-id { grid-column: 1 / 5; }
.kci-n { font: 600 12.5px/1 var(--ft); font-stretch: 75%; letter-spacing: .16em; color: var(--terra); }
.kci-name { margin-top: 12px; font: 900 clamp(34px, 3.6vw, 62px)/1 var(--fd); letter-spacing: -.02em; overflow-wrap: anywhere; }
.kci-kind { margin-top: 10px; font: 700 11.5px/1.3 var(--ft); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.kci-dl { grid-column: 6 / 13; display: grid; grid-template-columns: .8fr 1.6fr 1fr; gap: 18px clamp(18px, 2vw, 34px); padding-top: 8px; }
.kci-dl dt { font: 600 11.5px/1.3 var(--ft); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin-bottom: 8px; }
.kci-dl dd { margin: 0; font: 500 16.5px/1.5 var(--ft); text-wrap: pretty; }
.kci-line { grid-column: 6 / 13; position: relative; height: 40px; margin-top: 4px; }
.kl-bar { position: absolute; left: 0; top: 10px; height: 2px; width: var(--len, 40%); border-radius: 2px; background: var(--ink); transform-origin: 0 50%; }
.kl-dot { position: absolute; top: 5px; left: calc(var(--len, 40%) - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 5px rgba(198, 93, 59, .18); }
.kl-0, .kl-1 { position: absolute; top: 24px; font: 600 11px/1.2 var(--ft); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.kl-0 { left: 0; }
.kl-1 { left: var(--len, 40%); transform: translateX(-100%); }
.kl-bar::before { content: ''; position: absolute; left: -1px; top: -5px; width: 2px; height: 12px; background: var(--ink); border-radius: 1px; }
.kci-fix { --len: 34%; }
.kci-dot { --len: 72%; }
.kci-dot .kl-bar { background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.7px) 0 50% / 9px 4px repeat-x; height: 4px; top: 9px; }
.kci-dot .kl-bar::before { top: -4px; }
.kci-open { --len: 100%; }
.kci-open .kl-bar { background: linear-gradient(90deg, var(--ink) 0 72%, rgba(34, 28, 22, 0)); }
.kci-open .kl-dot { display: none; }
.kci-open .kl-1 { transform: none; left: auto; right: 0; }
.js .kci.rv .kl-bar { transform: scaleX(0); transition: transform 1.4s var(--ease) .25s; }
.js .kci.rv .kl-dot { opacity: 0; transition: opacity .4s 1.4s; }
.js .kci.rv.in .kl-bar { transform: none; }
.js .kci.rv.in .kl-dot { opacity: 1; }

/* =================== this browser, deleting, questions =================== */
.kc-end { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.2vw; row-gap: 44px; align-items: end; padding: clamp(90px, 10vw, 150px) var(--g) clamp(50px, 5vw, 80px); }
.kc-clear { grid-column: 1 / 7; }
.kc-live { grid-column: 7 / 10; padding: 22px 24px 24px; border-radius: 18px; background-color: var(--lime); background-image: var(--tex); box-shadow: 0 30px 60px -44px rgba(70, 48, 24, .5); }
.kc-live[hidden] { display: none; }
.kc-live-h { font: 600 11.5px/1.3 var(--ft); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.kc-live-r { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; margin: 12px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.kc-live-r code { font: 850 24px/1.1 var(--fd); }
.kc-live-v { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--ft); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.kc-live-v::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.kc-live-v.off { color: var(--ink3); }
.kc-live-v.off::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.kc-del { min-height: 46px; padding: 0 20px; font-size: 15px; }
.kc-live-msg { margin-top: 12px; font: 500 14.5px/1.45 var(--ft); color: var(--green); }
.kc-live-msg:empty { display: none; }
.kc-q { grid-column: 10 / 13; padding-top: 18px; border-top: 1.6px solid var(--ink); }
.kc-q .ec-names { margin-top: 6px; }
.kc-crumbs { grid-column: 1 / 13; margin-top: clamp(20px, 3vw, 50px); padding-top: 16px; border-top: 1px solid var(--rule); }

/* =================== responsive =================== */
@media (max-width: 999px) {
  .kci-id, .kci-dl, .kci-line { grid-column: 1 / -1; }
  .kci-dl { padding-top: 0; }
  .kc-clear { grid-column: 1 / 13; }
  .kc-live { grid-column: 1 / 7; }
  .kc-q { grid-column: 8 / 13; }
}
@media (max-width: 699px) {
  .kc-kick { flex-direction: column; font-size: 11.5px; }
  .kc-h1 { font-size: calc((100vw - 2 * var(--g)) / 4.6); text-align: left; }
  .kc-book { grid-template-columns: minmax(0, 1fr); }
  .kc-book::before { display: none; }
  .kc-pg, .kc-yes { padding: 26px 0 28px; }
  .kc-yes { border-top: 1.6px solid var(--ink); }
  .kc-nol li { font-size: clamp(30px, 9.4vw, 40px); }
  .kc-yl a { grid-template-columns: 26px minmax(0, 1fr); row-gap: 4px; }
  .kc-yd { display: none; }
  .kc-yw { grid-column: 2; text-align: left; }
  .kci-dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kci-dl div { display: grid; grid-template-columns: minmax(96px, .42fr) 1fr; gap: 12px; }
  .kci-dl dt { margin: 0; line-height: 1.9; }
  .kci-dl dd { font-size: 15.5px; }
  .kci-fix { --len: 42%; }
  .kci-dot { --len: 88%; }
  .kc-live, .kc-q { grid-column: 1 / 13; }
}
@media (prefers-reduced-motion: reduce) {
  .js .kc-h1 .lni, .js .kc-book::before, .js .kc-strike { animation: none; }
  .js .kci.rv .kl-bar { transform: none; transition: none; }
  .js .kci.rv .kl-dot { opacity: 1; transition: none; }
}
.kc-del:disabled { opacity: .45; cursor: default; }
.kc-del:disabled:hover { background: transparent; color: var(--ink); }
