/* Wiley Banting — modern gear for diabetes care
   Visual language taken from the Etsy shop banner: soft grey ground,
   thin wide-tracked geometric caps, a dotted leader line, asterisk mark. */

:root {
  --ground: #e6e6e5;
  --banner-grey: #e4e4e4; /* sampled from the Etsy banner photo */
  --paper: #f3f3f2;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #4a4a48;
  --ink-3: #7c7c79;
  --rule: #c9c9c6;
  --wide: 0.32em;
  --mid: 0.18em;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.6; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.wordmark {
  text-decoration: none; text-transform: uppercase;
  letter-spacing: var(--wide); font-weight: 400; font-size: 0.82rem; white-space: nowrap;
}
.mark { display: inline-block; margin-right: 0.35em; letter-spacing: 0; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.site-header nav a {
  text-decoration: none; text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: var(--mid); color: var(--ink-2);
}
.site-header nav a:hover { color: var(--ink); }
.site-header .nav-shop { color: var(--ink); font-weight: 500; }

/* ---------- Hero (mirrors the banner) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(40px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  background: var(--ground);
  box-shadow: 0 0 0 100vmax var(--ground);
  clip-path: inset(0 -100vmax);
}
h1 {
  margin: 0;
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  letter-spacing: var(--wide); line-height: 1.05;
}
.tagline {
  margin: 1.1rem 0 0;
  text-transform: uppercase; letter-spacing: var(--mid);
  font-size: clamp(0.78rem, 1.4vw, 0.98rem); font-weight: 500; color: var(--ink-2);
}
.leader { align-self: center; height: 1px; position: relative; }
.leader span {
  position: absolute; inset: 0;
  border-top: 2px dotted var(--ink-3);
}
.leader span::after {
  content: ""; position: absolute; right: -5px; top: -6px;
  width: 7px; height: 7px; border: 1.5px solid var(--ink-2); border-radius: 50%;
  background: var(--ground);
}
.hero-figure { margin: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero-figure img {
  width: auto; height: clamp(260px, 34vw, 420px); margin-left: 14px;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.18));
}
.annotation {
  margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.64rem; line-height: 1.35; font-weight: 500; color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  margin-top: 2.2rem; padding: 0.95em 1.6em;
  border: 1px solid var(--ink); border-radius: 0;
  text-decoration: none; text-transform: uppercase;
  letter-spacing: var(--mid); font-size: 0.78rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover, .btn-dark:focus-visible { background: transparent; color: var(--ink); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter); }
h2 {
  margin: 0; font-weight: 300; text-transform: uppercase;
  letter-spacing: var(--mid); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 38ch; }

/* ---------- Product grid ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.card a {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; background: var(--card);
  border: 1px solid #e2e2df;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card a:hover, .card a:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(0,0,0,0.35); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 0.45em 0.8em; background: var(--ink); color: var(--paper);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.62rem; font-weight: 500;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  margin: 0 0 6px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.86rem;
}
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.card .meta {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between;
  border-top: 1px dotted var(--rule); margin-top: 18px;
  color: var(--ink); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.card .shop { color: var(--ink-3); }
.card a:hover .shop { color: var(--ink); }

.colors {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 36px 0 0; font-size: 0.78rem; color: var(--ink-3);
}
.colors .label { text-transform: uppercase; letter-spacing: var(--mid); color: var(--ink-2); margin-right: 4px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.colors .note { margin-left: 6px; }

/* ---------- Band ---------- */
/* Mirrors the Etsy banner: type left, flat lay right */
.band { background: var(--banner-grey); }
.band-inner {
  display: grid;
  --band-gap: clamp(40px, 7vw, 110px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: var(--band-gap);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 80px) var(--gutter);
}
.band h2 {
  font-weight: 400; letter-spacing: var(--wide); line-height: 1.1;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
}
.band p {
  margin: 1.2rem 0 0; max-width: 46ch;
  text-transform: uppercase; letter-spacing: var(--mid); font-size: 0.8rem; line-height: 1.9;
  font-weight: 500; color: var(--ink);
}
.band-img { display: block; width: 100%; height: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 80px); }
.about-grid p { margin: 0 0 1.1em; font-size: 1.08rem; color: var(--ink-2); font-weight: 300; }
.about-grid strong { color: var(--ink); font-weight: 500; }
.sig { text-transform: uppercase; letter-spacing: var(--mid); font-size: 0.78rem !important; font-weight: 500 !important; color: var(--ink) !important; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(48px, 7vw, 80px) 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stats div { padding: 28px 8px; text-align: center; }
.stats div + div { border-left: 1px dotted var(--rule); }
.stats dt { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; letter-spacing: 0.08em; }
.stats dd { margin: 4px 0 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--ink-3); }

.reviews { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.reviews-label { margin: 0 0 28px; text-transform: uppercase; letter-spacing: var(--mid); font-size: 0.72rem; font-weight: 500; }
.reviews-label span { letter-spacing: 0.1em; margin-right: 0.6em; }
.reviews ul {
  list-style: none; margin: 0; padding: 0; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px;
}
.reviews li { background: var(--card); border: 1px solid #e2e2df; padding: 24px 24px 20px; display: flex; flex-direction: column; }
.reviews blockquote { margin: 0 0 16px; font-size: 1.1rem; font-weight: 300; line-height: 1.45; }
.reviews cite {
  margin-top: auto; padding-top: 14px; border-top: 1px dotted var(--rule);
  font-style: normal; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--ink-3);
}
.reviews-more { display: inline-block; margin-top: 24px; text-transform: uppercase; letter-spacing: var(--mid); font-size: 0.72rem; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.reviews-more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Closing CTA ---------- */
.cta { text-align: center; padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.cta .btn { margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter); background: var(--ink); color: #d9d9d6;
}
.site-footer .wordmark { color: #fff; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; text-transform: uppercase; letter-spacing: var(--mid); font-size: 0.72rem; }
.site-footer nav a:hover { color: #fff; }
.fine { margin: 0; width: 100%; font-size: 0.72rem; color: #8f8f8b; letter-spacing: 0.06em; }

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

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .leader { display: none; }
  .hero-figure { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; gap: 32px; padding-right: var(--gutter); }
  .band-figure { max-width: 480px; }
}
@media (max-width: 520px) {
  .site-header nav a:not(.nav-shop) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px dotted var(--rule); }
  h1 { letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card a, .card-img img { transition: none; }
}
