/* Little Letters · a living type specimen in Experiments.
   Additive only: one warm paper token set; the heading and link inherit the shared project styles.
   Light: an ivory note. Dark: warm walnut paper with cream pencil, quieter against the night desk. */
@font-face{font-family:'Little Letters';src:url('assets/fonts/LittleLetters-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root{
 --ll-desk:light-dark(#f1ebdf,#2c2722);
 --ll-grain:light-dark(#a8956f1f,#f3e6cc0d);
 --ll-paper:light-dark(#fffcf5,#403b35);
 --ll-paper-edge:light-dark(#e6dcc8,#5a5248);
 --ll-sheen:light-dark(#ffffff8c,#ffffff0a);
 --ll-graphite:light-dark(#3a3630,#e9dfcf);
 --ll-rule:light-dark(#d9cfbd,#72695e);
 --ll-pencil:light-dark(#5d574e,#c4b7a6);
 --ll-quiet:light-dark(#6c6253,#c4b7a6);
 --ll-select:light-dark(#eadfc4,#5c5348);
 --ll-tape:light-dark(#e7dcc2b8,#9c8a6dc2);
 --ll-muted:light-dark(#655b4c,#cfc3ae);
 --ll-shadow:light-dark(#4a3b2124,#00000080);
 --ll-shadow-near:light-dark(#4a3b2114,#00000059);
 --ll-focus:light-dark(#3d6045,#b5c89e);
 /* Unsupported characters fall back per glyph: Korean, then emoji, then the system. */
 --ll-family:'Little Letters',ui-rounded,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji';
 --ll-size:60px;
}
.little-letters{grid-column:1/-1}
.preview-letters{background-color:var(--ll-desk);background-image:radial-gradient(var(--ll-grain) .8px,transparent .9px);background-size:13px 13px;color:var(--ll-graphite);min-height:340px;padding:46px 48px 60px;display:grid;place-items:center;box-shadow:inset 0 0 0 1px var(--preview-edge)}
.preview-letters .demo-disclosure{color:var(--ll-muted)}
.ll-note{position:relative;width:100%;max-width:640px;background:var(--ll-paper);background-image:linear-gradient(168deg,var(--ll-sheen),transparent 46%);border-radius:3px 5px 4px 6px;padding:36px 40px 18px;rotate:-1.2deg;cursor:text;
 box-shadow:0 0 0 1px var(--ll-paper-edge),0 1px 2px var(--ll-shadow-near),0 16px 30px -18px var(--ll-shadow);
 transition:rotate 420ms var(--ease),translate 420ms var(--ease),box-shadow 420ms var(--ease)}
/* A strip of tape with torn ends holds the note to the page. */
.ll-tape{position:absolute;top:-12px;left:50%;width:92px;height:25px;translate:-50% 0;rotate:-3.5deg;background:var(--ll-tape);pointer-events:none;
 clip-path:polygon(0 8%,6% 0,13% 9%,20% 1%,100% 0,96% 18%,100% 34%,95% 52%,100% 70%,97% 86%,100% 100%,8% 100%,0 92%,4% 76%,0 60%,5% 44%,0 26%)}
/* Fixed height in px: typing, wrapping and fallback glyphs never move the layout. */
.ll-text{--ll-scale:1;display:block;width:100%;height:calc(var(--ll-size)*2.6 + 10px);margin:0;padding:6px 0 4px;border:0;border-radius:0;background:none;resize:none;overflow:hidden auto;scrollbar-width:thin;
 font:400 calc(var(--ll-size)*var(--ll-scale))/1.3 var(--ll-family);font-synthesis:none;letter-spacing:0;color:var(--ll-graphite);caret-color:var(--ll-graphite);overflow-wrap:anywhere;-webkit-text-size-adjust:100%}
.ll-text[data-size="1"]{--ll-scale:.82}.ll-text[data-size="2"]{--ll-scale:.68}.ll-text[data-size="3"]{--ll-scale:.56}.ll-text[data-size="4"]{--ll-scale:.47}
.ll-text::placeholder{color:var(--ll-quiet);opacity:1}
.ll-text::selection{background:var(--ll-select)}
/* Focus belongs to the whole note, so the ring follows its tilt. */
.preview-letters .ll-text:focus-visible{outline:none}
.ll-note:focus-within{outline:2px solid var(--ll-focus);outline-offset:6px}
.ll-rule{display:block;width:100%;height:10px;margin-top:2px;overflow:visible}
.ll-rule path{fill:none;stroke-linecap:round}
.ll-rule-print{stroke:var(--ll-rule);stroke-width:1.2}
.ll-rule-ink{stroke:var(--ll-pencil);stroke-width:1.7;stroke-dasharray:1 2;stroke-dashoffset:1;opacity:.75;transition:stroke-dashoffset 900ms cubic-bezier(.45,.05,.2,1)}
.ll-note.is-written .ll-rule-ink{stroke-dashoffset:0}
.ll-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-top:10px}
.ll-star{display:block;width:36px;height:36px;flex-shrink:0;rotate:-7deg;color:var(--ll-pencil);overflow:visible}
.ll-star path{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.ll-sign{margin:0;font:400 23px/1.2 var(--ll-family);color:var(--ll-quiet);white-space:nowrap}
@media(hover:hover){
 .ll-note:hover{rotate:-.6deg;translate:0 -2px;box-shadow:0 0 0 1px var(--ll-paper-edge),0 2px 3px var(--ll-shadow-near),0 22px 34px -18px var(--ll-shadow)}
 .preview-letters:hover .ll-star{animation:ll-wiggle 720ms cubic-bezier(.3,.7,.35,1)}
}
.ll-note:focus-within{rotate:-.6deg;translate:0 -2px}
.ll-note:focus-within .ll-star{animation:ll-wiggle 720ms cubic-bezier(.3,.7,.35,1)}
/* One-shot motion only: the note settles once, nudges at the first keystroke, the star wiggles on arrival of a pointer or focus. */
.ll-note.is-armed{animation:ll-settle 920ms cubic-bezier(.22,1,.36,1) 140ms both paused}
.ll-note.is-armed.is-settling{animation-play-state:running}
.ll-note.is-nudged{animation:ll-nudge 420ms cubic-bezier(.3,.7,.4,1)}
@keyframes ll-settle{from{transform:translate(7px,-16px) rotate(-2.6deg)}64%{transform:translate(0,1px) rotate(.3deg)}to{transform:none}}
@keyframes ll-nudge{40%{transform:translateY(1.5px) rotate(.45deg)}to{transform:none}}
@keyframes ll-wiggle{0%{transform:none}20%{transform:rotate(-15deg) scale(1.06)}46%{transform:rotate(10deg)}70%{transform:rotate(-4deg)}100%{transform:none}}
@media(max-width:1000px){:root{--ll-size:54px}.preview-letters{padding:40px 34px 58px}}
@media(max-width:760px){:root{--ll-size:46px}.preview-letters{min-height:300px;padding:36px 24px 58px}.ll-note{padding:32px 28px 14px}.ll-sign{font-size:21px}}
@media(max-width:600px){:root{--ll-size:40px}.preview-letters{min-height:0;padding:34px 18px 64px}.ll-note{padding:30px 22px 12px}.ll-tape{width:78px;height:22px}.ll-star{width:32px;height:32px}.ll-sign{font-size:19px}}
@media(max-width:360px){:root{--ll-size:36px}.preview-letters{padding-left:14px;padding-right:14px}.ll-note{padding-left:18px;padding-right:18px}}
/* Reduced motion: styles.css already stops animations and transitions; the note also stays put on hover and focus. */
@media(prefers-reduced-motion:reduce){.ll-note:hover,.ll-note:focus-within{rotate:-1.2deg;translate:none}.ll-rule-ink{transition:none}}
