:root {
  color-scheme: light;
  --ink: #142038;
  --muted: #46546b;
  --blue: #204ed0;
  --mist: #eaf1f8;
  --line: #d4deea;
  --shell: 80rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  left: var(--gutter);
  padding: 0.5rem 1rem;
  background: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand, .footer-brand { display: inline-block; width: min(100%, 9.5rem); }
.brand img, .footer-brand img { width: 100%; height: auto; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover { color: var(--blue); }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--mist); }
.hero-inner { display: grid; align-items: center; min-height: clamp(22rem, 33vw, 32rem); }
.hero-copy { width: min(44%, 34rem); padding-block: clamp(2.75rem, 5vw, 5.75rem); }
.hero h1, .collection h2 { margin: 0; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 { font-size: clamp(2.9rem, 5.45vw, 5.5rem); line-height: 1.04; }
.hero p { max-width: 26rem; margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.5; }
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.375rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.hero-action:hover { background: #173ea9; }
.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 59%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.collection { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.75rem); }
.collection h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(0.5rem, 1.2vw, 1rem); margin-bottom: 1.5rem; }
.filters button {
  min-height: 2.75rem;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
}
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--blue); }
.filters button[aria-pressed="true"] { border-color: currentColor; }
.search { display: flex; align-items: center; gap: 0.625rem; width: min(100%, 20rem); padding-inline: 0.75rem; border: 1px solid #a9b8cd; border-radius: 0.375rem; background: #f7f9fc; color: var(--muted); }
.search svg { flex: none; width: 1.25rem; height: 1.25rem; }
.search input { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.25rem 0; border: 0; background: transparent; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.empty-state { padding: 1.5rem; border-radius: 0.5rem; background: var(--mist); color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.75rem) clamp(0.75rem, 1.7vw, 1.5rem); }
.card-link { display: flex; flex-direction: column; height: 100%; border-radius: 0.5rem; text-decoration: none; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 0.5rem; background: #f1f4f7; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 0.75rem; }
.product-category { margin-bottom: 0.25rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.product-body h3 { margin: 0 0 0.375rem; font-size: clamp(0.96rem, 1.45vw, 1.2rem); line-height: 1.28; }
.product-body p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; margin-top: auto; color: var(--muted); font-size: 0.9rem; }
.price-now { color: var(--ink); font-weight: 750; }
.price-was { font-size: 0.8rem; }
.card-action { margin-top: 0.625rem; color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.card-action::after { content: " ↗"; }
.card-link:hover h3, .card-link:focus-visible h3 { text-decoration: underline; text-underline-offset: 0.15em; }

.promise { padding-block: clamp(2.25rem, 3.5vw, 3.25rem); background: var(--mist); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.promise-item { display: grid; grid-template-rows: 3.75rem auto 1fr; justify-items: center; }
.promise-item img { width: 3.75rem; height: 3.75rem; object-fit: contain; }
.promise-item h3 { min-height: 1.3em; max-width: 100%; margin: 0.875rem 0 0.625rem; font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; }
.promise-item p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.site-footer { padding-block: clamp(2rem, 4vw, 3.5rem) 1.25rem; background: var(--ink); color: #e5edf8; font-size: 0.875rem; line-height: 1.55; }
.footer-grid { display: grid; grid-template-columns: 1fr 0.75fr 1.2fr; gap: 1.5rem; }
.footer-grid h2 { margin: 0 0 0.625rem; color: #fff; font-size: 1rem; }
.footer-grid p { margin: 0.625rem 0 0; }
.footer-grid nav a { display: block; width: fit-content; margin-bottom: 0.25rem; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-brand { width: 8rem; }
.footer-brand img { filter: brightness(0) invert(1); }
.site-footer address { font-style: normal; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-note, .copyright { color: #c0ccdd; font-size: 0.8rem; }
.copyright { margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px solid #516079; }

@media (max-width: 62rem) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promise-item h3 { min-height: 2.6em; }
}

@media (max-width: 43rem) {
  .header-inner { min-height: 3.75rem; }
  .brand { width: clamp(5.25rem, 24vw, 7.5rem); }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding-block: 2.375rem; }
  .hero h1 { font-size: clamp(2.65rem, 8vw, 3.75rem); }
  .hero p { margin-block: 0.875rem 1.25rem; }
  .hero-image { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; clip-path: none; }
  .search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .promise-item { grid-template-columns: 3.25rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; justify-items: start; text-align: left; }
  .promise-item h3 { min-height: 0; max-width: none; margin: 0 0 0.5rem; font-size: 1.125rem; }
  .promise-item img { grid-row: 1 / 3; width: 3.25rem; height: 3.25rem; }
  .promise-item p { grid-column: 2; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
