/* ==========================================================================
   2) BASE — reset, typography, accessibility helpers
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Page stays invisible until site.js has mounted the header/footer (set in boot.js, 2s failsafe) —
   this is what stops the "blink" while the layout is being built. */
html:not(.s-ready) body { visibility: hidden; }

img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }

/* icons (SVG sprite: /assets/icons.svg) */
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ic-lg { width: 24px; height: 24px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* keep long single-line names tidy everywhere (checkout page opts out with .full-name) */
.nowrap-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

@media (min-width: 900px) { h1 { font-size: 32px; } h2 { font-size: 24px; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
