:root {
  --ink: #181817;
  --charcoal: #303331;
  --muted: #6f746f;
  --line: #e1ded5;
  --paper: #f8f5ef;
  --white: #ffffff;
  --mist: #e9f0ea;
  --rose: #d99aa3;
  --rose-dark: #9f5963;
  --gold: #c49a48;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 9px 16px;
  color: var(--white);
  background: var(--charcoal);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(24, 24, 23, 0.1);
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.main-nav,
.header-actions,
.hero-actions,
.section-heading {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: 24px;
}

.main-nav a {
  color: var(--charcoal);
  font-size: 14px;
}

.brand {
  display: grid;
  justify-items: center;
  text-transform: uppercase;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: 0.16em;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

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

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

.cart-button span {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-dark);
  color: var(--white);
  font-size: 11px;
}

.menu-toggle {
  display: none;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 112px);
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 16, 0.72), rgba(16, 18, 16, 0.18) 58%, rgba(16, 18, 16, 0.06)),
    url("https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?auto=format&fit=crop&w=1800&q=86") center / cover;
}

.hero-content {
  position: relative;
  width: min(660px, calc(100% - 40px));
  margin: 0 0 70px 6vw;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd3da;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.8vw, 54px);
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.quick-add,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.benefit-strip div {
  padding: 24px 30px;
  border-right: 1px solid var(--line);
}

.benefit-strip div:last-child {
  border-right: 0;
}

.benefit-strip strong,
.benefit-strip span {
  display: block;
}

.benefit-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 78px 5vw;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-heading .eyebrow {
  flex-basis: 100%;
}

.section-heading a,
.trend-row a {
  color: var(--rose-dark);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

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

.product-card {
  position: relative;
}

.product-image,
.collection-card,
.mood-image {
  background-color: var(--mist);
  background-position: center;
  background-size: cover;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
}

.product-one {
  background-image: url("https://images.unsplash.com/photo-1535632787350-4e68ef0ac584?auto=format&fit=crop&w=900&q=84");
}

.product-two {
  background-image: url("https://images.unsplash.com/photo-1599643478518-a784e5dc4c8f?auto=format&fit=crop&w=900&q=84");
}

.product-three {
  background-image: url("https://images.unsplash.com/photo-1605100804763-247f67b3557e?auto=format&fit=crop&w=900&q=84");
}

.product-four {
  background-image: url("https://images.unsplash.com/photo-1611591437281-460bfbe1220a?auto=format&fit=crop&w=900&q=84");
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.product-card p {
  color: var(--muted);
}

.quick-add {
  position: absolute;
  right: 12px;
  bottom: 78px;
  min-height: 38px;
  padding: 0 16px;
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.mood-edit {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--mist);
}

.mood-image {
  min-height: 620px;
  background-image: url("https://images.unsplash.com/photo-1603974372039-adc49044b6bd?auto=format&fit=crop&w=1400&q=86");
}

.mood-copy {
  display: grid;
  align-content: center;
  padding: 7vw;
}

.mood-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: flex;
  min-height: 410px;
  align-items: end;
  padding: 24px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.collection-card span {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.collection-earrings {
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32)), url("https://images.unsplash.com/photo-1611085583191-a3b181a88401?auto=format&fit=crop&w=900&q=84");
}

.collection-necklaces {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.32)), url("https://images.unsplash.com/photo-1601121141461-9d6647bca1ed?auto=format&fit=crop&w=900&q=84");
}

.collection-rings {
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)), url("https://images.unsplash.com/photo-1589674781759-c21c37956a44?auto=format&fit=crop&w=900&q=84");
}

.trend-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trend-row article {
  padding: 72px 6vw;
}

.trend-row article:first-child {
  border-right: 1px solid var(--line);
}

.trend-row p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.review-band {
  padding: 88px 20px;
  text-align: center;
  background: var(--charcoal);
  color: var(--white);
}

.review-band p {
  max-width: 820px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.review-band span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.7fr;
  gap: 36px;
  padding: 58px 5vw;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer nav {
  display: grid;
  gap: 10px;
  justify-content: end;
}

.newsletter label {
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.newsletter div {
  display: flex;
}

.newsletter input {
  width: min(360px, 100%);
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--paper);
}

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

  .menu-toggle {
    display: inline-grid;
    gap: 5px;
  }

  .main-nav {
    position: fixed;
    top: 111px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  body.menu-open .main-nav {
    display: grid;
  }

  .brand span {
    font-size: 18px;
  }

  .header-actions {
    gap: 4px;
  }

  .benefit-strip,
  .product-grid,
  .collection-grid,
  .mood-edit,
  .trend-row,
  .footer {
    grid-template-columns: 1fr;
  }

  .benefit-strip div,
  .trend-row article:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 56px 20px;
  }

  .quick-add {
    opacity: 1;
    transform: none;
  }

  .mood-image {
    min-height: 420px;
  }

  .mood-copy,
  .trend-row article {
    padding: 48px 20px;
  }

  .footer nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .topbar {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .topbar span:nth-child(n + 2),
  .header-actions .icon-button:nth-child(-n + 2) {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    margin: 0 auto 48px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .collection-card {
    min-height: 320px;
  }

  .newsletter div {
    display: grid;
  }

  .newsletter input {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}
