:root {
  --ink: #050505;
  --muted: #6d6d6d;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --line: #e7e7e7;
  --cream: #fff4df;
  --green: #cfe8b4;
  --blue: #d8e7ff;
  --rose: #ffd5db;
  --orange: #ff7a1a;
  --max: 1440px;
  --header: 60px;
  --bar: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 46px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.42;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

section,
footer {
  scroll-margin-top: calc(var(--header) + var(--bar) + 20px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}

.nav-shell {
  position: relative;
  height: var(--header);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: center;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-left,
.nav-tools {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav-left a {
  font-size: 0.94rem;
  white-space: nowrap;
}

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

.menu-button,
.icon-button,
.wish-button,
.modal-close,
.modal-skip {
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-button {
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 2px 0;
  background: #111;
}

.nav-tools {
  justify-content: flex-end;
}

.search-box {
  width: clamp(150px, 15vw, 210px);
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 0.85rem;
}

.icon-button {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.icon-search,
.icon-globe,
.icon-headset,
.icon-user,
.icon-heart,
.icon-bag {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.icon-search {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon-globe {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-globe::before,
.icon-globe::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-radius: 50%;
}

.icon-globe::after {
  inset: 8px 2px auto;
  height: 1px;
  border: 0;
  background: currentColor;
}

.icon-headset {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.icon-headset::before,
.icon-headset::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 5px;
  height: 9px;
  border: 2px solid currentColor;
  background: #fff;
}

.icon-headset::before {
  left: -3px;
}

.icon-headset::after {
  right: -3px;
}

.icon-user {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 21px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.icon-heart,
.wish-button span {
  width: 17px;
  height: 17px;
  transform: rotate(-45deg);
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-heart::before,
.icon-heart::after,
.wish-button span::before,
.wish-button span::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-heart::before,
.wish-button span::before {
  left: -2px;
  top: -8px;
  border-right: 0;
  border-bottom: 0;
}

.icon-heart::after,
.wish-button span::after {
  right: -8px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

.icon-bag {
  width: 18px;
  height: 16px;
  margin-top: 4px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 5px 5px;
}

.icon-bag::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.bag-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  z-index: 35;
  display: grid;
  padding: 14px 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

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

.promo-bar {
  min-height: var(--bar);
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  min-height: clamp(620px, 70vw, 820px);
  overflow: hidden;
  display: grid;
  place-items: end center;
  background: #f0f0f0;
}

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

.hero img {
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 44%, rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: clamp(250px, 21vw, 300px);
  color: #fff;
  text-align: center;
}

.hero-copy p,
.section-heading p,
.editorial-row p,
.about-section p,
.modal-card p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy a,
.editorial-row a,
.add-button,
.newsletter-form button,
.modal-form button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 24px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-weight: 800;
}

.hero-copy a:hover,
.editorial-row a:hover,
.add-button:hover,
.newsletter-form button:hover,
.modal-form button:hover {
  background: #000;
  color: #fff;
}

.mood-section,
.product-section,
.about-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 72px auto 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.about-section h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.mood-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: block;
  background: var(--soft);
}

.mood-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.mood-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.45));
}

.mood-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  font-weight: 900;
}

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

.editorial-row {
  width: min(var(--max), calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editorial-row article {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--soft);
}

.editorial-row img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.editorial-row article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.42));
}

.editorial-row div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(22px, 4vw, 44px);
  color: #fff;
}

.editorial-row h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.93;
}

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

.product-card {
  display: grid;
  gap: 9px;
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.product-media img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 350ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.wish-button {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.wish-button.is-active {
  background: #000;
  color: #fff;
}

.product-card p,
.product-card span {
  margin: 0;
  font-size: 0.95rem;
}

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

.add-button {
  margin-top: 2px;
  width: 100%;
  min-height: 38px;
  font-size: 0.84rem;
}

.category-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 74px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.category-strip a {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--cream);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 900;
  text-align: center;
}

.category-strip a:nth-child(2) {
  background: var(--green);
}

.category-strip a:nth-child(3) {
  background: var(--blue);
}

.category-strip a:nth-child(4) {
  background: var(--rose);
}

.category-strip a:nth-child(5) {
  background: #ece7ff;
}

.category-strip a:nth-child(6) {
  background: #ffe3ba;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px);
  background: #f6f6f6;
}

.about-section div {
  display: grid;
  gap: 14px;
}

.about-section span {
  max-width: 720px;
  color: var(--muted);
}

.about-section img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 78px auto 0;
  padding: 32px 0 54px;
  display: grid;
  grid-template-columns: 1fr 0.65fr 1fr;
  gap: clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.newsletter-form {
  display: grid;
  align-content: start;
  gap: 10px;
}

.newsletter-form label {
  font-weight: 900;
}

.newsletter-form div,
.modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.newsletter-form input,
.modal-form input {
  min-height: 44px;
  border: 1px solid #000;
  border-right: 0;
  padding: 0 12px;
  outline: 0;
}

.form-message {
  min-height: 22px;
  font-size: 0.84rem;
}

.app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 38;
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 64px;
  z-index: 60;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.42);
}

.signup-modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 13px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.modal-card h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 0.95;
}

.modal-card span {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.modal-skip {
  justify-self: center;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: center;
  }

  .nav-left a {
    display: none;
  }

  .search-box {
    width: 150px;
  }

  .icon-button[aria-label="Customer support"],
  .icon-button[aria-label="Account"] {
    display: none;
  }

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

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

@media (max-width: 760px) {
  :root {
    --header: 56px;
  }

  body {
    padding-bottom: 76px;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
  }

  .brand {
    font-size: 2.1rem;
  }

  .search-box {
    display: none;
  }

  .icon-button[aria-label="Language and region"],
  .icon-button[aria-label="Wishlist"] {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .mood-section,
  .product-section,
  .about-section,
  .editorial-row,
  .category-strip,
  .site-footer {
    width: calc(100% - 22px);
  }

  .mood-grid,
  .product-grid,
  .editorial-row,
  .category-strip,
  .about-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .mood-card {
    min-height: 370px;
  }

  .editorial-row article {
    min-height: 500px;
  }

  .about-section {
    padding: 24px;
  }

  .app-bar {
    min-height: 76px;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px;
  }

  .newsletter-form div,
  .modal-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form input,
  .modal-form input {
    border-right: 1px solid #000;
    border-bottom: 0;
  }
}
