/* ============================================================
   SPEESSO — 共用設計系統（Design Tokens + 基礎元件）
   兩個頁面（index / order）共用這一份，改色只需要動 :root
   ============================================================ */

:root {
  /* 品牌色 */
  --speesso-forest:       #041611;
  --speesso-forest-light: #0d3d36;
  --speesso-gold:         #FCD34D;
  --speesso-deep-gold:    #B48E2F;
  --speesso-gold-dazzle:  linear-gradient(135deg, #FFFFFF 10%, #FFD700 40%, #B48E2F 100%);
  --glow:                 rgba(252, 211, 77, 0.6);

  /* 文字 */
  --text-primary:   #f8f5ef;
  --text-secondary: rgba(248, 245, 239, 0.78);
  --text-mute:      rgba(248, 245, 239, 0.45);

  /* 面板 / 線條 */
  --line-soft: rgba(252, 211, 77, 0.12);
  --panel-bg:  rgba(255, 255, 255, 0.035);
  --surface:   rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.06);

  /* 字體 */
  --font-brand: 'Teko', sans-serif;
  --font-body:  'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-mono:  'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --logo-tracking: 0.25em;
  --speed-entry: 0.8s;

  /* 圓角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(252, 211, 77, 0.08), transparent 28%),
    radial-gradient(circle at left center, rgba(13, 61, 54, 0.35), transparent 30%),
    var(--speesso-forest);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--speesso-gold); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--speesso-gold); color: var(--speesso-forest); }

/* ---------- 共用元件 ---------- */

.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(252, 211, 77, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.soft-line { border-color: var(--line-soft) !important; }

.brand-gold {
  background: var(--speesso-gold-dazzle);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.teko { font-family: var(--font-brand); }
.mono { font-family: var(--font-mono); }

/* 導覽列 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__logo {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  letter-spacing: 0.18em;
}
.site-nav { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; color: var(--text-secondary); }
.site-nav a { transition: color 0.15s; }
.site-nav a:hover { color: #fff; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; padding: 0.75rem 1.5rem;
  font-weight: 500; font-size: 1rem;
  transition: all 0.15s;
}
.btn--gold { background: var(--speesso-gold); color: #000; }
.btn--gold:hover { opacity: 0.9; }
.btn--ghost { border: 1px solid rgba(252, 211, 77, 0.3); color: var(--text-primary); }
.btn--ghost:hover { background: var(--speesso-gold); color: #000; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer__inner {
  max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: 0.875rem; color: rgba(252, 211, 77, 0.65);
}
.site-footer__links { display: flex; align-items: center; gap: 1.25rem; }
.site-footer__links a { transition: color 0.15s; }
.site-footer__links a:hover { color: #fff; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-footer__inner { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
