:root {
  --white: #ffffff;
  --purple: #c0b5d6;
  --purple-light: #eeeaf4;
  --purple-dark: #675b7e;
  --grey: #afafb1;
  --ink: #19181b;
  --soft-ink: #5d5a61;
  --line: rgba(25, 24, 27, 0.18);
  --page-padding: clamp(1.25rem, 5vw, 5rem);
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Century Gothic", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem var(--page-padding);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.header-link {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: calc(100svh - 5.1rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 82%, rgba(192, 181, 214, 0.34) 0 1px, transparent 2px),
    linear-gradient(145deg, var(--white) 0 58%, var(--purple-light) 58% 100%);
  background-size: 22px 22px, auto;
}

.hero-copy {
  z-index: 2;
  align-self: center;
  padding: clamp(4.5rem, 11vw, 8rem) var(--page-padding) 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 14vw, 7.75rem);
}

h1 em {
  color: var(--purple-dark);
  font-weight: 400;
}

.hero-intro {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 15rem;
  margin-top: 2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--purple);
  color: var(--ink);
}

.hero-gallery {
  position: relative;
  min-height: 30rem;
  margin-top: 1rem;
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 0.55rem solid var(--white);
  box-shadow: 0 1.2rem 3rem rgba(51, 43, 61, 0.17);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  top: 0;
  right: -8%;
  width: min(78vw, 28rem);
  aspect-ratio: 1;
  transform: rotate(3deg);
}

.hero-photo-small {
  bottom: 1.5rem;
  left: var(--page-padding);
  width: min(42vw, 13rem);
  aspect-ratio: 1;
  transform: rotate(-6deg);
}

.gallery-note {
  position: absolute;
  right: 4%;
  bottom: 1.25rem;
  max-width: 7rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.15;
  transform: rotate(5deg);
}

.shop-section {
  display: grid;
  gap: 3rem;
  padding: clamp(5rem, 10vw, 9rem) var(--page-padding);
  color: var(--white);
  background: var(--ink);
}

.section-heading h2,
.collection h2,
.contact h2 {
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.section-heading .eyebrow {
  color: var(--purple);
}

.section-heading > p:last-child {
  max-width: 30rem;
  margin: 1.75rem 0 0;
  color: var(--grey);
}

.shop-links {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.shop-link {
  display: grid;
  grid-template-columns: 1.7rem 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.shop-link:hover,
.shop-link:focus-visible {
  padding-right: 0.8rem;
  padding-left: 0.8rem;
  color: var(--purple);
}

.shop-number {
  color: var(--grey);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.shop-icon {
  display: flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
}

.shop-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, transform 180ms ease;
}

.shop-icon-invert img {
  filter: invert(1);
}

.shop-icon-amazon img {
  filter: invert(1) contrast(200%);
}

.shop-link:hover .shop-icon img,
.shop-link:focus-visible .shop-icon img {
  opacity: 0.78;
  transform: scale(1.06);
}

.shop-name {
  font-family: var(--display);
  font-size: clamp(1.65rem, 6vw, 3.6rem);
  line-height: 1;
}

.shop-arrow {
  font-size: 1.5rem;
}

.collection {
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) var(--page-padding);
  background: var(--white);
}

.collection-heading {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible,
.carousel-controls button[data-paused="true"] {
  color: var(--white);
  background: var(--ink);
}

.carousel-controls .carousel-toggle {
  min-width: 5.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-viewport {
  margin-right: calc(var(--page-padding) * -1);
  margin-left: calc(var(--page-padding) * -1);
  padding: 0.5rem var(--page-padding) 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--purple) var(--purple-light);
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.product-viewport.is-auto-scrolling {
  scroll-snap-type: none;
}

.product-viewport::-webkit-scrollbar {
  height: 0.55rem;
}

.product-viewport::-webkit-scrollbar-track {
  margin-inline: var(--page-padding);
  background: var(--purple-light);
}

.product-viewport::-webkit-scrollbar-thumb {
  background: var(--purple);
}

.product-track,
.product-set {
  display: flex;
  width: max-content;
  align-items: flex-start;
}

.product-set {
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding-right: clamp(1rem, 2.5vw, 2.25rem);
}

.product {
  position: relative;
  flex: 0 0 min(74vw, 20rem);
  width: min(74vw, 20rem);
  margin: 0 0 3.5rem;
  overflow: hidden;
  background: var(--purple-light);
  scroll-snap-align: start;
}

.product:nth-child(3n + 2) {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.product:nth-child(3n + 3) {
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
}

.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product:hover img {
  transform: scale(1.025);
}

.product figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.contact {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) var(--page-padding);
  background: var(--purple-light);
}

.contact::before,
.contact::after {
  position: absolute;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(103, 91, 126, 0.25);
  border-radius: 50%;
  content: "";
}

.contact::before {
  top: -7rem;
  right: -4rem;
}

.contact::after {
  right: 2rem;
  bottom: -10rem;
}

.contact-logo {
  position: relative;
  z-index: 1;
  width: min(58vw, 17rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: contain;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.5rem 0;
  color: var(--soft-ink);
}

.contact-email {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.socials {
  margin-top: 2.25rem;
}

.socials-title {
  margin: 0 0 0.8rem;
  color: var(--purple-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--purple);
  transform: translateY(-2px);
}

.social-link img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--page-padding);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--purple-dark);
  outline-offset: 4px;
}

@media (min-width: 48rem) {
  .site-header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .brand img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .header-link {
    font-size: 0.8rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(25rem, 0.75fr);
    align-items: center;
    min-height: calc(100svh - 6.1rem);
    background: linear-gradient(105deg, var(--white) 0 62%, var(--purple-light) 62% 100%);
  }

  .hero-copy {
    padding-top: 5rem;
    padding-right: 1rem;
    padding-bottom: 5rem;
  }

  .hero-gallery {
    align-self: stretch;
    min-height: 43rem;
    margin: 0;
  }

  .hero-photo-main {
    top: 50%;
    right: -8%;
    width: min(36vw, 34rem);
    transform: translateY(-54%) rotate(3deg);
  }

  .hero-photo-small {
    bottom: 6%;
    left: -6%;
    width: min(19vw, 14rem);
  }

  .gallery-note {
    right: 5%;
    bottom: 7%;
  }

  .shop-section {
    grid-template-columns: minmax(17rem, 0.72fr) minmax(23rem, 1fr);
    column-gap: clamp(3rem, 9vw, 9rem);
  }

  .collection-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .product {
    flex-basis: clamp(18rem, 27vw, 24rem);
    width: clamp(18rem, 27vw, 24rem);
  }

  .contact {
    grid-template-columns: minmax(14rem, 0.55fr) minmax(24rem, 1fr);
    gap: clamp(3rem, 10vw, 10rem);
  }
}

@media (min-width: 75rem) {
  .hero-photo-small {
    left: -12%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .product-viewport {
    scroll-behavior: auto;
  }
}
