:root {
  --ink: #171514;
  --paper: #fffdf8;
  --pink: #ff6ab5;
  --pink-soft: #ffd5e9;
  --blue: #258bea;
  --blue-soft: #d8ecff;
  --green: #2f7b4a;
  --green-soft: #d8ead7;
  --orange: #ffa313;
  --yellow: #ffd357;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 17% 10%, rgba(255, 240, 194, 0.7), transparent 25rem),
    linear-gradient(180deg, #fffefb 0%, #fffaf4 100%);
}

.topbar {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 21, 20, 0.14);
}

.mini-mark {
  display: block;
  width: 122px;
  height: 42px;
  flex: 0 0 auto;
  background-image: url("./roxies-wordmark-transparent.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  text-decoration: none;
}

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

.flavors-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 0.75rem 0;
}

.flavors-link span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transition: transform 180ms ease;
}

.flavors-link svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flavors-link:hover span,
.flavors-link:focus-visible span { transform: translateY(3px); }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 64px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 7vw;
  position: relative;
  z-index: 2;
}

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

.section-kicker {
  margin: 0 0 1.3rem;
  color: #d64f91;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.3vw, 7rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--pink);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

.subhead {
  width: fit-content;
  margin: 2.1rem 0 0;
  padding: 0.8rem 1rem 0.78rem;
  border: 1px solid rgba(23, 21, 20, 0.7);
  border-radius: 999px;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
  background: rgba(255, 253, 248, 0.75);
}

.pepper-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 3.2rem;
}

.pepper-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.pepper-dots i:nth-child(2) { transform: translateY(8px); }
.pepper-dots i:nth-child(3) { transform: translateY(-5px); }
.pepper-dots i:nth-child(4) { transform: translateY(5px); }
.pepper-dots i:nth-child(5) {
  width: 12px;
  height: 12px;
  transform: translate(3px, -7px);
}

.product-stage {
  min-height: 650px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.product-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(37vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -2;
  background: var(--yellow);
  box-shadow: 28px 31px 0 var(--pink-soft), -24px -20px 0 #ffeab4;
  transform: translate(-50%, -50%);
}

.sun-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -3;
  opacity: 0.5;
  background: repeating-conic-gradient(
    from 7deg,
    var(--orange) 0deg 1deg,
    transparent 1deg 9deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 0 54%, #000 55% 100%);
  mask-image: radial-gradient(circle, transparent 0 54%, #000 55% 100%);
  transform: translate(-50%, -50%);
  animation: slow-turn 90s linear infinite;
}

.bag-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 620px);
  height: 620px;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.hero-bag {
  position: absolute;
  left: 50%;
  bottom: 66px;
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 22px rgba(70, 38, 8, 0.2));
  transition: transform 320ms ease, filter 320ms ease;
}

.hero-bag--center {
  width: min(28vw, 325px);
  z-index: 3;
  transform: translateX(-50%) rotate(1deg);
}

.hero-bag--left {
  width: min(22vw, 255px);
  z-index: 2;
  bottom: 118px;
  transform: translateX(-106%) rotate(-8deg);
}

.hero-bag--right {
  width: min(22vw, 255px);
  z-index: 2;
  bottom: 118px;
  transform: translateX(6%) rotate(8deg);
}

.product-stage:hover .hero-bag {
  filter: drop-shadow(0 36px 25px rgba(70, 38, 8, 0.24));
}

.product-stage:hover .hero-bag--center {
  transform: translateX(-50%) translateY(-10px) rotate(0);
}

.product-stage:hover .hero-bag--left {
  transform: translateX(-110%) translateY(-3px) rotate(-10deg);
}

.product-stage:hover .hero-bag--right {
  transform: translateX(10%) translateY(-3px) rotate(10deg);
}

