/* ==========================================================
   VARIABLES
========================================================== */

:root {
  /* =========================================
       COLORS
    ========================================= */

  --bg: #f7f6f2;
  --surface: #fff;
  --surface-dark: #ece8df;
  --text: #111;
  --muted: #666;
  --border: #111;
  --accent: #e11d48;
  --accent-dark: #9f1239;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: #111;
  --paper: #faf8f3;
  --panel: #fff;
  --outline: #000;

  /* =========================================
       TYPOGRAPHY
    ========================================= */

  --font-heading: "Anton", sans-serif;
  --font-title: "Bebas Neue", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --letter-spacing: 0.08em;

  /* =========================================
       FONT SIZES
    ========================================= */

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.3vw, 1.1rem);
  --fs-lg: clamp(1.3rem, 1rem + 0.7vw, 1.8rem);
  --fs-xl: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  --fs-hero: clamp(3rem, 5vw, 6rem);

  /* =========================================
       SPACING
    ========================================= */

  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* =========================================
       BORDER
    ========================================= */

  --border-thin: 2px solid var(--border);
  --border-normal: 3px solid var(--border);
  --border-thick: 5px solid var(--border);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* =========================================
       SHADOWS
    ========================================= */

  --shadow-xs: 2px 2px 0 var(--shadow);
  --shadow-sm: 4px 4px 0 var(--shadow);
  --shadow-md: 6px 6px 0 var(--shadow);
  --shadow-lg: 10px 10px 0 var(--shadow);
  --shadow-xl: 14px 14px 0 var(--shadow);

  /* =========================================
       TRANSITIONS
    ========================================= */

  --fast: 0.2s ease;
  --normal: 0.35s ease;
  --slow: 0.6s ease;
  --bounce: cubic-bezier(0.22, 1, 0.36, 1);

  /* =========================================
       INPUTS
    ========================================= */

  --input-height: 58px;
  --button-height: 58px;

  /* =========================================
       Z INDEX
    ========================================= */

  --z-bg: -2;
  --z-overlay: -1;
  --z-main: 10;
  --z-popup: 100;
}

/* ==========================================================
   DARK THEME
========================================================== */

[data-theme="dark"] {
  --bg: #111;
  --surface: #1b1b1b;
  --surface-dark: #252525;
  --paper: #1d1d1d;
  --panel: #202020;
  --text: #f5f5f5;
  --muted: #bbb;
  --border: #fff;
  --outline: #fff;
  --shadow: #000;
}

/* ==========================================================
   GLOBAL RESET VALUES
========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ==========================================================
   SELECTION
========================================================== */

::selection {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #111;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================
   DEFAULT ELEMENTS
========================================================== */

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}
