/* ==========================================================================
   Swasti Builders — Design Tokens
   Line: "Harmony with Nature" / "Moments illuminated."
   Palette: light and natural. Cream, sand, warm stone and charcoal around the Swasti red.
   No greens, blues or browns.
   --------------------------------------------------------------------------
   Brand roles
     Swasti Red  #D52B1E  signature, from the logo. Accents and primary actions.
     Cream       #F5EEEA  the page. Warm, calm, paper-like base.
     Charcoal    #2E2E2E  type and structure. From the charcoal logo.
     Sand        #E3D5C1  soft surfaces, bands, tags.
     Stone       warm greys between cream and charcoal.
   ========================================================================== */

:root {
  /* ---- Primitive palette ------------------------------------------------ */
  /* Colors are a starting point and easy to change: edit the 500 values and
     the scales below, and every component follows through the semantic layer. */
  --red-50:  #F8E7E3;  --red-100: #F5D6D2;  --red-200: #EFB6B0;  --red-300: #E89189;
  --red-400: #DE5E54;  --red-500: #D52B1E;  --red-600: #BB291D;  --red-700: #9E261C;
  --red-800: #80231C;  --red-900: #62201B;



  /* Sand: light natural tone for soft surfaces */
  --sand-50:  #F7F1E8;  --sand-100: #EFE6DA;  --sand-200: #E3D5C1;  --sand-300: #D2BFA4;

  /* Stone: warm neutrals running from the cream swatch to charcoal */
  --stone-0:   #FBF8F6;  --stone-50:  #F5EEEA;  --stone-100: #EDE4DE;  --stone-200: #DDD2CA;
  --stone-300: #C4B7AE;  --stone-400: #A39589;  --stone-500: #7F736A;  --stone-600: #5F5650;
  --stone-700: #45403C;  --stone-800: #2E2E2E;  --stone-900: #1C1A19;

  /* ---- Semantic colors (use these in components) ------------------------ */
  --color-bg:             var(--stone-50);   /* cream page */
  --color-bg-raised:      var(--stone-0);    /* cards, inputs */
  --color-bg-sunken:      var(--stone-100);  /* bands, wells */
  --color-bg-inverse:     var(--stone-800);  /* charcoal footer / hero overlays */

  --color-text:           var(--stone-800);  /* 11.8:1 on cream */
  --color-text-muted:     var(--stone-600);  /* 6.2:1 on cream */
  --color-text-quiet:     rgb(46 46 46 / 0.45); /* the greyed half of a statement; large text only */
  --color-text-subtle:    var(--stone-500);  /* 4.0:1, large text / captions only */
  --color-text-inverse:   var(--stone-50);

  --color-border:         var(--stone-200);
  --color-border-strong:  var(--stone-300);
  --color-divider:        var(--stone-200);

  --color-brand:          var(--red-500);    /* logo red. 4.4:1 on cream: large text, icons, fills */
  --color-brand-hover:    var(--red-600);
  --color-brand-press:    var(--red-700);
  --color-brand-text:     var(--red-600);    /* red for small text/links, 5.3:1 on cream */
  --color-brand-soft:     var(--red-50);
  --color-on-brand:       #FFFFFF;           /* 5.0:1 on red-500 */

  --color-softscape:      var(--stone-500);
  --color-softscape-soft: var(--sand-100);
  --color-softscape-text: var(--stone-600);
  --color-hardscape:      var(--stone-800);  /* stone / charcoal */
  --color-hardscape-soft: var(--stone-200);


  --color-success:        var(--stone-700);
  --color-info:           var(--stone-700);
  --color-warning:        #A8650F;
  --color-danger:         var(--red-700);

  --color-focus:          var(--red-600);

  /* ---- Typography ------------------------------------------------------- */
  /* One grotesk family for everything, editorial and quiet (reference: lightshiprv.com).
     The hand-drawn Swasti signature is the only expressive letterform.
     Swap the family here to change the whole site. */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-sans:    "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-accent:  "Jost", "Futura", sans-serif; /* optional: wide-tracked labels echoing "BUILDERS" */
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Fluid type scale (ratio ~1.25, display steps larger) */
  --text-xs:   0.75rem;                                   /* 12 */
  --text-sm:   0.875rem;                                  /* 14 */
  --text-base: 1rem;                                      /* 16 */
  --text-lg:   1.125rem;                                  /* 18 */
  --text-xl:   clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);   /* 20-24 */
  --text-2xl:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);       /* 24-32 */
  --text-3xl:  clamp(2rem, 1.6rem + 1.6vw, 2.75rem);      /* 32-44 */
  --text-4xl:  clamp(2.5rem, 1.9rem + 2.6vw, 4rem);       /* 40-64 */
  --text-5xl:  clamp(3rem, 2rem + 4.4vw, 5.5rem);         /* 48-88 */
  --text-6xl:  clamp(3.5rem, 1.5rem + 9vw, 10rem);        /* 56-160, giant statements */
  --text-statement: clamp(1.75rem, 1rem + 3vw, 3.75rem);  /* 28-60, editorial paragraph */

  --leading-none: 0.95;
  --leading-tight: 1.05;
  --leading-snug: 1.3;
  --leading-normal: 1.6;

  --tracking-display: -0.05em;   /* giant headlines */
  --tracking-tight: -0.03em;     /* headings, statements */
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-lockup: 0.32em;   /* the spaced-out "B U I L D E R S" */

  /* ---- Spacing (4px base) ----------------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 75rem;       /* 1200 */
  --container-narrow: 45rem;/* 720, long-form text */

  /* ---- Shape ------------------------------------------------------------ */
  /* Mostly architectural (small radii), with a single organic pill for tags. */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;   /* media and image panels */
  --radius-pill: 999px;

  --border-thin: 1px;
  --border-thick: 2px;

  /* ---- Elevation: soft, warm shadows ------------------------------------ */
  --shadow-sm: 0 1px 2px rgb(46 36 30 / 0.06);
  --shadow-md: 0 4px 16px rgb(46 36 30 / 0.08);
  --shadow-lg: 0 16px 40px rgb(46 36 30 / 0.12);

  /* ---- Motion: unhurried, natural --------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 600ms;

  /* ---- Texture: the faint vertical grain of the cream swatch ------------ */
  --texture-grain: repeating-linear-gradient(90deg,
      rgb(213 43 30 / 0.012) 0 1px, transparent 1px 37px,
      rgb(120 90 70 / 0.018) 37px 38px, transparent 38px 91px);

  /* ---- Breakpoints (reference; use in media queries) ---------------------
     sm 640px · md 768px · lg 1024px · xl 1280px                              */
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; }
}
