/* Storefront foundation.
   Structural primitives live here; reusable UI is in components.css and
   homepage composition in home.css. Theme files only override semantic tokens. */

:root {
  --site-bg: #0c0f12;
  --site-surface: #14181d;
  --site-surface-raised: #1a1f25;
  --site-surface-soft: #20262d;
  --site-surface-light: #f3f5f1;
  --site-text: #f3f5f1;
  --site-text-muted: #9aa2ac;
  --site-text-subtle: #727b86;
  --site-text-inverse: #11140f;
  --site-border: #293039;
  --site-border-strong: #38414b;
  --site-accent: #8bc850;
  --site-accent-hover: #9ed468;
  --site-accent-contrast: #10130a;
  --site-danger: #ee6167;

  --site-radius-sm: 8px;
  --site-radius-md: 12px;
  --site-radius-lg: 18px;
  --site-radius-xl: 24px;

  --site-space-1: 4px;
  --site-space-2: 8px;
  --site-space-3: 12px;
  --site-space-4: 16px;
  --site-space-5: 20px;
  --site-space-6: 24px;
  --site-space-7: 32px;
  --site-space-8: 40px;
  --site-space-9: 56px;
  --site-space-10: 72px;

  --site-container: 1440px;
  --site-gutter: 32px;
  --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --site-focus: 0 0 0 3px rgba(139, 200, 80, .22);
  --site-ease: cubic-bezier(.2, 0, 0, 1);
}

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

/* Storefront scrollbars use the same dark surface hierarchy as the rest of
   the site. Keep them visible for page/overflow discoverability; individual
   overlays may opt out visually while retaining scroll behavior. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--site-border-strong) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--site-border-strong);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--site-text-subtle);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--site-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: var(--site-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

main [id],
.store-footer[id] {
  scroll-margin-top: 110px;
}

::selection {
  background: var(--site-accent);
  color: var(--site-accent-contrast);
}

:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

.site-container {
  width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-container));
  margin-inline: auto;
}

.store-section {
  padding-block: var(--site-space-10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.eyebrow--dark {
  color: #4d6d2f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 180px;
  padding: var(--site-space-7);
  border: 1px dashed var(--site-border-strong);
  border-radius: var(--site-radius-lg);
  color: var(--site-text-muted);
  text-align: center;
}

.store-empty strong {
  color: var(--site-text);
  font-size: 17px;
}

@media (max-width: 900px) {
  :root {
    --site-gutter: 22px;
    --site-space-10: 56px;
  }
}

@media (max-width: 620px) {
  :root {
    --site-gutter: 16px;
    --site-space-9: 40px;
    --site-space-10: 48px;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
