/* ==========================================================================
   base — NEXUS 沉浸暗夜 Token（對齊品牌識別）
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg-void: #020617;
  --bg-base: #050d1a;
  --bg-elev: #0a1628;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-hot: #3b82f6;
  --glow: rgba(56, 189, 248, 0.35);
  /* 質感金（統一選中態） */
  --gold: #e8c87a;
  --gold-bright: #f5e6b8;
  --gold-deep: #b8860b;
  --gold-glow: rgba(232, 200, 122, 0.42);
  --gold-grad: linear-gradient(
    145deg,
    #fff6d8 0%,
    #f0d78a 22%,
    #d4af37 48%,
    #a67c1a 72%,
    #6b4f0e 100%
  );
  --glass: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(148, 163, 184, 0.22);
  --font: "Noto Sans TC", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  /* 日曆狀態：金屬質感 */
  --day-contracted: #f08a3c;
  --day-contracted-grad: linear-gradient(
    145deg,
    #ffd4a8 0%,
    #ff9f4a 28%,
    #e86a12 55%,
    #b34a08 82%,
    #7a3205 100%
  );
  --day-event: #f0a0b8;
  --day-event-grad: linear-gradient(
    145deg,
    #ffe0ea 0%,
    #f7a8c0 28%,
    #e8799a 55%,
    #c44d72 82%,
    #8f2f52 100%
  );
  --day-reviewing: #5ec8f2;
  --day-reviewing-grad: linear-gradient(
    145deg,
    #d8f4ff 0%,
    #7dd3fc 28%,
    #38bdf8 55%,
    #0ea5e9 82%,
    #0369a1 100%
  );
  --day-maintenance: #111111;
  --day-maintenance-grad: linear-gradient(
    145deg,
    #4a4a4a 0%,
    #2a2a2a 35%,
    #111111 65%,
    #000000 100%
  );
  --day-available: #3d4f66;
  --day-available-grad: linear-gradient(
    145deg,
    #6b7f99 0%,
    #4a5f78 35%,
    #3d4f66 65%,
    #2a384a 100%
  );
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cat-concert: #38bdf8;
  --cat-sports: #4ade80;
  --cat-exhibition: #22d3ee;
  --cat-arts: #a78bfa;
  --cat-gathering: #7dd3fc;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--bg-void);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-void);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
