:root {
  --ink: #291713;
  --sky: #83c9df;
  --paper: #ffffff;
  --red: #c92741;
  --pink: #f48fa0;
  --green: #abd47b;
  --brown: #63352c;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Nunito Sans", sans-serif; font-weight: 700; }
body::selection { background: var(--red); color: white; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 4px solid #fff; box-shadow: 0 0 0 7px var(--ink); outline-offset: 2px; }

.site-header { height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px); border-bottom: var(--line); background: var(--paper); position: relative; z-index: 5; }
.brand { font-family: "Bowlby One", sans-serif; font-size: 1.7rem; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--red); }
nav { display: flex; gap: 34px; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.mini-button { justify-self: end; background: var(--ink); color: white; padding: 11px 18px; border-radius: 100px; text-decoration: none; font-size: .85rem; }

.hero { min-height: calc(100svh - 78px); display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; background: var(--sky); position: relative; overflow: hidden; border-bottom: var(--line); }
.awning { position: absolute; inset: 0 0 auto; height: 74px; border-bottom: var(--line); background: linear-gradient(90deg, var(--paper) 0 50%, var(--red) 50% 100%); background-size: 160px 100%; }
.hero-copy { align-self: center; padding: 130px 30px 70px clamp(24px, 6vw, 96px); position: relative; z-index: 2; }
.availability { display: inline-block; margin: 0 0 26px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 100px; background: var(--paper); font-size: .78rem; letter-spacing: .02em; }
h1, h2 { font-family: "Bowlby One", sans-serif; font-weight: 400; margin: 0; line-height: .92; letter-spacing: -.035em; }
h1 { font-size: clamp(3.8rem, 7.2vw, 7.2rem); max-width: 8ch; }
h1 span { color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.hero-lede { font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 43ch; line-height: 1.5; margin: 28px 0 34px; }
.primary-button { display: inline-flex; gap: 24px; align-items: center; background: var(--ink); color: white; padding: 17px 24px; border-radius: 100px; text-decoration: none; box-shadow: 0 8px 20px rgb(41 23 19 / 22%); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(41 23 19 / 28%); }

.cone-stage { min-height: 680px; display: grid; place-items: end center; position: relative; padding-top: 90px; }
.cone { width: min(660px, 58vw); max-height: calc(100svh - 80px); overflow: visible; filter: drop-shadow(14px 18px 0 rgb(41 23 19 / 11%)); transform: rotate(4deg) translateY(26px); transition: filter .35s ease-out; }
.scoop { stroke: var(--ink); stroke-width: 9; stroke-linejoin: round; transition: fill .38s cubic-bezier(.16,1,.3,1), transform .38s cubic-bezier(.16,1,.3,1); transform-box: fill-box; transform-origin: center; }
.scoop-top { fill: var(--pink); }
.scoop-middle { fill: var(--green); }
.scoop-bottom { fill: var(--brown); }
.ripple { fill: none; stroke: #fff1ef; stroke-width: 15; stroke-linecap: round; opacity: .85; }
.flavour-stamp { position: absolute; right: clamp(24px, 4vw, 66px); top: 120px; width: 158px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; padding: 14px; background: #ffd560; border: var(--line); border-radius: 50%; transform: rotate(9deg); z-index: 3; box-shadow: 7px 9px 18px rgb(41 23 19 / 16%); }
.flavour-stamp::before { content: ""; position: absolute; inset: 8px; border: 2px dashed var(--ink); border-radius: inherit; }
.flavour-stamp span, .flavour-stamp strong { position: relative; }
.flavour-stamp span { font-size: .72rem; letter-spacing: .04em; }
.flavour-stamp strong { line-height: 1.05; margin-top: 5px; }

body[data-theme="berry"] .scoop-top, body[data-theme="berry"] .scoop-middle, body[data-theme="berry"] .scoop-bottom { fill: #f48fa0; }
body[data-theme="mint"] .scoop-top, body[data-theme="mint"] .scoop-middle, body[data-theme="mint"] .scoop-bottom { fill: #abd47b; }
body[data-theme="choc"] .scoop-top, body[data-theme="choc"] .scoop-middle, body[data-theme="choc"] .scoop-bottom { fill: #63352c; }
body.changing .scoop-top { transform: translateX(10px) rotate(3deg); }
body.changing .scoop-middle { transform: translateX(-8px) rotate(-2deg); }
body.changing .scoop-bottom { transform: translateY(7px); }

.flavours { padding: clamp(72px, 10vw, 150px) clamp(20px, 6vw, 96px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 54px; }
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 5.5rem); max-width: 11ch; }
.section-heading p { font-size: 1rem; max-width: 25ch; text-align: right; }
.flavour-list { border-top: var(--line); }
.flavour { width: 100%; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 28px 18px; border: 0; border-bottom: var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer; background: transparent; transition: background-color .2s ease-out, transform .2s ease-out; }
.flavour:hover, .flavour.active { transform: translateX(8px); }
.flavour-berry:hover, .flavour-berry.active { background: var(--pink); }
.flavour-mint:hover, .flavour-mint.active { background: var(--green); }
.flavour-choc:hover, .flavour-choc.active { background: #c3836e; }
.number { font-variant-numeric: tabular-nums; font-size: .8rem; }
.flavour strong { display: block; font-family: "Bowlby One", sans-serif; font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 2.5rem); letter-spacing: -.025em; }
.flavour small { display: block; margin-top: 4px; font-size: .9rem; }
.arrow { font-size: 2rem; transition: transform .2s ease-out; }
.flavour:hover .arrow, .flavour.active .arrow { transform: rotate(45deg); }

.story { background: var(--red); color: white; padding: clamp(80px, 12vw, 170px) clamp(24px, 14vw, 220px); border-block: var(--line); }
.story-note { display: inline-block; color: var(--ink); background: var(--paper); padding: 8px 13px; border: 2px solid var(--ink); border-radius: 100px; letter-spacing: .02em; font-size: .78rem; }
.story h2 { font-size: clamp(3rem, 7vw, 7rem); max-width: 12ch; margin: 35px 0; }
.story > p:not(.story-note) { font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.55; max-width: 61ch; }
.story a { display: inline-block; margin-top: 34px; font-size: 1.05rem; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 40px clamp(20px, 6vw, 96px); font-size: .8rem; }
footer span:first-child { font-family: "Bowlby One", sans-serif; font-size: 1.5rem; }

@media (max-width: 760px) {
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .mini-button { padding: 9px 13px; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); }
  .awning { height: 56px; background-size: 112px 100%; }
  .cone-stage { grid-row: 1; width: 100%; min-width: 0; min-height: 490px; padding-top: 65px; align-items: end; }
  .cone { width: min(510px, 112vw); max-height: 500px; transform: rotate(3deg) translate(8vw, 38px); }
  .flavour-stamp { width: 118px; top: 85px; right: 18px; }
  .hero-copy { width: 100%; min-width: 0; padding: 55px 24px 70px; border-top: var(--line); background: var(--sky); }
  .hero-lede { max-width: 100%; }
  h1 { font-size: clamp(3.4rem, 16vw, 5.5rem); }
  .hero-lede { margin-top: 22px; }
  .section-heading { display: block; }
  .section-heading p { text-align: left; }
  .flavour { grid-template-columns: 38px 1fr auto; padding-inline: 6px; }
  .flavour:hover, .flavour.active { transform: translateX(4px); }
  .story { padding-inline: 24px; }
  footer { align-items: start; gap: 22px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
