/* ============================================================
   Symposia — design tokens
   Adapted from the xiongcha (onboard 上車) design system: same token names, scales, radii,
   shadows, motion and typography. Palette: the salmon brand is replaced by a light moss green,
   and neutrals are green-tinted so the whole UI is monochromatic green.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
  /* Light theme only (also opts out of browser auto-dark); there are no dark-mode rules. */
  color-scheme: only light;

  /* ---- Brand: Light Moss (replaces --salmon-soft-*) ---- */
  --moss-50:  #F4F7EE;
  --moss-100: #E9F0DD;
  --moss-200: #D5E2C0;
  --moss-300: #BED09F;
  --moss-400: #A7BE83;
  --moss-500: #8FA968;   /* primary */
  --moss-600: #76904F;
  --moss-700: #5D733E;
  --moss-800: #465730;
  --moss-900: #2F3B21;

  /* ---- Neutrals: green-tinted stone (replaces the cream stone scale) ---- */
  --stone-0:   #FFFFFF;
  --stone-50:  #F8FAF5;
  --stone-100: #F0F4EA;
  --stone-200: #E2EAD8;
  --stone-300: #CCD8BF;
  --stone-400: #A5B399;
  --stone-500: #7D8B72;
  --stone-600: #617056;
  --stone-700: #45523C;
  --stone-800: #333D2C;
  --stone-900: #222B1D;

  /* ---- Semantic aliases (light theme), same names as xiongcha ---- */
  --bg-page:        var(--stone-50);
  --bg-elevated:    var(--stone-0);
  --bg-sunken:      var(--stone-100);
  --surface-card:   var(--stone-0);
  --surface-hover:  var(--stone-100);
  --surface-active: var(--stone-200);

  --text-strong:    var(--stone-900);
  --text-body:      var(--stone-700);
  --text-muted:     var(--stone-500);
  --text-faint:     var(--stone-400);
  --text-on-brand:  var(--moss-900);   /* dark green on light moss keeps contrast */
  --text-link:      var(--moss-700);

  --border-subtle:  var(--stone-200);
  --border-default: var(--stone-300);
  --border-strong:  var(--stone-400);

  --brand:          var(--moss-500);
  --brand-hover:    var(--moss-600);
  --brand-active:   var(--moss-700);
  --brand-strong:   var(--moss-700);
  --brand-soft:     var(--moss-100);
  --brand-tint:     var(--moss-50);
  --ring:           color-mix(in srgb, var(--moss-500) 45%, transparent);

  /* Feedback stays inside the green family (monochromatic): darker = attention. */
  --success: var(--moss-700);
  --warning: var(--moss-800);
  --danger:  var(--moss-900);

  /* ---- Typography ---- */
  --font-sans: "Plus Jakarta Sans", "Noto Sans TC", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Noto Sans TC", -apple-system, system-ui, sans-serif;
  --font-hanzi: "Noto Sans TC", "Plus Jakarta Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-extra:   800;

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.015em;
  --tracking-caps:  0.08em;

  /* ---- Spacing (4px base) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;

  /* ---- Radii ---- */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  26px;
  --radius-pill: 999px;

  /* ---- Shadows (green-tinted, diffuse) ---- */
  --shadow-xs: 0 1px 2px rgba(34, 43, 29, 0.06);
  --shadow-sm: 0 2px 6px rgba(34, 43, 29, 0.07);
  --shadow-md: 0 6px 18px rgba(34, 43, 29, 0.08), 0 2px 5px rgba(34, 43, 29, 0.05);
  --shadow-lg: 0 16px 40px rgba(34, 43, 29, 0.10), 0 4px 10px rgba(34, 43, 29, 0.05);
  --shadow-brand: 0 10px 28px rgba(118, 144, 79, 0.28);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  /* ---- Layout ---- */
  --topbar-h: 56px;
  --container-md: 880px;
  --container-lg: 1120px;
}
