/* Fresh Market — reset, base typography, a11y */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--color-text);
  /* soft warm wash — static gradient, zero runtime cost */
  background:
    radial-gradient(1100px 460px at 85% -80px, color-mix(in srgb, var(--color-primary) 7%, transparent), transparent 70%),
    radial-gradient(900px 420px at -60px 320px, color-mix(in srgb, var(--color-accent) 6%, transparent), transparent 70%),
    var(--color-bg);
  background-attachment: fixed;
  min-height: 100dvh;
}

::selection { background: color-mix(in srgb, var(--color-primary) 25%, transparent); }

h1, h2 { letter-spacing: -.01em; }

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--r-sm); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: var(--s4); top: 0;
  z-index: 200; background: var(--color-primary); color: var(--color-on-primary);
  padding: var(--s2) var(--s4); border-radius: var(--r-md);
  transform: translateY(-110%); /* fully hidden until keyboard focus */
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(var(--s2)); }

.container { width: min(100% - var(--s4) * 2, 1280px); margin-inline: auto; }
/* room for card shadows: ~22px bottom (shadow is ~18px deep), 8px top */
.rail { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--s4) 22px; margin: -8px 0 -22px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex-shrink: 0; }

.sr-title { font-size: var(--fs-lg); margin-bottom: var(--s3); }

/* Icon sizing via sprite */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon--fill { fill: currentColor; stroke: none; }

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