/**
 * 哇沙米家 Wasabi Home Design System — Auto-generated
 * Do NOT edit directly. Edit src/design-system.ts and run:
 *   npx tsx scripts/build-css.ts
 */

  :root {
    /* Colors — Primary */
    --gold: #D4A843;
    --gold-hover: #C89A3B;
    --sage: #7A9468;

    /* Colors — Neutrals (warm-shifted, no pure black/white) */
    --off-white: #F5F0EB;
    --beige: #E8E2DA;
    --tan: #D4C8B8;
    --warm-gray: #B8A99A;
    --gray-brown: #8A7F74;
    --medium-brown: #6B6156;
    --dark: #3A3A3A;
    --charcoal: #2A2520;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;

    /* Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-subtle: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-default: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-overlay: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-text: 0 1px 4px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 2px 10px rgba(212, 168, 67, 0.25);
    --shadow-gold-hover: 0 4px 16px rgba(212, 168, 67, 0.3);

    /* Typography — font stacks */
    --font-display: 'Josefin Sans', sans-serif;
    --font-heading: 'Noto Serif TC', serif;
    --font-body: 'Noto Sans TC', sans-serif;

    /* Typography — size scale.
       Body default = --text-md (14px). Section titles use --text-2xl (20px).
       Don't introduce intermediate tokens (15, 22 already snapped); use
       font-weight to add hierarchy when sizes are similar. */
    --text-2xs: 10px;
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 13px;
    --text-md: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 20px;
    --text-3xl: 22px;
    --text-4xl: 28px;

    /* Typography — weight scale.
       Body is light (300). Cards / sub-section titles step to medium (500);
       jumping straight to 600+ on Noto Sans TC body reads jarringly heavy.
       Reserve semibold (600) for chips / tags / badges / small status text. */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-default: 200ms var(--ease-out);

    /* Glass / Blur */
    --glass-light-bg: rgba(245, 240, 235, 0.85);
    --glass-dark-bg: rgba(58, 58, 58, 0.88);
    --glass-light-blur: blur(4px);
    --glass-dark-blur: blur(8px);
  }

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

  body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--dark);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Display — English titles / hero text (Josefin Sans) */
  .text-display {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: var(--text-4xl);
    letter-spacing: 2px;
    color: var(--dark);
    line-height: 1.3;
  }

  /* Heading — Chinese section titles (Noto Serif TC) */
  .text-heading {
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-2xl);
    letter-spacing: 0.5px;
    color: var(--dark);
    line-height: 1.5;
  }

  .text-heading-sm {
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-md);
    letter-spacing: 0.5px;
    color: var(--medium-brown);
    line-height: 1.5;
  }

  /* Body — default readable text */
  .text-body {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--text-md);
    letter-spacing: 0.3px;
    color: var(--dark);
    line-height: 1.8;
  }

  /* Caption — small labels, meta text */
  .text-caption {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--text-sm);
    letter-spacing: 0.3px;
    color: var(--medium-brown);
    line-height: 1.6;
  }

  /* Section label — uppercase-style category dividers */
  .text-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 1.5px;
    color: var(--medium-brown);
    text-transform: uppercase;
  }

  /* Brand wordmark */
  .brand {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 2px;
    color: var(--gray-brown);
  }

  .brand-en {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    letter-spacing: 2px;
  }

  .link {
    color: var(--medium-brown);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    letter-spacing: 0.3px;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    transition: color var(--transition-default);
  }

  .link:hover { color: var(--gold); }

  .link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
  }

  /* Base button reset & shared styles */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--space-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-md);
    letter-spacing: 0.3px;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
  }

  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(0.99); }
  .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  /* Size modifiers — apply alongside .btn (e.g. class="btn btn-primary btn-sm").
     Default .btn is medium. Don't introduce intermediate sizes; pick the
     closest of sm / md / lg. */
  .btn-sm {
    padding: var(--space-xs) 14px;
    font-size: var(--text-sm);
    gap: 8px;
  }
  .btn-lg {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-lg);
    gap: var(--space-sm);
  }

  /* Primary — gold background, white text (matches in-app .btn-primary) */
  .btn-primary {
    background: var(--gold);
    color: #fff;
    box-shadow: var(--shadow-gold);
  }
  .btn-primary:hover { box-shadow: var(--shadow-gold-hover); }

  /* Secondary — dark background, light text */
  .btn-secondary {
    background: var(--dark);
    color: var(--off-white);
  }

  /* Outline — transparent with warm border between beige and tan
     (50/50 mix keeps enough contrast for low-vision users; warms to
     full tan on hover). */
  .btn-outline {
    background: var(--off-white);
    color: var(--dark);
    border: 1px solid color-mix(in oklch, var(--beige), var(--tan));
    transition: transform var(--transition-default),
                box-shadow var(--transition-default),
                border-color var(--transition-default);
  }
  .btn-outline:hover { border-color: var(--tan); }

  /* Ghost — text-only, no background. For tighter ghost links, compose
     with .btn-sm (e.g. class="btn btn-ghost btn-sm"). */
  .btn-ghost {
    background: transparent;
    color: var(--medium-brown);
  }
  .btn-ghost:hover { color: var(--gold); transform: none; }

  /* CTA — standalone call-to-action (gold pill) */
  .cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background var(--transition-default), transform var(--transition-default);
  }

  .cta:hover { background: var(--gold-hover); }
  .cta:active { transform: scale(0.98); }
  .cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  /* Button sub-elements (for compound link-in-bio style buttons) */
  .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-icon svg { width: var(--space-sm); height: var(--space-sm); }

  .btn-text { flex: 1; }

  .btn-title {
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
  }

  .btn-sub {
    font-size: var(--text-sm);
    letter-spacing: 0.3px;
    display: block;
    margin-top: 2px;
    color: var(--medium-brown);
  }

  .btn-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform var(--transition-default);
  }
  .btn:hover .btn-arrow { transform: translateX(3px); }

  /* Variant-specific sub-element colors */
  .btn-primary .btn-icon  { background: rgba(255, 255, 255, 0.18); color: #fff; }
  .btn-primary .btn-title { color: #fff; }
  .btn-primary .btn-sub   { color: rgba(255, 255, 255, 0.92); }
  .btn-primary .btn-arrow { color: rgba(255, 255, 255, 0.7); }

  .btn-secondary .btn-icon  { background: rgba(245, 240, 235, 0.08); color: var(--gold); }
  .btn-secondary .btn-title { color: var(--off-white); }
  .btn-secondary .btn-sub   { color: rgba(245, 240, 235, 0.75); }
  .btn-secondary .btn-arrow { color: rgba(245, 240, 235, 0.5); }

  .btn-outline .btn-icon  { background: rgba(58, 58, 58, 0.04); color: var(--sage); }
  .btn-outline .btn-title { color: var(--dark); }
  .btn-outline .btn-sub   { color: var(--medium-brown); }
  .btn-outline .btn-arrow { color: rgba(58, 58, 58, 0.4); }

  .card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-default);
    overflow: hidden;
  }

  .badge {
    font-size: var(--text-2xs);
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(212, 168, 67, 0.18);
    color: var(--gold);
    flex-shrink: 0;
  }

  .home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--medium-brown);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  .home-link:hover { color: var(--charcoal); }
  .home-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
  }

  .site-footer {
    max-width: 720px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-lg) 0;
    text-align: center;
    font-family: var(--font-body);
  }

  .site-footer__copy {
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 1.7;
    color: var(--medium-brown);
    margin: 0;
    word-break: keep-all;
  }

  .site-footer__copy + .site-footer__copy {
    margin-top: 6px;
  }

  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
  }

  .site-footer__copy a {
    color: var(--medium-brown);
    text-decoration-color: color-mix(in oklch, var(--medium-brown), transparent 55%);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-default),
                color var(--transition-default);
  }

  .site-footer__copy a:hover {
    color: var(--gold-hover);
    text-decoration-color: color-mix(in oklch, var(--gold-hover), transparent 40%);
  }

  .site-footer__nav a[aria-current="page"] {
    color: var(--dark);
    text-decoration-color: color-mix(in oklch, var(--dark), transparent 60%);
  }

  .site-footer__copy a.site-footer__support {
    color: var(--sage);
    font-weight: var(--weight-medium);
    text-decoration-color: color-mix(in oklch, var(--sage), transparent 55%);
  }

  .site-footer__copy a.site-footer__support:hover {
    color: color-mix(in oklch, var(--sage), black 15%);
    text-decoration-color: color-mix(in oklch, var(--sage), transparent 30%);
  }

  @media (min-width: 640px) {
    .site-footer {
      padding: var(--space-lg) var(--space-md);
    }

    .site-footer__copy {
      font-size: var(--text-sm);
      letter-spacing: 0.3px;
    }
  }

  .text-center { text-align: center; }
  .text-muted  { color: var(--medium-brown); }
  .text-subtle { color: var(--gray-brown); }

  .mt-xs  { margin-top: var(--space-xs); }
  .mt-sm  { margin-top: var(--space-sm); }
  .mt-md  { margin-top: var(--space-md); }
  .mt-lg  { margin-top: var(--space-lg); }
  .mt-xl  { margin-top: var(--space-xl); }
  .mb-xs  { margin-bottom: var(--space-xs); }
  .mb-sm  { margin-bottom: var(--space-sm); }
  .mb-md  { margin-bottom: var(--space-md); }
  .mb-lg  { margin-bottom: var(--space-lg); }
  .mb-xl  { margin-bottom: var(--space-xl); }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.5s var(--ease-out) forwards;
  }

  @media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .btn,
    .btn-arrow {
      animation: none;
      transition: none;
      opacity: 1;
    }
  }
