/* ============================================================
   StoreGrid · Platform Brief
   base.css — reset, variables, root, color system
   Warm bone canvas + persimmon punch. Distinctive, earthy, bold.
   ============================================================ */

:root {
  /* Canvas — warm bone family */
  --canvas:        #EFE9D8;
  --canvas-2:      #E5DEC8;   /* header/footer band */
  --canvas-3:      #DCD3B8;   /* deeper, for hover/active */
  --canvas-edge:   #CFC4A1;
  --canvas-tint:   #F5F1E4;   /* lightest, for highlights */

  /* Ink — warm near-black, not blue */
  --ink:          #1A1812;
  --ink-2:        #3D3829;
  --ink-3:        #5F5942;
  --ink-muted:    #8A836A;
  --ink-faint:    #B0A98E;

  /* Punch — persimmon */
  --punch:        #C44A2E;
  --punch-deep:   #A0381E;
  --punch-soft:   #E68066;
  --punch-tint:   #F3D9CC;

  /* Inverse — for dark blocks */
  --inverse-bg:    #1A1812;
  --inverse-bg-2:  #2A251A;
  --inverse-text:  #EFE9D8;
  --inverse-muted: #A39A7B;

  /* Rules & strokes */
  --rule:         rgba(26, 24, 18, 0.10);
  --rule-2:       rgba(26, 24, 18, 0.18);
  --rule-strong:  rgba(26, 24, 18, 0.32);
  --rule-inverse: rgba(239, 233, 216, 0.18);

  /* Shadows (very soft) */
  --shadow-1: 0 1px 2px rgba(26, 24, 18, 0.04);
  --shadow-2: 0 2px 12px rgba(26, 24, 18, 0.06);

  /* Layout sizing */
  --header-h: 52px;
  --footer-h: 52px;
  --stage-pad-x: clamp(2rem, 6vw, 5rem);
  --stage-pad-y: clamp(1.5rem, 4vh, 3.5rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
  --dur-fast: 0.3s;
}

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

html,
body {
  height: 100%;
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11', 'cv02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body {
  position: relative;
}

/* Subtle paper grain — adds warmth without distraction */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.09, 0 0 0 0 0.07, 0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  mix-blend-mode: multiply;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--punch);
  color: var(--canvas);
}

::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   Iconify web component — inherit color, sensible defaults
   ============================================================ */
iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
  color: currentColor;
}
