/* Kept — v2 home: story (감성형) and folded groups, bigger profile */

/* ---------- profile: the face in the greeting and the top-bar avatar read at a glance ---------- */
.statement .face,.story .face{display:inline-grid;place-items:center;width:2.3em;height:2.3em;font-size:.6em;font-weight:600;letter-spacing:0;border-radius:50%;background:linear-gradient(135deg,var(--accent),#7a2cff);color:#fff;vertical-align:.12em;margin:0 .35em 0 .15em;box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px color-mix(in oklab,var(--accent) 55%,transparent)}
.statement img.face,.story img.face{width:1.42em;height:1.42em;vertical-align:-.3em;font-size:inherit}
.story img.face{width:1.25em;height:1.25em}
#topbar .avatar{width:40px;height:40px;font-size:var(--t-body)}
@media (max-width:900px){#topbar .avatar{width:38px;height:38px}}

/* ---------- story ----------
   Bold, high-contrast prose with stickers in the line: coloured tiles that hold a line icon,
   plain colour emoji, and the mono line icons elsewhere on the page. */
.story{display:flex;flex-direction:column;gap:var(--hgap);max-width:780px;font-size:clamp(21px,2.4vw,28px);line-height:1.5;letter-spacing:-.018em;color:var(--text-2);font-weight:500;margin:0;text-wrap:pretty}
.story .st-p{margin:0}
.story.play .st-p{animation:stIn .6s var(--ease) both;animation-delay:calc(var(--i) * 70ms)}
.story .st-lead{color:var(--text-3);font-weight:450;font-style:italic;letter-spacing:-.01em;padding-right:.04em}
.story .st-lead .em{font-style:normal}
.story .n{color:var(--accent);font-weight:750;font-variant-numeric:tabular-nums}
.story .tm{color:var(--text);font-weight:700}
.story b{color:var(--text);font-weight:700}
.story .em{display:inline-block;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-weight:400;font-size:1.02em;line-height:1;margin-right:.22em;vertical-align:-.04em}
.story .sc{display:inline;color:var(--text);text-decoration:none;white-space:nowrap;border-radius:.3em;padding:0 .08em;transition:background .2s}
.story .sc:hover{background:var(--surface)}
.story .sc .em{margin-right:.12em}
.story .tile{display:inline-grid;place-items:center;width:1.12em;height:1.12em;border-radius:.3em;vertical-align:middle;position:relative;top:-.12em;margin-right:.2em;color:#fff;background:var(--tg);box-shadow:inset 0 -2px 0 rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.12)}
.story .tile svg{width:.72em;height:.72em;stroke-width:2.6}
.story .tile.t-red{--tg:linear-gradient(160deg,#ff6b5e,#e5354a)}
.story .tile.t-green{--tg:linear-gradient(160deg,#4fd67b,#1fa855)}
.story .tile.t-amber{--tg:linear-gradient(160deg,#ffc94a,#f59a0c)}
.story .tile.t-blue{--tg:linear-gradient(160deg,#5fb2ff,#2f6fe8)}
.story .tile.t-gray{--tg:linear-gradient(160deg,#8e939c,#5d636d)}
.story .st-t{display:inline;font:inherit;color:var(--text);font-weight:650;padding:0;background:linear-gradient(transparent 64%,color-mix(in oklab,var(--accent) 30%,transparent) 0);border-radius:2px;cursor:pointer;transition:color .2s}
.story .st-t:hover{color:var(--accent)}
.story .nw{white-space:nowrap}
.story.out .st-p{animation:stOut .4s var(--ease) forwards}
@keyframes stIn{from{opacity:0;transform:translateY(10px);filter:blur(3px)}}
@keyframes stOut{to{opacity:0;transform:translateY(-4px);filter:blur(2px)}}
.st-shuffle{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:14px;padding:6px 12px 6px 10px;border-radius:999px;font-size:var(--t-sub);color:var(--text-2);border:1px solid var(--line-2);transition:color .2s,border-color .2s}
.st-shuffle:hover{color:var(--text);border-color:var(--text-3)}
.st-shuffle svg{width:15px;height:15px}
.st-shuffle.spin svg{animation:spin .5s var(--ease)}
.story-v .th{display:flex;flex-direction:column}
/* phones: big type for the story, three paragraphs (details live in the folds below),
   and a one-line writing box so the card sits close under the story */
@media (max-width:900px){
  .story{font-size:22px;line-height:1.46}
  .story .st-feat,.story .st-more,.story .st-end{display:none}
  .story:not(:has(.st-col)) .st-end{display:block}
  .story .st-p:not(:first-child) .st-lead{display:none}
  .story-wait .sk-p:nth-child(3){display:none}
  .story-v .today-stack{margin-top:18px}
  .story-v .capture .cap-fake{min-height:0!important;height:46px;padding:0 6px 0 16px!important;border-radius:16px!important;display:flex;align-items:center;justify-content:space-between}
  .story-v .capture .cap-fake{align-items:center!important}
  .story-v .capture .cap-fake > *{align-self:center!important}
  .story-v .capture .cap-fake .send{width:34px!important;height:34px!important}
}
/* loading: bars where the lines will be, breathing in a slow wave, then the story arrives at once */
.story-wait{gap:.7em;width:100%;max-width:640px}
.story-wait .sk-p{margin:0;display:flex;flex-direction:column;gap:.38em}
.story-wait .sk{display:block;width:var(--w);height:.8em;border-radius:.4em;background:linear-gradient(90deg,var(--surface-2) 0%,color-mix(in oklab,var(--surface-2) 40%,var(--line-2)) 45%,var(--surface-2) 90%) 0 0/250% 100%;
  animation:skIn .5s var(--ease) both,skWave 1.6s ease-in-out infinite;animation-delay:calc(var(--i) * 60ms),calc(var(--i) * 90ms)}
.story-wait .sk-note{display:inline-flex;align-items:center;gap:10px;margin-top:4px;font-size:var(--t-sub);font-weight:500;letter-spacing:0;color:var(--text-3);animation:skIn .5s .4s var(--ease) both}
.sk-dots{display:inline-flex;gap:4px}
.sk-dots i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:skDot 1.2s ease-in-out infinite}
.sk-dots i:nth-child(2){animation-delay:.15s}.sk-dots i:nth-child(3){animation-delay:.3s}
.sk-fold{height:66px;border-radius:22px;background:var(--surface);border:1px solid var(--line);animation:skIn .5s var(--ease) both,skPulse 1.6s ease-in-out infinite;animation-delay:calc(var(--i,0) * 80ms + .2s),calc(var(--i,0) * 200ms)}
@keyframes skIn{from{opacity:0;transform:translateY(6px)}}
@keyframes skWave{0%{background-position:100% 0}100%{background-position:-50% 0}}
@keyframes skDot{0%,80%,100%{transform:scale(.6);opacity:.35}40%{transform:scale(1);opacity:1}}
@keyframes skPulse{50%{opacity:.6}}

/* ---------- folded groups: a one-line summary, open on tap ---------- */
.fold{border-radius:22px;background:var(--surface);border:1px solid var(--line);overflow:hidden;transition:background .25s}
.fold-h{display:flex;align-items:center;gap:10px;width:100%;padding:16px 18px;text-align:left;color:var(--text)}
.fold-ic{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.fold-ic svg{width:18px;height:18px}
.fold-t{font-weight:600;font-size:var(--t-body)}
.fold-sum{flex:1;min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;font-size:var(--t-sub);color:var(--text-2)}
.fold-sum svg{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
.fold-sum .muted{color:var(--text-3)}
.fold-sum .dot{width:3px;height:3px;border-radius:50%;background:var(--text-3);display:inline-block}
.fold-chev{width:18px;height:18px;color:var(--text-3);transition:transform .35s var(--spring);flex:none}
.fold.open .fold-chev{transform:rotate(180deg)}
.fold-b{display:grid;grid-template-rows:0fr;transition:grid-template-rows .38s var(--ease)}
.fold.open .fold-b{grid-template-rows:1fr}
.fold-in{min-height:0;overflow:hidden}
.fold-in > .tg{opacity:0;transform:translateY(-6px);transition:opacity .25s,transform .35s var(--ease)}
.fold.open .fold-in > .tg{opacity:1;transform:none;transition-delay:.06s}
.fold .tg.in-fold{background:none;border:0;box-shadow:none;margin:0;padding-top:0}
.fold .tg.in-fold > .tg-h h2{display:none}
.fold .tg.in-fold > .tg-h{justify-content:flex-end}
@media (prefers-reduced-motion: reduce){.story .st-p,.story.out .st-p,.story-wait .sk,.sk-dots i,.sk-fold{animation:none}.fold-b,.fold-chev,.fold-in > .tg{transition:none}}
.fold[data-fold="plan"] .fold-ic{background:linear-gradient(160deg,#5fb2ff,#2f6fe8);color:#fff}
.fold[data-fold="notes"] .fold-ic{background:linear-gradient(160deg,#ffc94a,#f59a0c);color:#fff}
.fold-ic{box-shadow:inset 0 -2px 0 rgba(0,0,0,.1)}

/* 정리형 statement: the same coloured tiles as the story, centred on the line */
.statement .ic{width:1.08em;height:1.08em;border:0;border-radius:.28em;vertical-align:middle;position:relative;top:-.1em;margin:0 .2em 0 .05em;color:#fff;background:var(--tg,var(--text));box-shadow:inset 0 -2px 0 rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.12)}
.statement .ic svg{width:.7em;height:.7em;stroke-width:2.6}
.statement .ic.t-red{--tg:linear-gradient(160deg,#ff6b5e,#e5354a)}
.statement .ic.t-green{--tg:linear-gradient(160deg,#4fd67b,#1fa855)}
.statement .ic.t-amber{--tg:linear-gradient(160deg,#ffc94a,#f59a0c)}

/* one vertical rhythm for the home header (both styles): date, weather, then each text block sit the same distance apart */
.today-v{--hgap:20px}
.today-v .th{gap:var(--hgap);margin:16px 0 28px}
.today-v .th-date{margin:0}
.today-v .th .metrics{margin:0 0 0 -8px}
.th-date .day-big i{width:.13em;height:.13em;margin:0 0 0 .04em;align-self:center}
@media (max-width:900px){.today-v{--hgap:16px}.today-v .th{margin:6px 0 22px}}
