:root{--paper: #f3eee6;--paper-2: #e6ddd0;--card: #fffaf4;--ink: #2a211c;--muted: #4e453e;--line: rgba(42, 33, 28, .14);--terra: #9c4229;--terra-deep: #7c3320;--sage: #245c42;--sage-soft: #e4f0e8;--gold: #8a5a22;--gold-soft: #f3e4c8;--forest: #24352c;--shadow: 0 18px 40px rgba(70, 42, 24, .08);--serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;--text: "Source Serif 4", "Iowan Old Style", Georgia, serif;--sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#root{min-height:100%}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(1100px 480px at 8% -10%,rgba(196,140,90,.18),transparent 55%),radial-gradient(900px 420px at 110% 0%,rgba(36,92,66,.1),transparent 50%),var(--paper);color:var(--ink);font-family:var(--sans);font-size:16.5px;line-height:1.5;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}body.bedtime{--paper: #140f0c;--paper-2: #1d1612;--card: #2a1f18;--ink: #f6ead8;--muted: #d9cbb8;--line: rgba(246, 234, 216, .16);--shadow: none;--sage-soft: #243028;--gold-soft: #3a2a18;color-scheme:dark;background:#140f0c;color:var(--ink)}img{max-width:100%;display:block}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}::selection{background:#efd3b8;color:#2a211c}:focus-visible{outline:2px solid var(--terra);outline-offset:3px}a{color:var(--sage)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;left:12px;top:12px;transform:translateY(-160%);background:#fff;color:var(--forest);padding:8px 12px;z-index:5;border-radius:8px}.skip:focus{transform:none}.app{height:100dvh;max-height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.main{min-height:0;overflow:auto;display:flex;flex-direction:column}.frame{width:min(1080px,100%);margin:0 auto;padding:22px 18px 36px;flex:1;display:flex;flex-direction:column}.boot,.banner{margin:12px auto;width:min(720px,calc(100% - 32px));padding:12px 14px;border-radius:14px;background:#fff4e8;color:#6a3418}.rail{display:none}.topbar,.tabbar{display:flex}.topbar{align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--paper);border-bottom:1px solid var(--line);z-index:2}.tabbar{background:var(--forest);color:#f4efe6;padding-bottom:env(safe-area-inset-bottom);z-index:2}.tabbar a{flex:1;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:#f4efe6b8;font-size:11px;letter-spacing:.04em}.tabbar a[aria-current=page]{color:#fffaf3}.tabbar a[aria-current=page] svg{color:#e7b15a}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--forest)}.brand strong{display:block;font-family:var(--serif);font-weight:560;font-size:1.05rem;letter-spacing:-.02em;line-height:1.1}.brand em{font-style:normal;letter-spacing:.18em;font-size:.68rem;color:var(--gold)}.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--forest);color:#f4efe6;font-family:var(--serif);font-size:.85rem}h1,h2,h3,.display{font-family:var(--serif);font-weight:560;letter-spacing:-.03em;line-height:1.08;margin:0}h1{font-size:clamp(2rem,4vw,2.7rem)}h2{font-size:1.45rem;margin:8px 0}h3{font-size:1.28rem}.display{font-size:clamp(2.5rem,6vw,4.2rem)}.display.small{font-size:clamp(1.7rem,3vw,2.2rem)}.kicker{margin:0 0 8px;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--gold)}.lede{font-size:1.08rem;color:var(--muted);margin:10px 0 0;max-width:38rem}.fine,.when,.meta-line{color:var(--muted);font-size:.92rem}.page-head{margin-bottom:18px}.section-head,.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.section-head{justify-content:space-between;margin:8px 0 12px}.stack{display:flex;flex-direction:column;gap:12px}.narrow{width:min(42rem,100%)}.btn,.choice{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:999px;padding:12px 16px;background:var(--terra);color:#fffaf4;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-weight:600}.btn.secondary,label.btn.secondary{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}.btn.quiet{background:transparent;color:var(--muted);padding-inline:8px}.btn.danger{background:#7a2e2e;color:#fff7f4}.btn.quiet.danger{background:transparent;color:#8a3030}.btn:disabled{opacity:.45;cursor:not-allowed}.lamp[aria-pressed=true]{background:#e7b15a;color:#2a211c;box-shadow:none}.field{display:flex;flex-direction:column;gap:6px}.field label,.field>span{font-size:.86rem;color:var(--muted)}input,textarea,select{width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-height:46px}textarea{min-height:140px;resize:vertical;line-height:1.5}body.bedtime input,body.bedtime textarea,body.bedtime select{background:#1a1410;border-color:var(--line)}.form-error{color:#8a3030;margin:0}.row input{flex:1;min-width:12rem;width:auto}.panel{background:var(--card);border-radius:22px;padding:16px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.65)}body.bedtime .panel{border-color:var(--line)}.portrait{width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px #fff,0 0 0 7px #e2c48a}.portrait.placeholder{display:grid;place-items:center;background:var(--forest);color:#f6efe4;font-family:var(--serif);font-size:2rem}.photo-preview{width:min(100%,280px);border-radius:16px;max-height:220px;object-fit:cover}.photo-preview.wide{width:100%;max-height:320px;margin:8px 0 14px}.home-grid{display:grid;gap:28px}.identity{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.sample-note,.voice-note{background:var(--gold-soft);color:var(--ink);border-radius:16px;padding:12px 14px;margin:0 0 8px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:min(100%,520px);margin-top:12px}.action{min-height:118px;border-radius:22px;padding:16px;text-decoration:none;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.action span{font-family:var(--serif);font-size:1.45rem;letter-spacing:-.03em}.action small{font-size:.86rem;opacity:.85}.action.tell{background:var(--terra-deep);color:#fff8f3}.action.read{background:var(--forest);color:#f4efe6}.memory-list,.memory-grid{display:grid;gap:12px}.memory-grid{grid-template-columns:1fr}.memory{display:flex;flex-direction:column;background:var(--card);color:inherit;text-decoration:none;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.7);min-height:100%}.memory img{height:148px;width:100%;object-fit:cover}.memory-body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px}.excerpt{margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tag-row{display:flex;flex-wrap:wrap;gap:6px}.tag{border:0;background:var(--sage-soft);color:var(--sage);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:600}.tag.sample{background:var(--gold-soft);color:var(--gold)}.tag.ghost{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}.tag[aria-pressed=true]{background:var(--forest);color:#f4efe6}.filters{margin:16px 0}.empty{color:var(--muted);padding:12px 0 4px}.interview{flex:1;display:flex;flex-direction:column;gap:12px;min-height:100%}.thread{display:flex;flex-direction:column;gap:12px;flex:1}.bubble{max-width:min(100%,38rem);padding:12px 14px;border-radius:18px;white-space:pre-wrap;line-height:1.45}.bubble.listener{align-self:flex-start;background:var(--card);border-bottom-left-radius:6px;box-shadow:var(--shadow)}.bubble.you{align-self:flex-end;background:#f3e2d4;color:#2a211c;border-bottom-right-radius:6px}body.bedtime .bubble.you{background:#4a3424;color:#f6ead8}.who{margin:0 0 4px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.dots{display:inline-flex;gap:4px;padding:6px 0}.dots i{width:7px;height:7px;border-radius:50%;background:#b08968;animation:blink 1s infinite}.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.composer{position:sticky;bottom:0;display:flex;flex-direction:column;gap:8px;padding-top:10px;background:linear-gradient(to bottom,transparent,var(--paper) 30%)}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:var(--sage-soft);color:var(--sage);font-size:.78rem;font-weight:600;letter-spacing:.02em}.draft h2{margin-bottom:8px}.shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px;margin-bottom:16px}.book{min-height:196px;border-radius:4px 14px 14px 4px;padding:16px 14px;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;box-shadow:0 12px 20px #28181029,inset 9px 0 #00000029}.book strong{font-family:var(--serif);font-size:1.2rem;font-weight:560;letter-spacing:-.02em;line-height:1.15}.book em{font-style:normal;font-size:.82rem;opacity:.86}.bring{margin-top:12px}.shelf-note{margin-top:0}.reader{position:relative;display:flex;flex-direction:column;gap:14px;flex:1}.reader>*:not(.stars){position:relative;z-index:1}.reader-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.story-panel{padding:8px 0 4px}.story-text{font-family:var(--text);font-size:clamp(1.12rem,2.4vw,1.38rem);line-height:1.65;max-width:40rem}.story-text p{margin:0 0 1rem}.sent.on{background:#e7b15a59;border-radius:.2em}.word.on{background:#f0d39a;border-radius:.15em;box-shadow:0 0 0 2px #f0d39a}body.bedtime .sent.on{background:#e7b15a47}body.bedtime .word.on{background:#e7b15a;color:#2a211c;box-shadow:0 0 0 2px #e7b15a}body.bedtime .main{background:radial-gradient(560px 260px at 50% 0%,rgba(232,176,92,.18),transparent 70%),#140f0c}.stars{position:absolute;inset:-20px 0 auto;height:220px;pointer-events:none;background-image:radial-gradient(1.5px 1.5px at 12% 30%,rgba(255,244,220,.9),transparent),radial-gradient(1.2px 1.2px at 22% 70%,rgba(255,244,220,.7),transparent),radial-gradient(1.4px 1.4px at 38% 24%,rgba(255,244,220,.85),transparent),radial-gradient(1px 1px at 54% 58%,rgba(255,244,220,.7),transparent),radial-gradient(1.6px 1.6px at 70% 18%,rgba(255,244,220,.9),transparent),radial-gradient(1.2px 1.2px at 82% 46%,rgba(255,244,220,.65),transparent),radial-gradient(1px 1px at 90% 28%,rgba(255,244,220,.8),transparent)}.controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.seg{display:inline-flex;border-radius:999px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}.seg button{border:0;background:transparent;min-height:44px;padding:0 12px;color:var(--ink)}.seg button[aria-pressed=true]{background:var(--forest);color:#f4efe6}.voice-pick{flex:1;min-width:180px}.record audio{width:min(100%,420px);margin-top:8px}.life .chapter{margin-top:28px}.life .chapter p{font-family:var(--text);font-size:1.12rem;line-height:1.6}.profile-hero{display:flex;gap:16px;align-items:center;margin-bottom:16px}.about p,.setting p,.choice span{color:var(--muted)}.choice{width:100%;border-radius:18px;background:var(--card);color:var(--ink);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 16px}.choice[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--sage)}.choice strong{font-family:var(--serif);font-size:1.15rem}.setting{margin-top:18px;display:flex;gap:16px;align-items:center;justify-content:space-between}.setting h2{margin:0 0 6px}.switch{width:52px;height:32px;border-radius:999px;border:0;background:#d9cfc2;position:relative;flex:0 0 auto}.switch i{position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s ease}.switch[aria-checked=true]{background:var(--sage)}.switch[aria-checked=true] i{transform:translate(20px)}.quiet-block{margin-top:22px}@media (min-width: 720px){.memory-grid{grid-template-columns:1fr 1fr}.home-grid{grid-template-columns:.9fr 1.1fr;align-items:start}}@media (min-width: 960px){.app{grid-template-columns:248px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.rail{display:flex;flex-direction:column;gap:18px;padding:22px 16px;background:var(--forest);color:#f4efe6}.rail .brand{color:#f4efe6;padding:0 8px}.rail .brand em{color:#e7b15a}.rail nav{display:flex;flex-direction:column;gap:4px}.rail a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:12px;text-decoration:none;color:#f4efe6}.rail nav a:hover{background:#f4efe614}.rail a[aria-current=page]{background:#f4efe6;color:var(--forest)}.rail-foot{margin-top:auto;padding:8px 12px;color:#f4efe6b8;font-size:.9rem}.topbar,.tabbar{display:none}.main{grid-column:2}.frame{padding:36px 40px 56px}}@media (max-width: 420px){.actions{grid-template-columns:1fr}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
