:root {
  color-scheme: light;
  --ink: #1c211e;
  --muted: #525b55;
  --green: #285846;
  --green-dark: #1c4435;
  --line: #d9ded8;
  --cream: #f4eee8;
  --surface: #f7f8f5;
  --shell: 1280px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5.5rem; }
body { margin: 0; }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-inline-size: 100%; }
figure, h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - clamp(2.5rem, 8vw, 8rem)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: rgb(255 255 255 / 93%);
  border-bottom: 1px solid rgb(24 41 31 / 8%);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.15rem;
}

.wordmark {
  display: inline-block;
  justify-self: start;
  font-size: 1.95rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.085em;
}

.wordmark span { color: var(--green); }

.site-nav {
  display: flex;
  gap: clamp(1.3rem, 4vw, 3.4rem);
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.site-nav a, .header-shop, .back-to-top { padding-block: 0.75rem; }

.site-nav a:hover, .header-shop:hover, .back-to-top:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.header-shop {
  justify-self: end;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 650;
}

.menu-toggle { display: none; }

.hero {
  isolation: isolate;
  overflow: hidden;
  background: var(--cream);
}

.hero-inner {
  --edge: max((100vw - var(--shell)) / 2, clamp(2.5rem, 8vw, 8rem) / 2);
  position: relative;
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  align-items: center;
  min-height: clamp(29rem, 46vw, 42.5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
}

.eyebrow {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.4;
}

.hero .eyebrow { font-size: clamp(0.9rem, 1.5vw, 1.05rem); }

.hero h1 {
  margin-top: 0.6rem;
  font-size: clamp(3.6rem, 7.65vw, 7.75rem);
  font-weight: 680;
  line-height: 0.96;
  letter-spacing: -0.079em;
}

.hero-description {
  max-width: 21ch;
  margin-top: 1.45rem;
  color: var(--muted);
  font-size: clamp(1.13rem, 1.95vw, 1.5rem);
  line-height: 1.36;
  letter-spacing: -0.022em;
}

.hero-price {
  margin-top: 1.15rem;
  font-size: 1.15rem;
  font-weight: 685;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.hero-actions { margin-top: 1.25rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 99rem;
  font-size: 0.9rem;
  font-weight: 660;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-outline { border-color: #9eb3a7; background: transparent; color: var(--green-dark); }
.button-outline:hover { background: #edf2ed; border-color: var(--green); }
.button-secondary { background: transparent; color: var(--green-dark); }
.button-secondary:hover { background: rgb(40 88 70 / 9%); }

.hero-visual {
  position: absolute;
  inset: 0 calc(-1 * var(--edge)) 0 36%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 58%;
  mask-image: linear-gradient(to right, transparent 0%, #000 23%);
}

.hero-visual figcaption {
  position: absolute;
  bottom: 0.9rem;
  right: clamp(1.25rem, 4.5vw, 4rem);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgb(247 244 238 / 88%);
  color: #424a44;
  font-size: 0.75rem;
  line-height: 1.4;
}

.collection { padding-block: clamp(3.75rem, 7.2vw, 7.25rem); }

.section-heading { margin-bottom: clamp(1.65rem, 3.2vw, 2.85rem); }

.section-heading h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.5rem);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.section-heading p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3e6e0;
  border-radius: 1.25rem;
  background: var(--surface);
}

.product-image { aspect-ratio: 1; background: var(--cream); }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem clamp(1rem, 1.7vw, 1.5rem) 1.4rem;
}

.product-copy h3 {
  margin-top: 0.38rem;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 670;
  line-height: 1.12;
  letter-spacing: -0.048em;
}

.product-info {
  margin-block: 0.6rem 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.product-price {
  margin-top: auto;
  font-size: 1.075rem;
  font-weight: 690;
}

.card-actions { margin-top: 0.85rem; gap: 0.3rem; }
.card-actions .button { padding-inline: 0.72rem; }

.site-footer {
  padding-block: 2.25rem 1.5rem;
  border-top: 1px solid #e0e5de;
  background: #eef2ec;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.footer-main p { margin-top: 0.45rem; color: var(--muted); line-height: 1.45; }
.back-to-top { color: var(--green); font-size: 0.9rem; font-weight: 650; white-space: nowrap; }
.footer-note { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

.product-dialog {
  position: fixed;
  width: min(54rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 1.35rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem rgb(22 37 28 / 24%);
}

.product-dialog::backdrop { background: rgb(19 27 22 / 60%); }

.close-product {
  position: sticky;
  z-index: 1;
  top: 0.875rem;
  display: grid;
  float: right;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.875rem 0.875rem -3.625rem 0;
  padding: 0 0 0.18rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.close-product:hover { background: var(--surface); }

.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.dialog-image { width: 100%; height: auto; aspect-ratio: 1; align-self: stretch; object-fit: cover; }
.dialog-copy { padding: 3.25rem 2rem 2.25rem; }

.dialog-copy h2 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.dialog-copy h2 + p { margin-top: 0.9rem; color: var(--muted); line-height: 1.55; }
.dialog-copy .product-price { margin-top: 1rem; }
.dialog-copy .button { margin-top: 1rem; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 4.6rem; }
  .site-header { position: relative; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 3.75rem; }
  .header-shop { display: none; }
  .wordmark { font-size: 1.78rem; }
  .site-nav { gap: 0.875rem; }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 670;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] { background: var(--surface); }

  .site-nav.menu-enhanced {
    position: absolute;
    z-index: 2;
    inset: 100% 0 auto auto;
    display: none;
    min-width: 10rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.65rem 1.8rem rgb(28 33 30 / 12%);
  }

  .site-nav.menu-enhanced.is-open { display: grid; gap: 0; }
  .site-nav.menu-enhanced a { padding-inline: 0.75rem; }

  .hero-inner {
    display: block;
    width: 100%;
    min-height: 0;
  }

  .hero-copy {
    padding: clamp(2.75rem, 9vw, 4.1rem) 1.25rem 0;
    text-align: center;
  }

  .hero h1 { font-size: clamp(3.5rem, 10.9vw, 5.2rem); }
  .hero-description { max-width: 29ch; margin: 1.05rem auto 0; }
  .hero-price { margin-top: 0.95rem; }
  .hero-actions { justify-content: center; margin-top: 0.9rem; }

  .hero-visual { position: relative; inset: auto; height: clamp(15rem, 61vw, 27rem); }
  .hero-visual img { object-position: center 61%; mask-image: linear-gradient(to bottom, transparent, #000 23%); }
  .hero-visual figcaption { bottom: 0.55rem; right: 1rem; }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-copy { padding-inline: 1.2rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image { max-height: 54dvh; object-fit: contain; background: var(--cream); }
  .dialog-copy { padding: 1.3rem 1.25rem 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
