:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --ink: #1f2933;
  --muted: #5b6472;
  --line: #d7d9cf;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 3rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.hero,
.collection,
.policy-page,
.product-detail {
  width: min(1120px, calc(100% - 1.25rem));
  margin: 0 auto;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.65rem;
}

h1,
h2 {
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0;
}

h1 {
  font-size: 2.35rem;
}

h2 {
  font-size: 1.5rem;
}

.hero__copy,
.section-heading p,
.product-description,
.checkout-panel p,
.policy-page p {
  color: var(--muted);
  max-width: 62ch;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.85rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card a,
.product-panel,
.policy-page {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
}

.product-card a {
  box-shadow: var(--shadow);
}

.product-card img,
.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #e8e9e3;
  max-height: 24rem;
}

.product-card__title,
.product-card__price,
.product-card__meta {
  display: block;
  margin-top: 0.5rem;
}

.product-card__title,
.product-card__price,
.product-price {
  font-weight: 800;
}

.product-price {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.product-card__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}

.product-panel h1 {
  font-size: 2rem;
}

.product-description {
  margin: 0 0 1rem;
}

.checkout-panel {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 1rem -1rem -1rem;
  border-top: 1px solid var(--line);
  padding: 1rem;
  background: var(--panel);
}

.checkout-panel button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 1rem;
  background: #8a918b;
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1rem;
}

@media (min-width: 720px) {
  .site-header,
  .site-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 2rem;
  }

  .hero,
  .collection,
  .policy-page,
  .product-detail {
    width: min(1120px, calc(100% - 3rem));
  }

  .hero {
    padding: 3.5rem 0 2rem;
  }

  h1 {
    font-size: 4.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 5rem;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 3rem;
    padding: 2rem 0;
  }

  .product-panel h1 {
    font-size: 3.25rem;
  }

  .checkout-panel {
    bottom: auto;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    position: sticky;
    top: 1rem;
  }
}
