/* ==========================================================================
   HNGIA Mobile — Design Tokens
   Luxury Editorial Commerce · Quiet Luxury Minimalism
   Single source of truth for color, typography, spacing, radius, elevation.
   ========================================================================== */

:root {
  /* ---- Color ------------------------------------------------------- */
  /* Warm paper canvas. The page never reads as cold grey or SaaS blue. */
  --c-page: #f7f3ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f3ef;
  --c-bg-sunken: #efe8e1;
  /* Neutral frame behind a product photo — warm, never blue-grey. */
  --c-media-bg: #f1ece7;

  --c-text: #211f1c;
  --c-text-muted: #756f69;
  --c-text-subtle: #a89e93;
  --c-text-inverse: #ffffff;

  /* The single accent: a muted taupe brown. No indigo anywhere. */
  --c-accent: #8b7667;
  --c-accent-hover: #6f5c4f;
  --c-accent-active: #5d4c41;
  --c-accent-soft: #efe8e1;
  --c-accent-border: #ddd0c4;

  --c-border: #e7dfd8;
  --c-border-strong: #d8cdc2;
  --c-hairline: #efe8e1;

  --c-success: #4f6f52;
  --c-success-soft: #f0f4ef;
  --c-success-border: #cfdccf;

  --c-danger: #9c3d33;
  --c-danger-soft: #fbf1ef;
  --c-danger-border: #edcdc8;

  --c-warning: #8a6a3b;
  --c-warning-soft: #fbf5ea;

  /* ---- Typography --------------------------------------------------- */
  /* Serif display for editorial headings, clean sans for everything else. */
  --font-display: "Cormorant Garamond", "Playfair Display", "Times New Roman",
    Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --fs-section: 1.375rem; /* 22px — section title   */
  --fs-card-title: 0.875rem; /* 14px — product name  */
  --fs-body: 0.9375rem; /* 15px — body            */
  --fs-body-sm: 0.875rem; /* 14px — button text    */
  --fs-caption: 0.8125rem; /* 13px — caption        */
  --fs-micro: 0.6875rem; /* 11px — eyebrow/meta   */

  --lh-tight: 1.15;
  --lh-snug: 1.4;
  --lh-normal: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-wide: 0.16em;
  --tracking-tight: -0.01em;
  --tracking-serif: -0.015em;

  /* ---- Spacing (4px scale) ----------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  --screen-pad: 18px;
  --grid-gap: 13px;
  --section-gap: 36px;

  /* ---- Radius ------------------------------------------------------- */
  --r-card: 12px;
  --r-input: 10px;
  --r-chip: 999px;
  --r-btn: 10px;
  --r-image: 12px;
  --r-sheet: 24px;
  --r-circle: 999px;
  --r-xs: 6px;
  --r-sm: 8px;

  /* ---- Elevation ---------------------------------------------------- */
  /* Almost none. Luxury restraint comes from space, not shadow. */
  --sh-xs: 0 1px 2px rgba(33, 31, 28, 0.04);
  --sh-sm: 0 1px 2px rgba(33, 31, 28, 0.04);
  --sh-md: 0 4px 16px rgba(33, 31, 28, 0.07);
  --sh-lg: 0 -6px 32px rgba(33, 31, 28, 0.14);
  --sh-accent: 0 4px 12px rgba(33, 31, 28, 0.16);

  /* ---- Motion ------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --dur-slow: 380ms;

  /* ---- Layout ------------------------------------------------------- */
  --app-max: 480px;
  /* The bottom sheet stays a focused dialog even when the page behind it
     goes full-width on a tablet. */
  --sheet-max: 520px;
  --header-h: 60px;
  --touch-min: 44px;

  /* ---- Safe area ---------------------------------------------------- */
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left: env(safe-area-inset-left, 0px);
  --sa-right: env(safe-area-inset-right, 0px);

  --z-sticky: 20;
  --z-overlay: 80;
  --z-sheet: 90;
  --z-toast: 100;
}
