:root {
  --ink: #17110e;
  --muted: #7c716c;
  --paper: #fffdf9;
  --cream: #f8eee5;
  --blush: #ead2c8;
  --taupe: #9b8177;
  --line: rgba(23, 17, 14, 0.13);
  --black: #0f0d0c;
  --max: 1380px;
  --header: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open,
body.cart-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) + 22px);
}

.announcement-bar {
  min-height: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  place-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--black);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 760;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  position: relative;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 3vw, 42px);
}

.brand {
  justify-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

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

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

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

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
}

.search-box {
  width: clamp(170px, 18vw, 270px);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.icon-search,
.icon-globe,
.icon-user,
.icon-heart,
.icon-bag,
.wish-button span {
  position: relative;
  display: block;
}

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

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

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

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

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

.icon-user::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 21px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  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: 19px;
  height: 17px;
  margin-top: 5px;
  border: 2px solid currentColor;
}

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

.cart-count {
  position: absolute;
  right: -2px;
  top: -1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 0.66rem;
}

.collection-nav {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 54px);
  padding: 0 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.collection-nav a:hover,
.footer-links a:hover,
.socials a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  z-index: 42;
  display: grid;
  padding: 10px 20px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, minmax(280px, 39vw));
  gap: 1px;
  background: var(--paper);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--cream);
  color: #fff;
}

.hero-primary {
  grid-row: span 2;
  align-items: center;
}

.hero-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48));
}

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

.hero-card div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(22px, 5vw, 58px);
}

.hero-card p,
.section-heading p,
.bralette-story p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card h1,
.hero-card h2,
.section-heading h2,
.bralette-story h2,
.newsletter h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-card h1 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 7.2rem);
}

.hero-card h2 {
  max-width: 520px;
  font-size: clamp(2rem, 3.7vw, 4.3rem);
}

.hero-card span {
  font-size: 1.05rem;
}

.hero-card a,
.bralette-story a,
.add-button,
.newsletter-form button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--ink);
  font-weight: 820;
  text-transform: uppercase;
}

.hero-card a:hover,
.bralette-story a:hover,
.add-button:hover,
.newsletter-form button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.countdown-strip {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.countdown-strip article {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.countdown-strip strong {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
}

.countdown-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.product-section,
.comfort-section,
.rnd-section {
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(72px, 8vw, 112px) auto 0;
}

.section-heading {
  max-width: 860px;
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.light {
  color: #fff;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 5.4rem);
}

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

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

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

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

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

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

.wish-button.is-active {
  background: var(--black);
  color: #fff;
}

.product-card p,
.product-card span {
  margin: 0;
}

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

.add-button {
  width: 100%;
  min-height: 38px;
  border-color: var(--ink);
}

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

.comfort-grid a {
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  background: var(--cream);
  font-size: 1.25rem;
  font-weight: 760;
}

.comfort-grid a:nth-child(2n) {
  background: var(--blush);
}

.comfort-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.promo-split {
  margin-top: clamp(72px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.promo-split article,
.bralette-story {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--cream);
}

.promo-split img,
.bralette-story img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.promo-split article::after,
.bralette-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.54));
}

.promo-split div,
.bralette-story div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 5vw, 58px);
}

.promo-split h2,
.bralette-story h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 5rem);
  line-height: 0.96;
}

.promo-split p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 860;
}

.promo-split a {
  width: max-content;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
  font-weight: 820;
  text-transform: uppercase;
}

.bralette-story {
  margin-top: 1px;
  min-height: 620px;
}

.rnd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.rnd-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.rnd-grid strong {
  color: var(--taupe);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
  font-weight: 500;
}

.rnd-grid span {
  font-weight: 850;
}

.rnd-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.community-section {
  margin-top: clamp(72px, 8vw, 112px);
  padding: clamp(58px, 8vw, 96px) max(18px, calc((100vw - var(--max)) / 2));
  background: var(--black);
  color: #fff;
}

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

.community-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

.site-footer {
  background: #fff;
}

.newsletter {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.newsletter h2 {
  font-size: clamp(2rem, 4vw, 4.3rem);
}

.newsletter p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.newsletter-form input {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-right: 0;
  padding: 0 14px;
  outline: 0;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--taupe);
  font-weight: 760;
}

.footer-links {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: clamp(24px, 5vw, 80px);
}

.footer-links nav,
.footer-links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h3,
.footer-links p {
  margin: 0;
}

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

.socials {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end;
  background: rgba(0, 0, 0, 0.34);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer > div {
  width: min(390px, 100%);
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  background: #fff;
}

.cart-drawer h2,
.cart-drawer p {
  margin: 0;
}

.drawer-close {
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 36px));
  padding: 12px 16px;
  background: var(--black);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@media (max-width: 1100px) {
  .announcement-bar {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
    height: 64px;
  }

  .brand {
    justify-self: center;
  }

  .collection-nav {
    display: none;
  }

  .search-box,
  .icon-button[aria-label="Currency"],
  .icon-button[aria-label="Account"] {
    display: none;
  }

  .hero-grid,
  .product-grid,
  .promo-split,
  .newsletter,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-primary {
    grid-row: auto;
  }

  .hero-card,
  .promo-split article,
  .bralette-story {
    min-height: 560px;
  }

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

@media (max-width: 680px) {
  :root {
    --header: 98px;
  }

  .nav-shell {
    padding: 0 12px;
  }

  .brand {
    font-size: 2.25rem;
  }

  .hero-card,
  .promo-split article,
  .bralette-story {
    min-height: 510px;
  }

  .hero-card h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .countdown-strip,
  .comfort-grid,
  .rnd-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .countdown-strip article {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .product-section,
  .comfort-section,
  .rnd-section,
  .newsletter,
  .footer-links {
    width: calc(100% - 24px);
  }

  .comfort-grid a {
    min-height: 120px;
  }

  .rnd-grid article {
    min-height: 180px;
  }

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

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