/* Kept — Design tokens, base elements, boot screen */
/* ============================================================
   KEPT — design system
   Reference language: near-black canvas, oversized display type
   that mixes muted + bright words, aurora gradient with grain,
   warm glass cards, white "sheet" agenda, floating pill dock.
   ============================================================ */
:root{
  --font: "Geist", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg:#0a0a0b; --bg-2:#101012; --surface:#1b1c20; --surface-2:#24252b; --surface-3:#2e2f36;
  --line:rgba(255,255,255,.075); --line-2:rgba(255,255,255,.14);
  --text:#f5f5f6; --text-2:#9b9ca4; --text-3:#64656d; --text-inv:#0d0d0f;
  --sheet:#ffffff; --sheet-text:#121214; --sheet-2:#8e8e94; --sheet-line:#d9d9de;
  --glass:rgba(28,29,34,.72); --glass-2:rgba(255,255,255,.06);
  --overlay:rgba(4,4,6,.62);
  --dot:#ff3b30;
  --mark:#ff3b30;      /* Kept's mark: a small red square, after the wordmark and centred beside the weekday */
  --accent:#ff6a2b; --accent-ink:#fff;
  --accent-soft:color-mix(in oklab, var(--accent) 18%, transparent);
  --ok:#3ccf7a; --warn:#ffb020; --err:#ff5a4f;
  --shadow:0 18px 50px -18px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.35);
  --shadow-sm:0 6px 20px -8px rgba(0,0,0,.6);
  --r-xl:30px; --r-lg:22px; --r-md:16px; --r-sm:12px; --r-pill:999px;
  --ease:cubic-bezier(.2,.8,.2,1); --spring:cubic-bezier(.34,1.4,.5,1);
  --sidebar:252px; --topbar:68px;
  /* type scale — 7 steps, used everywhere */
  --t-display:clamp(56px,7.5vw,96px);   /* the big weekday on Today */
  --t-hero:clamp(26px,3.4vw,40px);      /* statements, prompts, hero headlines */
  --t-h1:30px;                          /* page titles, editor title */
  --t-h2:18px;                          /* section & card titles */
  --t-body:15px;                        /* body, menus, buttons */
  --t-sub:13px;                         /* secondary text, chips */
  --t-cap:12px;                         /* captions, labels, meta */
  --t-read:17px;                        /* long-form writing in the editor */
  /* text-color palette for rich text (theme-aware) */
  --c-gray:#a1a1aa; --c-red:#ff6b6b; --c-orange:#ff9a4d; --c-amber:#ffd166; --c-green:#5ee29a;
  --c-teal:#4fd6cf; --c-blue:#6fa8ff; --c-violet:#b493ff; --c-pink:#ff86c8;
  --hl-yellow:rgba(255,214,10,.42); --hl-orange:rgba(255,128,48,.42); --hl-green:rgba(60,214,130,.38);
  --hl-blue:rgba(80,150,255,.42); --hl-pink:rgba(255,100,180,.4); --hl-violet:rgba(160,120,255,.42);
  --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#f2f1ee; --bg-2:#e9e8e4; --surface:#ffffff; --surface-2:#f4f3f0; --surface-3:#e8e7e3;
  --line:rgba(10,10,12,.08); --line-2:rgba(10,10,12,.16);
  --text:#0e0e10; --text-2:#7d7d84; --text-3:#a9a9af; --text-inv:#fff;
  --sheet:#141416; --sheet-text:#f6f6f7; --sheet-2:#8c8c93; --sheet-line:#3a3a40;
  --glass:rgba(255,255,255,.78); --glass-2:rgba(10,10,12,.04);
  --overlay:rgba(20,20,24,.38);
  --shadow:0 18px 50px -20px rgba(30,20,10,.28), 0 2px 8px rgba(30,20,10,.08);
  --shadow-sm:0 6px 18px -10px rgba(30,20,10,.3);
  --c-gray:#6b6b73; --c-red:#d93a3a; --c-orange:#e0631a; --c-amber:#b88600; --c-green:#16924f;
  --c-teal:#0f8f88; --c-blue:#2f6fe0; --c-violet:#7448e0; --c-pink:#d0388a;
  --hl-yellow:rgba(255,214,10,.55); --hl-orange:rgba(255,150,70,.45); --hl-green:rgba(60,214,130,.42);
  --hl-blue:rgba(90,160,255,.4); --hl-pink:rgba(255,120,190,.4); --hl-violet:rgba(170,130,255,.4);
  color-scheme:light;
}

*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--t-body);line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:inherit}
svg.i{width:18px;height:18px;flex:none;display:inline-block;vertical-align:middle}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
::selection{background:color-mix(in oklab,var(--accent) 45%,transparent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent}
[hidden]{display:none!important}

/* ---------- Boot ---------- */
#boot{position:fixed;inset:0;display:grid;place-items:center;background:var(--bg);z-index:100;transition:opacity .4s}
#boot.gone{opacity:0;pointer-events:none}
.wordmark{font-weight:600;letter-spacing:-.04em;display:inline-flex;align-items:baseline;gap:.08em}
.wordmark i{width:.2em;height:.2em;border-radius:.02em;background:var(--mark);display:inline-block}
