/* ------------------------------------------------------------------
   Ace Hardware microsite — foundations
   Every value traced to Figma file SwdCWtI2EAXUadF8AyK4xr,
   page "Ace Microsite", Homepage frame 175:2489 (1512 x 3563).
   ------------------------------------------------------------------ */

/* Manrope and Inter are both SIL OFL; self-hosted so the page makes no
   third-party requests. Both ship from Google Fonts as variable fonts. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* colours, exactly as Figma reports them */
  --page:        #ECF1F5;
  --white:       #FFFFFF;
  --off-white:   #FDFDFD;
  --ink:         #121519;
  --body:        #353638;
  --brand:       #4594D1;
  --brand-deep:  #003C82;
  --proto:       #5C6168;
  --muted:       #888B8D;
  --orange:      #EC8627;
  --menu-shadow: rgba(205, 210, 220, 0.5);

  /* the design canvas */
  --canvas: 1512px;
  --gutter: 30px;

  /* type ramp */
  --h1:      52px;
  --h1-lh:   59.8px;
  --h2:      42px;
  --h2-lh:   50.4px;
  --h3:      24px;
  --h3-lh:   28.8px;
  --eyebrow: 17px;
  --tile:    20px;
  --copy:    14px;
  --copy-lh: 21px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

/* Visually hidden, still announced. */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link so a keyboard user is not trapped in the header. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* form controls do not inherit the family from the UA stylesheet; without
   this every button label falls back to Arial */
button, input, select, textarea { font: inherit; }

/* ---------- shared section heading: eyebrow + h2, Figma "Frame 2835" ---------- */
.shead {
  width: 768px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;            /* Figma itemSpacing */
  text-align: center;
}
.shead__eyebrow {
  font-weight: 800;
  font-size: var(--eyebrow);
  line-height: 20.4px;  /* 120% */
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--brand);
}
.shead__title {
  align-self: stretch;      /* Figma: the h2 text node fills the 768px block */
  font-weight: 700;
  font-size: var(--h2);
  line-height: var(--h2-lh);
  color: var(--ink);
}

@media (max-width: 1100px) {
  :root { --h1: 40px; --h1-lh: 48px; --h2: 34px; --h2-lh: 41px; --h3: 21px; --h3-lh: 26px; }
}
@media (max-width: 720px) {
  :root { --h1: 30px; --h1-lh: 36px; --h2: 26px; --h2-lh: 32px; --h3: 19px; --h3-lh: 24px;
          --eyebrow: 15px; --gutter: 18px; }
  .shead { gap: 16px; }
  .shead__eyebrow { line-height: 18px; letter-spacing: 1.5px; }
}
