/* ── Reset & Box Model ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ── */
:root {
  --bg:             #101916;
  --surface:        #17231f;
  --surface-hover:  #1e3029;
  --border:         rgba(237, 244, 239, 0.12);
  --border-strong:  rgba(237, 244, 239, 0.22);
  --text:           #f4efe6;
  --muted:          #a9b5ad;
  --muted2:         #708078;
  --accent:         #80b09d;
  --accent-strong:  #a4cbb8;
  --accent-warm:    #d79a76;
  --badge-live:     #9ac8a8;
  --badge-wip:      #9aa9a2;
  --danger:         #e58f87;
  --bg-gradient:    radial-gradient(ellipse at 50% -15%, rgba(46,102,87,0.28) 0%, transparent 68%), #101916;
  --nav-bg:         rgba(16,25,22,0.88);
  --nav-border:     rgba(237,244,239,0.10);
  --focus-ring:     rgba(164,203,184,0.72);
  --shadow-soft:    0 18px 50px rgba(0,0,0,0.18);
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);

  --radius-card:    14px;
  --radius-icon:    10px;
  --radius-badge:   999px;

  --nav-height:     56px;
  --container-max:  1100px;
  --container-pad:  40px;
}

/* ── Light Mode ── */
[data-theme="light"] {
  --bg:             #f5f0e6;
  --bg-gradient:    linear-gradient(180deg, #f5f0e6 0%, #faf8f2 54%, #f2eee5 100%);
  --surface:        #fffcf7;
  --surface-hover:  #f3eee5;
  --border:         rgba(24,51,45,0.12);
  --border-strong:  rgba(24,51,45,0.24);
  --text:           #18332d;
  --muted:          #63736a;
  --muted2:         #9aa69e;
  --accent:         #2e6657;
  --accent-strong:  #1f5143;
  --accent-warm:    #b86f50;
  --badge-live:     #2e7653;
  --badge-wip:      #718078;
  --danger:         #b54f4b;
  --nav-bg:         rgba(255,252,247,0.90);
  --nav-border:     rgba(24,51,45,0.12);
  --focus-ring:     rgba(46,102,87,0.46);
  --shadow-soft:    0 18px 50px rgba(30,45,39,0.10);
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button, a, select, input[type="checkbox"], input[type="radio"] {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Layout Utility ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }
}
