/* ========================================
   Base — 字體、變數、Reset
   ======================================== */

/* Fonts */
@font-face {
  font-family: 'GenSenRounded';
  src: url('https://lab.helloruru.com/fonts/GenSenRounded-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('https://lab.helloruru.com/fonts/GenSenRounded-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenSenRounded';
  src: url('https://lab.helloruru.com/fonts/GenSenRounded-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables — 可動態覆蓋實現即時預覽 */
:root {
  /* Colors — Cloud Dancer 雲上舞（Pantone 2026 預設） */
  --color-bg: #FEFEFE;
  --color-heading: #8B8680;
  --color-text: #4A4A4A;
  --color-button: #A8A29D;
  --color-accent: #D4D0CC;

  /* Semantic Colors */
  --color-border: #E8E4E1;
  --color-shadow: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-family: 'GenSenRounded', 'Noto Sans TC', sans-serif;
  --font-size-h1: 40px;
  --font-size-h2: 28px;
  --font-size-h3: 20px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --line-height-heading: 1.3;
  --line-height-body: 1.8;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 4px 16px var(--color-shadow);
  --shadow-lg: 0 8px 32px var(--color-shadow);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: 500;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  margin-bottom: var(--spacing-md);
  transition: color 0.3s ease;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: var(--color-heading);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--color-heading);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 500;
  color: var(--color-heading);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-button);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Buttons */
button {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
