@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

@property --hero-color {
  syntax: '<color>';
  inherits: false;
  initial-value: #e63836;
}

:root {
  --red: #e63836;
  --orange: #f17b26;
  --yellow: #f1ca35;
  --lemon: #d6d73b;
  --green: #63a86e;
  --emerald: #298b65;
  --mint: #9ed5a7;
  --blue: #3982d5;
  --azure: #3796bb;
  --violetblue: #626ac8;
  --purple: #a46bbc;
  --orchid: #d78abe;
  --rainbow: #e68b8e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f5f0e9;
  color: #1c292a;
  font-family: 'DM Sans', sans-serif;
}

header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#f5f0e9e8, #f5f0e900);
  mix-blend-mode: multiply;
  font: 10px 'DM Mono';
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand {
  color: inherit;
  font: 600 14px 'Playfair Display';
  text-decoration: none;
  text-transform: none;
}

.jump { color: inherit; text-decoration: none; }

.hero {
  --hero-color: #ffe26f;
  min-height: 100svh;
  padding: 30vh 8vw 9vh;
  background:
    radial-gradient(circle at 78% 42%, color-mix(in srgb, var(--hero-color) 68%, transparent), transparent 31%),
    radial-gradient(circle at 69% 32%, color-mix(in srgb, var(--hero-color) 28%, transparent), transparent 47%),
    linear-gradient(135deg, #f8f5ee, #e4eee4);
  animation: hero-color-cycle 12s ease-in-out infinite;
}

@keyframes hero-color-cycle {
  0%, 100% { --hero-color: #e63836; }
  16% { --hero-color: #ff8833; }
  32% { --hero-color: #ffd633; }
  48% { --hero-color: #31c66d; }
  64% { --hero-color: #318bd9; }
  82% { --hero-color: #9b5dcc; }
}

.eyebrow,
.number {
  font: 10px 'DM Mono';
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 31px;
  font: clamp(50px, 9vw, 120px)/.83 'Playfair Display';
  letter-spacing: -.07em;
}

.hero h1 em {
  color: var(--hero-color);
  font-weight: 500;
  transition: color .4s ease;
}

.intro {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.5;
}

.colorline {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: clamp(18px, 2.4vw, 42px);
  margin: 0;
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #f7f3ecb8;
  box-shadow: 0 8px 32px #2237331a;
  backdrop-filter: blur(12px);
}

.colorline button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s ease, outline-color .2s ease;
}

.colorline button:hover { transform: scale(1.35); }

.colorline button.on {
  transform: scale(1.65);
  outline: 1px solid #1c292a;
  outline-offset: 3px;
}

.colorline button:focus-visible {
  outline: 2px solid #1c292a;
  outline-offset: 4px;
}

#collection {
  background:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(245, 240, 233, 0.08) 42%,
      rgba(245, 240, 233, 0.82) 72%,
      #f5f0e9 88%,
      #f5f0e9 100%
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--red) 28%, #f5f0e9) 0%,
      color-mix(in srgb, var(--orange) 28%, #f5f0e9) 8.33%,
      color-mix(in srgb, var(--yellow) 28%, #f5f0e9) 16.66%,
      color-mix(in srgb, var(--lemon) 28%, #f5f0e9) 25%,
      color-mix(in srgb, var(--green) 28%, #f5f0e9) 33.33%,
      color-mix(in srgb, var(--emerald) 28%, #f5f0e9) 41.66%,
      color-mix(in srgb, var(--mint) 28%, #f5f0e9) 50%,
      color-mix(in srgb, var(--blue) 28%, #f5f0e9) 58.33%,
      color-mix(in srgb, var(--azure) 28%, #f5f0e9) 66.66%,
      color-mix(in srgb, var(--violetblue) 28%, #f5f0e9) 75%,
      color-mix(in srgb, var(--purple) 28%, #f5f0e9) 83.33%,
      color-mix(in srgb, var(--orchid) 28%, #f5f0e9) 91.66%,
      color-mix(in srgb, var(--rainbow) 28%, #f5f0e9) 100%
    );
}

.slug {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: hidden;
  background: transparent;
}

.wash {
  display: none;
}

.photo {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(48vw, 650px);
  height: min(64vh, 650px);
  margin: 0;
  background: transparent;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter:
    brightness(1.05)
    saturate(1.18)
    contrast(1.03)
    drop-shadow(0 24px 34px color-mix(in srgb, transparent));
}

.photo figcaption {
  position: absolute;
  bottom: -29px;
  left: 0;
  font: 9px 'DM Mono';
  letter-spacing: .1em;
  text-transform: uppercase;
}

.copy {
  z-index: 2;
  align-self: center;
  padding: 8vw 10% 8vw 2vw;
}

.number {
  margin: 0 0 24px;
  color: color-mix(in srgb, #202a2b);
}

.copy h2 {
  margin: 0;
  font: clamp(40px, 5.8vw, 88px)/.9 'Playfair Display';
  letter-spacing: -.06em;
}

.latin {
  margin: 18px 0 42px;
  font: italic 18px 'Playfair Display';
}

.copy ul {
  max-width: 390px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #1d2b2c;
  list-style: none;
  font-size: 17px;
  line-height: 1.5;
}

.copy li:first-child {
  margin-bottom: 11px;
  font: 18px 'DM Mono';
  letter-spacing: .1em;
}

footer {
  min-height: 65svh;
  padding: 22vh 8vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, #ed93a9, #f7e66b, #79bea6, #8b8fc8);
}

footer p {
  max-width: 750px;
  margin: 0 0 40px;
  font: clamp(50px, 8vw, 112px)/.9 'Playfair Display';
  letter-spacing: -.06em;
}

footer a {
  color: inherit;
  font: 11px 'DM Mono';
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

@media (max-width: 720px) {
  header { padding: 0 7vw; }
  .counter { display: none; }
  .hero { padding: 28vh 11vw 8vh 8vw; }
  .colorline {
    right: 12px;
    gap: 8px;
    padding: 11px 8px;
  }
  .colorline button { width: 9px; height: 9px; }
  .slug {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    padding: 13vh 11vw 12vh 8vw;
  }
  .photo {
    width: 80vw;
    height: 50vh;
    flex-shrink: 0;
  }
  .copy { padding: 0; }
  .copy h2 { font-size: clamp(48px, 14vw, 76px); }
  .wash {
    top: 15vh;
    left: -65vw;
    width: 130vw;
    height: 130vw;
  }
  .photo figcaption { bottom: -23px; }
}
