/* ==========================================================================
   우리집 본부 (Woorijip HQ) — Design System Tokens
   Warm Pastel Clay & Natural Oak Miniature Home Aesthetic
   ========================================================================== */

:root {
  /* Viewport & Touch Metrics */
  --app-max-width: 430px;
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Typography */
  --font-sans: "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --text-2xs: 0.72rem;   /* ~11.5px */
  --text-xs: 0.78rem;    /* ~12.5px */
  --text-sm: 0.86rem;    /* ~13.8px */
  --text-base: 0.94rem;  /* ~15px */
  --text-md: 1.02rem;    /* ~16.3px */
  --text-lg: 1.18rem;    /* ~18.9px */
  --text-xl: 1.35rem;    /* ~21.6px */
  --text-2xl: 1.55rem;   /* ~24.8px */

  /* Warm Linen & Cream Surface Palette */
  --bg-desktop-linen: #e6ddd0;
  --bg-desktop-glow: #efe7dc;
  --bg-shell: #f5efe6;
  --bg-shell-bottom: #efe6da;
  --bg-card: #fcf9f4;
  --bg-card-elevated: #fffdf9;
  --bg-stage: #f4ece1;
  --bg-subtle: #efe6d9;
  --bg-input: rgba(255, 253, 249, 0.92);

  /* Cream Glassmorphism (Readability over 3D Backgrounds) */
  --glass-cream: rgba(251, 247, 240, 0.86);
  --glass-cream-strong: rgba(253, 250, 245, 0.93);
  --glass-card-inner: rgba(255, 253, 249, 0.78);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-blur: 10px;

  /* Motto Soft Pastel Mesh Gradient */
  --motto-bg-base: #fdf8f1;
  --motto-glow-apricot: rgba(255, 204, 158, 0.52);
  --motto-glow-lavender: rgba(216, 222, 248, 0.44);
  --motto-glow-butter: rgba(255, 236, 196, 0.42);

  /* Ink & Text Hierarchy */
  --ink-primary: #2b211b;
  --ink-secondary: #5c4b3e;
  --ink-muted: #8b7969;
  --ink-soft: #a69483;
  --ink-on-dark: #fffdf9;

  /* Brand & Warm Oak Accents */
  --espresso-active: #2f241f;
  --espresso-hover: #3f312b;
  --oak-primary: #b87948;
  --oak-deep: #965d32;
  --oak-soft: #ead6c0;
  --oak-tint: rgba(184, 121, 72, 0.13);

  /* Semantic Status Colors */
  --sage-ok: #558b6e;
  --sage-soft: rgba(85, 139, 110, 0.15);
  --amber-warn: #d4893b;
  --amber-soft: rgba(212, 137, 59, 0.16);
  --coral-danger: #c95b4b;
  --coral-soft: rgba(201, 91, 75, 0.14);
  --sky-accent: #5e95b8;
  --sky-soft: rgba(94, 149, 184, 0.15);

  /* Poster Memo Note Pastel Tones */
  --tone-cream-bg: #fffdf6;
  --tone-cream-border: #e8dcc8;
  --tone-peach-bg: #fff1e7;
  --tone-peach-border: #f2cbb2;
  --tone-butter-bg: #fff9df;
  --tone-butter-border: #ebd89c;
  --tone-sage-bg: #eef7ef;
  --tone-sage-border: #c3dec6;
  --tone-lavender-bg: #f3f0fb;
  --tone-lavender-border: #d5cdeef0;

  /* Borders & Dividers */
  --border-soft: rgba(168, 142, 118, 0.2);
  --border-medium: rgba(152, 124, 98, 0.32);
  --border-strong: rgba(120, 94, 72, 0.45);

  /* Shadows */
  --shadow-shell: 0 24px 64px rgba(58, 42, 28, 0.18), 0 4px 16px rgba(58, 42, 28, 0.08);
  --shadow-card: 0 10px 26px rgba(78, 56, 38, 0.07), 0 2px 6px rgba(78, 56, 38, 0.04);
  --shadow-pill: 0 4px 12px rgba(72, 52, 36, 0.08);
  --shadow-pill-active: 0 7px 16px rgba(47, 36, 31, 0.24);
  --shadow-pin: 0 6px 16px rgba(56, 39, 24, 0.18), 0 1px 4px rgba(56, 39, 24, 0.1);
  --shadow-modal: 0 22px 54px rgba(36, 25, 16, 0.32);

  /* Border Radii */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-shell: 36px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Motion Curves */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}
