:root {
  --background: #f3f3f0;
  --chrome: #ebebe6;
  --card: #ffffff;
  --separator: #d6d6cf;
  --edge: rgba(28, 28, 30, 0.1);
  --ink: #1c1c1e;
  --ink-soft: #6b6b73;
  --muted: #8e8e93;
  --on-accent: #ffffff;
  --rose: #c25e7f;
  --caution: #9a5b12;
  --caution-tint: #f7ebda;

  --display: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.sprite {
  display: none;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--rose);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports (animation-timeline: scroll()) {
  .nav {
    animation: nav-fill linear both;
    animation-timeline: scroll();
    animation-range: 0 64px;
  }

  @keyframes nav-fill {
    from {
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero,
.features,
.privacy,
.legal,
.footer {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: min(760px, calc(100svh - 72px));
  padding-block: 32px 64px;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.lede {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

#hair {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(transparent, #000 12%, #000 78%, transparent);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-accent);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 150ms ease;
}

.store:hover {
  transform: translateY(-1px);
}

.store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.8;
}

.store-soon {
  border: 1px solid var(--separator);
  background: var(--background);
  color: var(--ink-soft);
  pointer-events: none;
}

.features {
  display: grid;
  gap: clamp(64px, 10vw, 128px);
  padding-block: 64px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.feature:nth-child(even) .feature-copy {
  order: 1;
}

.feature h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.feature-copy p:last-child {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--ink-soft);
}

.shot {
  justify-self: center;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1179 / 2556;
  border: 1px solid var(--edge);
  border-radius: 44px;
  background: linear-gradient(160deg, var(--card), var(--chrome));
  box-shadow: 0 24px 48px -24px rgba(28, 28, 30, 0.25);
  object-fit: cover;
}

.gallery {
  display: grid;
  gap: 16px;
}

.gallery-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-dots {
  display: flex;
  justify-content: center;
}

.gallery-dot {
  width: 20px;
  height: 20px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--separator);
  background-clip: content-box;
  cursor: pointer;
  transition: width 200ms ease, background-color 200ms ease;
}

.gallery-dot[aria-current='true'] {
  width: 32px;
  background-color: var(--ink);
}

.privacy {
  padding-block: 96px;
  border-top: 1px solid var(--separator);
}

.privacy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.privacy p {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.legal {
  max-width: calc(720px + 2 * var(--gutter));
  padding-block: 48px 96px;
}

.legal h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul {
  margin-top: 16px;
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--caution-tint);
  color: var(--caution);
}

.updated {
  margin-top: 16px;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-block: 48px;
  border-top: 1px solid var(--separator);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.footer-brand p {
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--ink);
}

.copyright {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 820px) {
  .hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 24px 32px;
    overflow-x: clip;
  }

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

  .hero-art {
    position: absolute;
    inset: -100px -45% auto 15%;
    height: 560px;
    min-height: 0;
    opacity: 0.6;
  }

  #hair {
    mask-image: linear-gradient(#000 55%, transparent);
  }

  .features {
    padding-top: 32px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature:nth-child(even) .feature-copy {
    order: 0;
  }

  .shot {
    width: min(100%, 280px);
  }

  .footer {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}
