:root {
  --ink: #17211b;
  --muted: #677166;
  --paper: #f7f3eb;
  --surface: #ffffff;
  --line: #ded7cb;
  --moss: #324f3a;
  --clay: #b5653d;
  --sand: #ebe1d1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  background: var(--ink);
  color: #f8f1e7;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 27, 0.12);
  background: rgba(247, 243, 235, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff8ee;
  font-size: 13px;
  font-weight: 900;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
}

.nav a,
.footer a,
.category-strip a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover,
.category-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-button,
.menu-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 10px 0;
  font-weight: 700;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 12px;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 108px));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 17, 13, 0.15), rgba(11, 17, 13, 0.68));
}

.hero picture {
  z-index: -2;
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(28px, 7vw, 72px);
  color: #fffaf1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c188;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 250, 241, 0.9);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: #fffaf1;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 241, 0.78);
  color: #fffaf1;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #efe6d8;
  scrollbar-width: none;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(23, 33, 27, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  font-weight: 700;
}

.collection-intro,
.shop-section,
.fit-guide,
.newsletter,
.footer {
  padding: clamp(48px, 8vw, 86px) clamp(18px, 4vw, 56px);
}

.collection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: end;
}

.collection-intro h2,
.shop-section h2,
.fit-guide h2,
.journal h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.collection-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-auto-rows: 310px;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) clamp(54px, 8vw, 90px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.45s ease;
}

.feature-card:hover img {
  transform: scale(1.04);
}

.feature-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fffaf1;
}

.feature-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  max-width: 480px;
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.02;
}

.shop-section {
  background: #fffaf1;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.filter.active {
  background: var(--ink);
  color: #fffaf1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card.is-hidden {
  display: none;
}

.product-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}

.product-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.045);
}

.product-body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.product-body h3,
.product-body p {
  margin: 0;
}

.product-body h3 {
  font-size: 17px;
}

.product-body p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  flex: 0 0 auto;
  font-weight: 800;
}

.swatches {
  display: flex;
  gap: 7px;
  margin: 14px 0;
}

.swatches span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(23, 33, 27, 0.18);
  border-radius: 50%;
}

.add-button,
.checkout-button,
.email-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: #fffaf1;
  font-weight: 800;
  cursor: pointer;
}

.add-button:hover,
.checkout-button:hover,
.email-form button:hover {
  background: #233d2d;
}

.fit-guide {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: center;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.size-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid rgba(23, 33, 27, 0.2);
  border-radius: 8px;
  background: #fffaf1;
  text-decoration: none;
  font-weight: 900;
}

.journal {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: 0 clamp(18px, 4vw, 56px) clamp(60px, 8vw, 96px);
}

.journal-image {
  overflow: hidden;
  border-radius: 8px;
}

.journal-image img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.journal-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.text-link {
  font-weight: 900;
  text-underline-offset: 5px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--moss);
  color: #fffaf1;
}

.newsletter .eyebrow {
  color: #f1c188;
}

.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.email-form input {
  min-height: 48px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.email-form input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.email-form button {
  padding: 0 20px;
  background: #fffaf1;
  color: var(--ink);
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  background: #171f18;
  color: #fffaf1;
}

.footer p {
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.68);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(14, 18, 15, 0.45);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(100%, 420px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fffaf1;
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.22);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
}

.cart-head button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-button {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .feature-grid,
  .collection-intro,
  .fit-guide,
  .journal,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-auto-rows: 280px;
  }

  .feature-card.large {
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto auto auto;
    min-height: 66px;
  }

  .menu-button {
    display: inline-flex;
    justify-self: center;
  }

  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: #f7f3eb;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 28px 18px 38px;
  }

  .section-head {
    display: block;
  }

  .filters {
    margin-top: 18px;
  }

  .size-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .footer {
    display: block;
  }

  .footer nav {
    margin-top: 26px;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

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

  .feature-grid {
    grid-auto-rows: 240px;
    gap: 12px;
  }
}