@keyframes slow-turn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.flavors {
  position: relative;
  z-index: 2;
  padding: 110px max(24px, calc((100vw - 1180px) / 2)) 76px;
  background: #fff;
  border-top: 1px solid rgba(23, 21, 20, 0.12);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading .section-kicker {
  max-width: 240px;
  margin-bottom: 0.7rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.flavor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(23, 21, 20, 0.18);
}

.flavor {
  min-height: 280px;
  padding: 1.4rem 1.45rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(23, 21, 20, 0.18);
  transition: transform 220ms ease, filter 220ms ease;
}

.flavor:first-child { border-left: 1px solid rgba(23, 21, 20, 0.18); }

.flavor::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: -72px;
  bottom: -74px;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.22), 0 0 0 36px currentColor;
  opacity: 0.15;
}

.flavor:hover { transform: translateY(-7px); filter: saturate(1.08); }

.flavor--salt { color: #a7356f; background: var(--pink-soft); }
.flavor--vinegar { color: #145f9f; background: var(--blue-soft); }
.flavor--jalapeno { color: #1f613c; background: var(--green-soft); }

.flavor-number {
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.flavor h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 280px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.flavor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.flavor-line {
  margin: 2rem 0 0;
  color: rgba(23, 21, 20, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.flavor-line span { margin: 0 0.55rem; color: var(--pink); }

.color-orbit {
  position: absolute;
  border-radius: 50%;
  border: 18px solid currentColor;
  opacity: 0.95;
  pointer-events: none;
}

.color-orbit--orange {
  width: 210px;
  height: 210px;
  color: var(--orange);
  top: -120px;
  left: -88px;
}

.color-orbit--pink {
  width: 138px;
  height: 138px;
  color: var(--pink);
  top: 126px;
  right: -92px;
  border-width: 24px;
}

.color-orbit--blue {
  width: 125px;
  height: 125px;
  color: var(--blue);
  top: 70%;
  left: -76px;
  border-width: 12px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
    text-align: center;
  }

  .hero h1 {
    margin-inline: auto;
    font-size: clamp(4rem, 14vw, 6.3rem);
  }

  .subhead,
  .pepper-dots { margin-inline: auto; }
  .product-stage { min-height: 650px; }
  .product-halo { width: min(72vw, 480px); }
  .sun-lines { width: min(92vw, 620px); }
  .bag-stack { width: min(96vw, 620px); height: 590px; }
  .hero-bag--center { width: min(52vw, 315px); }
  .hero-bag--left,
  .hero-bag--right { width: min(39vw, 235px); }

  .section-heading { display: block; }
  .section-heading .section-kicker {
    max-width: none;
    margin-bottom: 1.3rem;
  }

  .flavor-list { grid-template-columns: 1fr; }
  .flavor,
  .flavor:first-child {
    min-height: 190px;
    border-left: 1px solid rgba(23, 21, 20, 0.18);
    border-bottom: 1px solid rgba(23, 21, 20, 0.18);
  }
}

@media (max-width: 540px) {
  .topbar,
  .hero { width: min(100% - 30px, 1180px); }
  .topbar { height: 76px; }
  .mini-mark {
    width: 108px;
    height: 37px;
  }
  .flavors-link { font-size: 0.63rem; }
  .flavors-link span { width: 27px; height: 27px; }

  .hero {
    min-height: calc(100vh - 76px);
    padding: 58px 0 70px;
    gap: 3rem;
  }

  .hero h1 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .subhead { max-width: 330px; border-radius: 18px; }
  .product-stage { min-height: 500px; }
  .product-halo { width: min(78vw, 400px); }
  .sun-lines { width: min(112vw, 560px); }
  .bag-stack { width: 100vw; height: 480px; }
  .hero-bag { bottom: 33px; }
  .hero-bag--center { width: min(59vw, 275px); }
  .hero-bag--left,
  .hero-bag--right {
    width: min(43vw, 200px);
    bottom: 90px;
  }
  .flavors { padding-top: 80px; }
  .section-heading h2 { font-size: 3.65rem; }
  .flavor-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun-lines { animation: none; }
  .hero-bag,
  .flavor,
  .flavors-link span { transition: none; }
}
