/* ═══════════════════════════════════════════════════════════════
   WHOAMI — nine.css · nine lives
   concept, design & code by ghostly.grl ♥

   eight death certificates, photocopied. the ninth is still blank.
   ═══════════════════════════════════════════════════════════════ */

.hearts { display: flex; gap: .12em; font-size: clamp(34px, 4.4vw, 72px); line-height: 1; color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); }
.hearts i { font-style: normal; transition: color .3s, transform .4s var(--ease); }
.hearts i.is-gone { color: transparent; transform: scale(.8); }
.hearts i.is-extra { color: var(--hot); }
.hearts--s { font-size: 20px; -webkit-text-stroke: 1px var(--ink); }

/* ═══════════════ 01 · nine lives ═══════════════ */
.nh { position: relative; min-height: 100vh; min-height: 100svh; padding: 62px var(--pad) var(--pad); display: flex; flex-direction: column; overflow: hidden; }
.nh__bar { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.nh__bar b { font-weight: 700; }
.nh__left { color: var(--pink-d); }
.nh__t { display: flex; align-items: flex-end; gap: .05em; margin: auto 0 0; font-size: clamp(120px, min(22vw, 36vh), 420px); line-height: .78; }
.nh__9 { color: var(--pink); -webkit-text-stroke: 3px var(--ink); font-size: 1.9em; line-height: .72; letter-spacing: -.04em; }
.nh__w { display: block; overflow: hidden; padding-bottom: .02em; }
.nh__w > span { display: inline-block; }
.nh .hearts { margin: 2.6vh 0 0; }
.nh__low { display: flex; justify-content: space-between; align-items: end; gap: 4vw; margin-top: 3vh; }
.nh__lede { font-size: clamp(17px, 1.6vw, 24px); line-height: 1.35; }
.nh__lede em { font-style: normal; background: var(--pink); padding: 0 .2em; }
.nh__cat { font-size: min(.62vw, 8px); margin-right: 14vw; }

/* ═══════════════ 02 · the lives ═══════════════ */
.lv { position: relative; background: var(--ink); color: var(--paper); }
.lv__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 70px 0 28px; overflow: hidden; }
.lv__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--pad) 12px; border-bottom: 1px solid #3a3a3a; color: #a9a6a0; font-size: 12px; }
.lv__top b { color: var(--pink); font-size: 16px; }
.lv__yr { font: 900 28px/1 var(--f-poster); font-stretch: 62%; color: var(--paper); }
.lv__track { flex: 1; display: flex; gap: 3vw; align-items: stretch; padding: 4vh var(--pad); will-change: transform; min-height: 0; }
.lv__bar { height: 3px; margin: 0 var(--pad); background: #262626; }
.lv__bar i { display: block; height: 100%; width: 0; background: var(--pink); }

.life { position: relative; flex: none; width: min(560px, 78vw); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper); }
.life__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); }
.life__n { font: 900 46px/.85 var(--f-poster); font-stretch: 62%; }
.life__y { font: 700 12px/1 var(--f-mono); }
.life__body { display: grid; grid-template-columns: 42% 1fr; min-height: 0; }
.life .slot { height: 100%; min-height: 160px; border-right: 1.5px solid var(--ink); outline: 0; }
.life__txt { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; font: 400 14px/1.4 var(--f-type); overflow: hidden; }
.life__who { font: 800 clamp(20px, 1.8vw, 28px)/1 var(--f-poster); text-transform: uppercase; }
.life__pc { font: 400 11px/1.3 var(--f-mono); color: var(--grey); }
.life__did b { background: var(--ink); color: var(--paper); padding: 0 .2em; font-weight: 400; }
.life__end { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.life__end span { flex: none; padding: 3px 6px; background: var(--ink); color: var(--pink); font: 700 9px/1.3 var(--f-mono); text-transform: uppercase; }
.life__end p { font: italic 400 clamp(17px, 1.4vw, 21px)/1.2 var(--f-serif); }
.life::after { content: 'deceased'; position: absolute; right: 14px; top: 64px; padding: 4px 10px; border: 2px solid var(--pink-d); color: var(--pink-d); font: 900 20px/1 var(--f-poster); font-stretch: 62%; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-9deg) scale(1.6); opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.life.is-dead::after { opacity: .9; transform: rotate(-9deg) scale(1); }
/* the ninth: you */
.life--you { background: var(--pink); }
.life--you .life__end { background: var(--pink); }
.life--you::after { content: 'pending'; color: var(--ink); border-color: var(--ink); }
.life--you .life__face { display: grid; place-items: center; border-right: 1.5px solid var(--ink); background: var(--paper); overflow: hidden; }
.life--you .life__face pre { font-size: min(.62vw, 8px); }
.life--you .life__pc { color: var(--ink-2); }
.life__live { font-variant-numeric: tabular-nums; }
.lv__end { flex: none; width: 30vw; display: grid; place-items: center; text-align: center; font: italic 400 clamp(24px, 2.6vw, 40px)/1.2 var(--f-serif); color: var(--pink); }

/* ═══════════════ 03 · one ═══════════════ */
.one { padding: 16vh var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.one__t { font-size: clamp(90px, 12vw, 220px); line-height: .8; margin-top: 3vh; }
.one__t span { display: block; }
.one__1 { color: var(--pink); -webkit-text-stroke: 2px var(--ink); }
.one__q { display: block; font-size: clamp(16px, 1.4vw, 20px); margin-bottom: 3vh; max-width: 34ch; }
.one__slide { display: flex; align-items: center; gap: 24px; }
.one__in { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; background: var(--ink); }
.one__in::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; background: var(--pink); border: 2px solid var(--ink); border-radius: 0; }
.one__in::-moz-range-thumb { width: 30px; height: 30px; background: var(--pink); border: 2px solid var(--ink); border-radius: 0; }
.one__age { font-size: clamp(70px, 8vw, 140px); line-height: .8; min-width: 1.3em; text-align: right; font-variant-numeric: tabular-nums; }
.one__out { margin-top: 4vh; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; max-width: 40ch; min-height: 6em; }
.one__out b { background: var(--ink); color: var(--paper); padding: 0 .2em; font-weight: 400; }
.one__out em { font-style: normal; background: var(--pink); padding: 0 .2em; }

/* ═══════════════ 04 · give ═══════════════ */
.give { padding: 14vh var(--pad) 18vh; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4vh; }
.give__t { font-size: clamp(70px, 10vw, 180px); line-height: .82; }
.give__t span { display: block; }
.give__t span:last-child { color: var(--paper); -webkit-text-stroke: 2px var(--ink); }
.give__btn { position: relative; width: min(280px, 70vw); aspect-ratio: 1; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; display: grid; place-items: center; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 10px 10px 0 var(--ink); transition: box-shadow .2s, transform .2s; }
.give__btn:active { box-shadow: 4px 4px 0 var(--ink); transform: translate(6px, 6px); }
.give__fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); background: var(--pink); }
.give__h { position: relative; font-size: 150px; line-height: 1; color: var(--paper); -webkit-text-stroke: 3px var(--ink); }
.give__lab { position: absolute; bottom: 14px; left: 0; right: 0; }
.give__btn.is-given .give__h { color: var(--hot); }
.give__p { font-size: clamp(15px, 1.3vw, 19px); max-width: 40ch; }

/* ═══════════════ mobile ═══════════════ */
@media (max-width: 860px) {
  .nh__bar { grid-template-columns: 1fr 1fr; }
  .nh__low { flex-direction: column; align-items: flex-start; }
  .nh__cat { font-size: 1.6vw; margin: 0; }
  .lv__top .hearts { display: none; }
  .life__body { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
  .life .slot { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .life--you .life__face { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .life--you .life__face pre { font-size: 1.1vw; }
  .life__txt { font-size: 12.5px; }
  .lv__end { width: 70vw; }
  .one { grid-template-columns: 1fr; }
}
