:root {
  --ink: #10100f;
  --ink-soft: #1b1715;
  --paper: #f4ebe5;
  --paper-deep: #e8d7cc;
  --cocoa: #7b3f2d;
  --rose: #c98f7d;
  --muted: #6e5c53;
  --line: rgba(123, 63, 45, 0.18);
  --shadow: 0 20px 50px rgba(38, 24, 19, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.18;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 143, 125, 0.55);
  color: var(--rose);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
  color: #ddc4b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: var(--rose);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: 160ms ease;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  min-height: calc(100vh - 92px);
  background: linear-gradient(90deg, var(--paper) 0 48%, var(--paper-deep) 48% 100%);
}

.hero-copy {
  align-self: center;
  max-width: 560px;
  padding: clamp(44px, 7vw, 100px) clamp(24px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

h1,
h2,
.value-copy h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--cocoa);
  font-size: clamp(56px, 8vw, 118px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 420px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.button,
.add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  transition: 170ms ease;
}

.button:hover,
.add-cart:hover {
  background: var(--cocoa);
  border-color: var(--cocoa);
}

.hero-media,
.about-image,
.value-image,
.product-photo {
  background-image: url("assets/editorial-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-media {
  min-height: 620px;
  background-position: center top;
}

.collection-section,
.values-section {
  padding: clamp(54px, 8vw, 86px) clamp(16px, 4vw, 42px);
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.about-copy h2 {
  margin: 0 0 18px;
  color: var(--cocoa);
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: 3px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.section-heading span,
.about-copy span {
  display: inline-block;
  margin-top: 16px;
  color: #d7a18f;
  font-size: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 54px);
  margin-bottom: 34px;
}

.filter {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 2px;
  text-transform: uppercase;
}

.filter.active {
  border-color: var(--cocoa);
  color: var(--cocoa);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 1220px;
  margin: 0 auto;
}

.product-card {
  position: relative;
}

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

.product-photo {
  aspect-ratio: 0.82;
  background-image: url("assets/catalog-sheet.png");
  background-size: 300% 300%;
  box-shadow: var(--shadow);
}

.photo-1 { background-position: 0 0; }
.photo-2 { background-position: 50% 0; }
.photo-3 { background-position: 100% 0; }
.photo-4 { background-position: 0 50%; }
.photo-5 { background-position: 50% 50%; }
.photo-6 { background-position: 100% 50%; }
.photo-7 { background-position: 0 100%; }
.photo-8 { background-position: 50% 100%; }
.photo-9 { background-position: 100% 100%; }

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 0 10px;
}

.product-info h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.heart {
  border: 0;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.heart.active {
  color: #9e322a;
}

.add-cart {
  width: 100%;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(380px, 1.22fr);
  min-height: 720px;
  background: var(--paper);
}

.about-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 96px);
}

.about-copy h1 {
  margin: 0 0 18px;
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.signature {
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
}

.about-image {
  min-height: 620px;
  background-position: center top;
}

.promise-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 58px clamp(22px, 8vw, 150px);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.promise-band div {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.promise-band svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--rose);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.promise-band h3 {
  margin: 0;
  color: #dcb4a7;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.promise-band p {
  max-width: 240px;
  margin: 0;
  color: #e8d7cc;
  font-size: 13px;
}

.values-section {
  background: #f7eee8;
}

.values-list {
  display: grid;
  gap: 34px;
  max-width: 1120px;
  margin: 0 auto;
}

.value-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.05fr);
  min-height: 250px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.value-image {
  min-height: 250px;
}

.value-image.fabric {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(135deg, rgba(171, 116, 91, 0.2), rgba(245, 226, 212, 0.65)),
    url("assets/editorial-hero.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) blur(0.2px);
}

.value-image.model {
  background-image: url("assets/editorial-hero.png");
  background-position: center top;
}

.value-image.wardrobe {
  background-image: url("assets/catalog-sheet.png");
  background-position: 50% 10%;
}

.value-image.sewing {
  background:
    linear-gradient(rgba(126, 70, 49, 0.08), rgba(126, 70, 49, 0.08)),
    url("assets/catalog-sheet.png");
  background-position: 90% 80%;
}

.value-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
  color: var(--paper);
}

.value-copy h3 {
  margin: 0 0 18px;
  color: #dcb4a7;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 1.7px;
}

.value-copy p {
  max-width: 440px;
  margin: 0;
  color: #f1dfd5;
  font-size: 16px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, 1fr));
  gap: 34px;
  padding: 44px clamp(22px, 5vw, 72px) 26px;
  background: var(--ink);
  color: var(--paper);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #dcb4a7;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #f0ded5;
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 235, 229, 0.1);
  color: #9e8478;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-toggle span {
    width: 21px;
    height: 1px;
    background: currentColor;
  }

  .main-nav {
    position: fixed;
    top: 92px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 16px 24px 24px;
    background: var(--ink);
    border-top: 1px solid rgba(244, 235, 229, 0.09);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-actions {
    justify-self: end;
  }

  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .about-image {
    min-height: 520px;
    order: -1;
  }

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

  .promise-band {
    grid-template-columns: 1fr;
  }

  .value-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 82px;
    padding: 12px 14px;
  }

  .brand {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }

  .main-nav {
    top: 82px;
  }

  .header-actions {
    gap: 0;
  }

  .icon-button {
    width: 31px;
    height: 31px;
  }

  .hero-copy,
  .about-copy {
    padding: 42px 18px;
  }

  h1 {
    font-size: 54px;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 40px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-media,
  .about-image {
    min-height: 430px;
  }

  .collection-section,
  .values-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .filters {
    justify-content: flex-start;
    gap: 12px 22px;
    overflow-x: auto;
  }

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

  .product-photo {
    aspect-ratio: 0.88;
  }

  .value-card {
    min-height: 0;
  }

  .value-image {
    min-height: 210px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
