/* paper — tokens. Change these to retheme the whole kit.
   Measured from 4 screenshots + 2 screen recordings of a spatial-notes canvas (refs/).
   Values marked inferred were read by eye or proposed — the references don't show them. */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* colour — a grey desk, off-white paper, colour only from stickies, markers and photos */
  --bg: #e9eaec;           /* the canvas (measured #e8eaec · #eaebed · #ebecee) */
  --tile: #f8f9fa;         /* paper (measured #f7f8fa · #fafbfc) */
  --tile-hover: #ffffff;   /* paper under the pointer brightens as it lifts */
  --raised: #ffffff;       /* white controls sitting on the canvas (dock buttons) */
  --well: #eceef0;         /* recessed controls on paper: empty checkbox, field, soft button (measured) */
  --well-hover: #e3e5e8;
  --ink: #17181a;          /* text, checked boxes, primary button (measured) */
  --muted: #606266;        /* the kicker line above a title — ≥ 4.5 on canvas, paper and stickies */
  --faint: #a9abaf;        /* placeholders, disabled */
  --accent: #d9f85e;       /* lime sticky — the one accent (measured #d0fb60 · #d8f85c) */
  --accent-hover: #cdf03f;
  --on-accent: #17181a;
  --mark: #eeff2a;         /* highlighter behind mono text (measured ≈ #eaff1f) */
  --danger: #e5484d;       /* inferred */
  --success: #1fa65a;      /* inferred */
  --focus: #17181a;
  --track: #dcdee1;        /* switch off */
  --chrome: #1b1c1f;       /* dark floating toolbars, toasts (measured) */
  --on-chrome: #f2f3f4;
  --on-chrome-muted: #a6a8ad;
  --scrim: rgb(233 234 236 / 0.72); /* overlays whiten the desk instead of darkening it (video: focus fades others to the canvas) */

  /* sticky / paper tones — data-tone="lime | pink | peach | mint | dark" */
  --tone-lime: #d9f85e;
  --tone-pink: #f5dce3;    /* measured #f4d9e0 */
  --tone-peach: #f7e8e1;   /* measured */
  --tone-mint: #c8f6ef;    /* measured #c3f7f1 (folder) */
  --tone-mint-ink: #0c4f42;
  --tone-mint-muted: #266a5c;
  --tone-dark: #232427;    /* the "Contrasts" card (measured #2a2b2d) */

  /* type — a neutral grotesk for what you read, mono for lists and data */
  --font: 'Inter', -apple-system, 'SF Pro Text', system-ui, sans-serif;      /* inferred: refs use SF Pro */
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;      /* inferred: refs use SF Mono */
  --text-xs: 11px;
  --text-sm: 12px;         /* mono checklists */
  --text-md: 14px;         /* default UI size */
  --text-lg: 16px;
  --text-xl: 20px;         /* card titles ("Today", "Pickup") */
  --text-2xl: 26px;        /* note headline */
  --text-3xl: 40px;        /* display */
  --weight: 400;
  --weight-ui: 500;        /* titles, labels, buttons */
  --weight-display: 500;   /* headlines stay medium — never bold */
  --leading: 1.4;
  --leading-tight: 1.12;
  --leading-list: 1.85;    /* checklists breathe (measured ≈ 20px rows on 12px mono) */
  --tracking: -0.006em;
  --tracking-display: -0.028em;
  --tracking-mono: 0;

  /* space */
  --s-1: 4px;
  --s-2: 6px;
  --s-3: 8px;
  --s-4: 16px;             /* gap between objects on the desk (refs ≈ 16–34px) */
  --s-5: 14px;
  --s-6: 18px;
  --s-7: 24px;             /* paper padding (refs ≈ 8% of card width) */
  --s-8: 36px;
  --s-9: 56px;
  --s-10: 80px;

  /* shape */
  --r-sm: 4px;             /* photos are prints: almost square (measured 2–4px) */
  --r-md: 10px;            /* buttons, fields, dock squares */
  --r-lg: 18px;            /* paper cards (measured 14px on a 310px card → ~5%) */
  --r-pill: 999px;         /* toolbars, toasts, switch */
  --h-sm: 28px;
  --h-md: 36px;
  --h-lg: 44px;
  --tilt: 2.2deg;          /* stickies and loose prints (measured 1.5–3°) */

  /* depth — everything on the desk casts a soft, wide shadow; more when it lifts */
  --shadow-paper: 0 0.5px 1px rgb(20 22 26 / 0.05), 0 3px 8px -2px rgb(20 22 26 / 0.06), 0 16px 34px -10px rgb(20 22 26 / 0.13);
  --shadow-lift: 0 1px 2px rgb(20 22 26 / 0.06), 0 10px 22px -6px rgb(20 22 26 / 0.12), 0 32px 60px -16px rgb(20 22 26 / 0.22);
  --shadow-sm: 0 0.5px 1px rgb(20 22 26 / 0.08), 0 2px 6px -1px rgb(20 22 26 / 0.08);
  --shadow-float: 0 30px 80px -20px rgb(20 22 26 / 0.28), 0 10px 30px -10px rgb(20 22 26 / 0.14);
  --sheet-edge: rgb(20 22 26 / 0.08); /* the hairline under a sheet peeking out of a stack */

  /* motion — read from the recordings: moves take ~0.4 s, fast start, long settle */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* ease-out quint */
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1); /* new note pops in with a small overshoot (inferred) */
  --fast: 160ms;           /* hover, press */
  --base: 400ms;           /* dim others, fan a stack out, collapse (measured 0.4 s) */
  --slow: 520ms;           /* a note opens into a full page (measured 0.5 s) */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #141517; --tile: #1f2023; --tile-hover: #26272b; --raised: #2a2b2f; --well: #2c2d31; --well-hover: #35363b;
    --ink: #eeeff1; --muted: #9a9ca1; --faint: #5d5f64; --focus: #eeeff1; --track: #3a3b40;
    --chrome: #2c2d31; --on-chrome: #f2f3f4; --on-chrome-muted: #a6a8ad;
    --accent: #cdee52; --accent-hover: #d9f86a; --mark: #e2f53a;
    --tone-lime: #cdee52; --tone-pink: #e8c6d0; --tone-peach: #e9d6cc; --tone-mint: #b2e9e0; --tone-dark: #0d0e10;
    --scrim: rgb(20 21 23 / 0.72);
    --shadow-paper: 0 0.5px 0 rgb(255 255 255 / 0.04) inset, 0 3px 8px -2px rgb(0 0 0 / 0.4), 0 16px 34px -10px rgb(0 0 0 / 0.55);
    --shadow-lift: 0 0.5px 0 rgb(255 255 255 / 0.06) inset, 0 10px 22px -6px rgb(0 0 0 / 0.5), 0 32px 60px -16px rgb(0 0 0 / 0.7);
    --shadow-sm: 0 2px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-float: 0 30px 80px -20px rgb(0 0 0 / 0.8);
    --sheet-edge: rgb(0 0 0 / 0.45);
  }
}
:root[data-theme='dark'] {
  --bg: #141517; --tile: #1f2023; --tile-hover: #26272b; --raised: #2a2b2f; --well: #2c2d31; --well-hover: #35363b;
  --ink: #eeeff1; --muted: #9a9ca1; --faint: #5d5f64; --focus: #eeeff1; --track: #3a3b40;
  --chrome: #2c2d31; --on-chrome: #f2f3f4; --on-chrome-muted: #a6a8ad;
  --accent: #cdee52; --accent-hover: #d9f86a; --mark: #e2f53a;
  --tone-lime: #cdee52; --tone-pink: #e8c6d0; --tone-peach: #e9d6cc; --tone-mint: #b2e9e0; --tone-dark: #0d0e10;
  --scrim: rgb(20 21 23 / 0.72);
  --shadow-paper: 0 0.5px 0 rgb(255 255 255 / 0.04) inset, 0 3px 8px -2px rgb(0 0 0 / 0.4), 0 16px 34px -10px rgb(0 0 0 / 0.55);
  --shadow-lift: 0 0.5px 0 rgb(255 255 255 / 0.06) inset, 0 10px 22px -6px rgb(0 0 0 / 0.5), 0 32px 60px -16px rgb(0 0 0 / 0.7);
  --shadow-sm: 0 2px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-float: 0 30px 80px -20px rgb(0 0 0 / 0.8);
  --sheet-edge: rgb(0 0 0 / 0.45);
}

@media (prefers-reduced-motion: reduce) {
  :root { --fast: 1ms; --base: 1ms; --slow: 1ms; --tilt: 0deg; }
}
