/* =========================================================
   TIWARI TRADERS — Design Tokens & Base Styles
   Theme: graded water-filtration minerals — gravel, sand,
   quartz silica. Signature motif: the "Grain Scale", a
   horizontal ruler of dots running fine -> coarse, echoing
   how every product here is defined by its particle size.
   ========================================================= */

:root {
  /* ---- Color: Well-water dark, stone neutral, quartz gold, water teal ---- */
  --ink:            #14262b;   /* near-black teal — headers, footer, text on light */
  --ink-soft:       #1c343b;
  --deep:           #0d2b33;   /* hero overlay / dark sections */
  --deep-2:         #0a2229;
  --teal:           #2f97a3;   /* water accent — links, icons, focus */
  --teal-dark:      #1f6b74;
  --gold:           #c1893f;   /* quartz/sand accent — CTA, highlights */
  --gold-dark:      #a06f2d;
  --silt:           #f1efe4;   /* light section background */
  --silt-2:         #e7e2d1;   /* card / alt background */
  --stone:          #d7d0bd;   /* hairline borders */
  --paper:          #fbfaf6;   /* near-white surface */
  --text:           #1a2623;
  --text-soft:      #4d5a56;
  --text-on-dark:   #eef2ee;
  --text-on-dark-soft: #b9c7c4;
  --white:          #ffffff;

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Archivo", sans-serif;
  --font-body:    "Public Sans", "Inter", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* ---- Scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5:  clamp(3rem, 2.1rem + 4vw, 5rem);

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;

  --max-w: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-soft); font-size: var(--step-1); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--silt); }
.section--dark { background: var(--deep); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-soft); }

/* ---- Grain Scale signature motif ---- */
.grain-scale {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 14px;
}
.grain-scale span {
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.grain-scale span:nth-child(1) { width: 3px; height: 3px; }
.grain-scale span:nth-child(2) { width: 5px; height: 5px; }
.grain-scale span:nth-child(3) { width: 7px; height: 7px; }
.grain-scale span:nth-child(4) { width: 9px; height: 9px; }
.grain-scale span:nth-child(5) { width: 11px; height: 11px; }
.grain-scale span:nth-child(6) { width: 13px; height: 13px; }
.grain-scale span:nth-child(7) { width: 14px; height: 14px; }
.grain-scale--reverse span { background: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.section--dark .btn-outline { color: var(--white); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--silt-2);
  color: var(--ink-soft);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  display: inline-block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }
