/* ============================================
   Design Tokens / CSS Custom Properties
   kichi - ワクワクをつくる基地
   ============================================ */

:root {
  /* ── Brand Colors (from logo) ── */
  --color-sky-blue: #00A0E9;
  --color-magenta: #E4007F;
  --color-yellow: #FFF100;
  --color-green: #009944;

  /* ── Neutral Colors ── */
  --color-text: #1A1A1A;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-white: #FFFFFF;
  --color-off-white: #F8F6F3;
  --color-cream: #FDF8F0;
  --color-light-gray: #F0EEEB;
  --color-gray: #D0CEC8;
  --color-dark: #1A1A1A;
  --color-dark-bg: #2D2D2D;
  --color-dark-section: #1E1E1E;

  /* ── Semantic Colors ── */
  --color-kraft: #C4A882;
  --color-kraft-light: #E8D5B7;
  --color-wood: #8B7355;

  /* ── Typography ── */
  --font-heading: 'Zen Maru Gothic', 'Rounded Mplus 1c', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-handwrite: 'Zen Maru Gothic', cursive;

  /* ── Font Sizes ── */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* ── Font Weights ── */
  --font-normal: 400;
  --font-medium: 500;
  --font-bold: 700;
  --font-black: 900;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.18);
  --shadow-card: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 6px 12px 30px rgba(0, 0, 0, 0.18);
  --shadow-polaroid: 3px 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-polaroid-hover: 8px 16px 35px rgba(0, 0, 0, 0.22);

  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 400ms var(--ease-out-back);

  /* ── Z-Index Scale ── */
  --z-bg-shapes: -1;
  --z-default: 1;
  --z-card: 10;
  --z-card-hover: 20;
  --z-tape: 30;
  --z-nav: 100;
  --z-mobile-menu: 150;
  --z-modal: 200;
  --z-loading: 300;

  /* ── Container ── */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: 1.5rem;

  /* ── Masking Tape Colors ── */
  --tape-blue: rgba(0, 160, 233, 0.7);
  --tape-pink: rgba(228, 0, 127, 0.6);
  --tape-yellow: rgba(255, 241, 0, 0.7);
  --tape-green: rgba(0, 153, 68, 0.6);
}

/* ── Dark section overrides ── */
[data-theme="dark"] {
  --color-text: #F0EEEB;
  --color-text-light: #CCCCCC;
  --color-text-muted: #999999;
}

/* ── Responsive font scale ── */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-6xl: 2.75rem;
    --text-7xl: 3.25rem;
    --container-padding: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 1.75rem;
    --text-5xl: 2rem;
    --text-6xl: 2.25rem;
    --text-7xl: 2.75rem;
  }
}
