@font-face {
  font-family: Bricolage;
  src: url("assets/brico.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff1da;
  --paper: #fff8ed;
  --ink: #2a160f;
  --muted: #5d3a2c;
  --red: #a02b17;
  --yellow: #ffe45e;
  --line: #e7cbb0;
  --display: Bricolage, "Arial Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, iframe { display: block; max-inline-size: 100%; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .7rem auto auto .7rem;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.hero {
  --melt-art: url("assets/sorvete-derretido.webp");
}

.hero-backdrop {
  --melt-art-offset: clamp(-1.5rem, -1.5vw, -.5rem);
  --melt-art-height: clamp(13.25rem, 31vw, 31rem);
  --melt-cream: #f6bba1;
  --melt-strawberry: #e39876;
  --melt-shadow: #b7582e;
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 83% 51%, #ff9f43 0%, #f77732 31%, transparent 66%),
    linear-gradient(119deg, #86261b 0%, #ad3420 47%, #e25925 100%);
}

.hero-backdrop::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse 62% 88% at 11% 52%, #672118db 0%, #7d2419a8 39%, #8b271946 69%, transparent 100%);
}

.melt-drops {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.melt-sheet {
  position: absolute;
  z-index: 1;
  inset: var(--melt-art-offset) -2% auto;
  height: var(--melt-art-height);
  background: var(--melt-art) center / 100% 100% no-repeat;
  /* Cut the three small baked-in drops from the artwork only. */
  mask-image:
    linear-gradient(#000 0 0),
    linear-gradient(transparent, #000 6%),
    linear-gradient(transparent, #000 6%),
    linear-gradient(transparent, #000 6%);
  mask-size: 100% 100%, 2.16% 5.31%, 2.02% 4.41%, 2.34% 5.55%;
  mask-position: 0 0, 20.83% 57.49%, 47.56% 88.81%, 79.38% 74.61%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

.melt-drop {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--drop-size);
  height: calc(var(--drop-size) * 1.19);
  opacity: 0;
  background: radial-gradient(ellipse at 34% 61%, #ffe1c7 3%, var(--melt-cream) 30%, var(--melt-strawberry) 62%, var(--melt-shadow) 94%);
  clip-path: polygon(
    50% 0%, 54% 10%, 60% 20%, 67% 30%, 76% 41%, 84% 52%, 91% 62%,
    94% 71%, 93% 79%, 88% 86%, 80% 92%, 70% 96%, 60% 99%, 50% 100%,
    40% 99%, 30% 96%, 20% 92%, 12% 86%, 7% 79%, 6% 71%, 9% 62%,
    16% 52%, 24% 41%, 33% 30%, 40% 20%, 46% 10%
  );
}

/* Drop origins match the visible tips of the syrup artwork. */
.melt-drop-left {
  --tip-x: 21.45%;
  --tip-y: .5444;
  --drop-size: 1.15rem;
}

.melt-drop-center {
  --tip-x: 47.55%;
  --tip-y: .8489;
  --drop-size: 1.45rem;
}

.melt-drop-right {
  --tip-x: 78.70%;
  --tip-y: .7047;
  --drop-size: 1.28rem;
}

.shell {
  width: min(100% - 7.5rem, 81.25rem);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 5;
  background: var(--cream);
  border-bottom: 1px solid #f4d4ac;
}

.header-inner {
  display: grid;
  min-height: 5.25rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  border-radius: .4rem;
}

.brand img {
  width: 7.3rem;
  height: auto;
  mix-blend-mode: multiply;
}

.desktop-nav, .footer nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.desktop-nav a, .footer nav a {
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: .28em;
}

.desktop-nav a:hover, .footer nav a:hover { text-decoration: underline; }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.4rem;
  padding: .67rem 1.25rem;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 100rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-header {
  justify-self: end;
  min-height: 2.85rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .91rem;
}

.button-header:hover, .button-dark:hover { background: #7f2818; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: #fff29c; }
.button-hero-outline { border-color: #ffddbea8; color: var(--paper); background: #7a1d122b; }
.button-hero-outline:hover { background: var(--paper); color: var(--ink); }
.button-outline { border-color: #956c55; background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--paper); }

.icon { flex: 0 0 auto; position: relative; display: inline-block; }

.icon-bag {
  width: 1rem;
  height: .91rem;
  margin-top: .22rem;
  border: 1.6px solid currentColor;
  border-radius: .14rem .14rem .22rem .22rem;
}

.icon-bag::before {
  position: absolute;
  content: "";
  width: .44rem;
  height: .34rem;
  inset: -.34rem 0 auto;
  margin: auto;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: .33rem .33rem 0 0;
}

.icon-pin {
  width: 1.28rem;
  height: 1.28rem;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: translateY(-.13rem) rotate(-45deg);
}

.icon-pin::after {
  position: absolute;
  content: "";
  inset: .29rem;
  background: currentColor;
  border-radius: 50%;
}

.icon-copy { width: 1.05rem; height: 1.07rem; }

.icon-copy::before, .icon-copy::after {
  position: absolute;
  content: "";
  width: .72rem;
  height: .81rem;
  border: 1.5px solid currentColor;
  border-radius: .1rem;
}

.icon-copy::before { inset: 0 auto auto 0; border-right: 0; border-bottom: 0; }
.icon-copy::after { inset: auto 0 0 auto; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #a83823;
  color: var(--paper);
}

.hero-layout {
  position: relative;
  display: grid;
  container-type: inline-size;
  min-height: 39.25rem;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.08fr);
  gap: clamp(1.3rem, 4vw, 4rem);
  align-items: center;
  padding-block: 3.4rem 4.35rem;
}

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

.overline {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.overline > span {
  width: 1.32rem;
  height: 2px;
  background: currentColor;
}

.hero-overline { color: var(--yellow); }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  font-optical-sizing: auto;
  letter-spacing: -.047em;
}

h1 {
  margin: 1.13rem 0 1.45rem;
  font-size: clamp(4rem, 8.2vw, 8rem);
  line-height: .86;
}

h1 em, h2 em { font-style: normal; }
h1 em { color: var(--yellow); }

.hero-description {
  width: min(26.5rem, 95%);
  color: #fff0dc;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-actions { margin-top: 1.55rem; }

.hero-figure { position: relative; align-self: center; }

.hero-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.16;
}

.hero-frame::before {
  position: absolute;
  content: "";
  inset: 11% 3% 1%;
  background: radial-gradient(ellipse at center, #ffb3509e 4%, #ff9b4547 38%, transparent 68%);
}

.hero-floor {
  position: absolute;
  inset: auto 28% 1% 19%;
  height: 8%;
  background: radial-gradient(ellipse, #60130b65 0%, transparent 68%);
}

.melt-liquid {
  position: absolute;
  z-index: 3;
  inset: var(--melt-liquid-y, 100%) 0 auto;
  width: 100%;
  height: clamp(5rem, 14vw, 11rem);
  transform: translateY(-50%);
  pointer-events: none;
}

.melt-wave-splash {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.melt-wave {
  --wave-edge: polygon(0 12%, 10% 9%, 20% 6%, 30% 7%, 43% 12%, 53% 13%, 64% 10%, 77% 4%, 87% 5%, 100% 11%, 100% 100%, 0 100%);
  position: absolute;
  inset: 0 -6% -28%;
  transform: translateY(103%);
  clip-path: var(--wave-edge);
  background: linear-gradient(180deg, #fff1d4 4%, #ffcfb1 14%, #e68f77 38%, #b95347 100%);
}

.melt-wave::before {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateY(clamp(.38rem, .9vw, 1rem));
  clip-path: var(--wave-edge);
  background:
    radial-gradient(ellipse 68% 64% at 26% 2%, #ffebcbbb, transparent 75%),
    radial-gradient(ellipse 57% 56% at 85% 14%, #ffd3b3b3, transparent 72%),
    linear-gradient(166deg, #fac1a2 8%, #ee9b83 46%, #cd6d5b 76%, #b95347);
}

@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  .melt-wave {
    --wave-edge: shape(from 0 12%, curve to 25% 6% with 8% 12% / 14% 5%, curve to 51% 13% with 36% 7% / 42% 14%, curve to 78% 4% with 61% 13% / 69% 4%, curve to 100% 11% with 87% 4% / 94% 10%, line to 100% 100%, line to 0 100%, close);
  }
}

.hero-photo {
  --float-distance: .9rem;
  position: absolute;
  z-index: 1;
  width: auto;
  height: 98%;
  max-width: 93%;
  object-fit: contain;
  filter: drop-shadow(.65rem .75rem 1rem #64130947);
  animation: cone-float 6.6s ease-in-out infinite;
}

@keyframes cone-float {
  0%, 100% { transform: translate3d(0, calc(-1 * var(--float-distance)), 0); }
  50% { transform: translate3d(0, var(--float-distance), 0); }
}

figcaption {
  margin-top: .55rem;
  font-size: .78rem;
  line-height: 1.3;
}

.menu-section { background: var(--paper); }

.menu-layout, .location-layout {
  display: grid;
  gap: clamp(2.5rem, 6.9vw, 7rem);
  align-items: center;
  padding-block: clamp(4.25rem, 8.5vw, 8.1rem);
}

.menu-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.location-layout { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }

.menu-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.34;
  border-radius: 1.55rem;
  background: #482414;
}

.menu-frame img {
  position: absolute;
  inset: -1.7rem 0;
  width: 100%;
  height: calc(100% + 3.4rem);
  object-fit: cover;
  transform: translateY(var(--parallax-y, 0px));
}

.menu-figure figcaption { color: var(--muted); }
.section-overline { color: var(--red); }

h2 {
  margin: .9rem 0 1.25rem;
  font-size: clamp(3.2rem, 6.5vw, 6.6rem);
  line-height: .9;
}

h2 em { color: var(--red); }

.menu-copy > p:not(.overline) {
  max-width: 26rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.menu-actions { margin-top: 1.45rem; }

.catalog-section {
  border-top: 1px solid var(--line);
  background: #fff0d9;
}

.catalog-layout { padding-block: clamp(3.65rem, 7.3vw, 7.25rem); }
.catalog-intro h2 { margin-bottom: .85rem; }
.catalog-intro > p:last-child {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.catalog-intro a { font-weight: 700; text-underline-offset: .2em; }

.catalog-controls {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.1rem 1.5rem;
  margin-block: 1.75rem 1.6rem;
}

.catalog-search {
  display: grid;
  order: 1;
  gap: .35rem;
  width: min(100%, 17rem);
  flex: 0 0 auto;
  font-size: .9rem;
  font-weight: 700;
}

.catalog-search-field { position: relative; display: block; }

.catalog-search input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .5rem .8rem .5rem 2.55rem;
  border: 1px solid #956c55;
  border-radius: 100rem;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem var(--body);
}

.catalog-search input::placeholder { color: var(--muted); }
.icon-search {
  position: absolute;
  top: .9rem;
  left: 1rem;
  width: .88rem;
  height: .88rem;
  border: 1.6px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
}

.icon-search::after {
  position: absolute;
  content: "";
  top: 86%;
  left: 85%;
  width: .42rem;
  height: 1.6px;
  transform: rotate(45deg);
  transform-origin: left;
  background: var(--red);
}

.catalog-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }

.catalog-tab {
  min-height: 2.75rem;
  padding: .4rem .83rem;
  border: 1px solid #b9896d;
  border-radius: 100rem;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.catalog-tab:hover { background: var(--paper); }
.catalog-tab[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.catalog-panel {
  padding-top: 1.55rem;
  border-top: 1px solid var(--line);
}

.catalog-heading h3 {
  margin: 0;
  font: 800 clamp(1.55rem, 3vw, 2.15rem)/1.12 var(--display);
  letter-spacing: -.035em;
}

.catalog-note, .catalog-status {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.catalog-note:empty { display: none; }
.catalog-status { margin-top: .65rem; font-size: .88rem; }

.catalog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}

.catalog-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .4rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e6ccb0;
  border-radius: 1rem;
  background: var(--paper);
}

.catalog-card-name {
  margin: 0;
  color: var(--ink);
  font: 800 1.18rem/1.2 var(--display);
  letter-spacing: -.018em;
}

.catalog-card-description { color: var(--muted); line-height: 1.45; }
.catalog-card-detail, .catalog-card-category {
  color: var(--red);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

.catalog-empty { grid-column: 1 / -1; color: var(--muted); }
.catalog-more { margin-top: 1.2rem; }

.location-section {
  border-top: 1px solid var(--line);
  background: #ffe8c7;
}

.location-copy address {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .9rem;
  margin-block: 1.6rem 1.45rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.45;
}

.location-copy address strong { color: var(--ink); font-size: 1.2rem; }
.location-copy address .icon { color: var(--red); }
.copy-status { min-height: 1.3em; margin-top: .61rem; color: var(--muted); font-size: .875rem; }

.contact-line {
  width: fit-content;
  margin-top: .75rem;
  scroll-margin-top: 1rem;
}

.contact-line a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 1.17rem;
  font-weight: 700;
  text-underline-offset: .22em;
}

.contact-line a:hover { color: var(--red); }

.location-map {
  overflow: hidden;
  padding: .42rem;
  border: 1px solid #d7ad88;
  border-radius: 1.65rem;
  background: var(--paper);
  box-shadow: .25rem .36rem 0 #e8c398;
}

.location-map iframe {
  width: 100%;
  height: auto;
  min-height: 20rem;
  aspect-ratio: 1.45;
  border: 0;
  border-radius: 1.2rem;
  background: #ede7d9;
}

.footer { border-top: 1px solid var(--line); background: var(--cream); }

.footer-inner {
  display: flex;
  min-height: 6.8rem;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-inner > p { color: var(--muted); font-weight: 600; }
.footer nav { gap: 1.4rem; }

[data-motion="ready"] [data-reveal] {
  transform: translateY(1.4rem);
  opacity: 0;
  transition: opacity .58s ease, transform .7s cubic-bezier(.18,.65,.25,1);
}

[data-motion="ready"] [data-reveal].is-visible,
[data-motion="ready"] [data-reveal]:focus-within {
  transform: none;
  opacity: 1;
}

@media (max-width: 68rem) {
  .shell { width: calc(100% - 5rem); }
  .hero-layout { min-height: 34rem; }
  .menu-layout, .location-layout { gap: 2.65rem; }
}

@media (max-width: 52rem) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.6rem; gap: 1rem; }
  .desktop-nav { gap: 1.15rem; }
  .hero-layout { gap: 1.15rem; min-height: 31.2rem; }
  h1 { font-size: clamp(3.5rem, 9vw, 5rem); }
  .hero-frame { aspect-ratio: .94; }
  .menu-layout, .location-layout { gap: 1.7rem; }
  .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-map iframe { min-height: 17rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { grid-template-columns: 1fr auto auto; gap: .55rem; }
  .brand img { width: 5.85rem; }
  .desktop-nav { display: none; }
  .button-header { min-height: 2.65rem; padding-inline: .85rem; font-size: .84rem; }
  .button-header .icon { display: none; }
  .mobile-menu { display: block; position: relative; }

  .mobile-menu summary {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid #d9b693;
    border-radius: 50%;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span {
    width: .97rem;
    height: .68rem;
    border-block: 2px solid;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .mobile-menu nav {
    position: absolute;
    inset: calc(100% + .75rem) 0 auto auto;
    width: 12.4rem;
    padding: .42rem;
    border: 1px solid var(--line);
    border-radius: .95rem;
    background: var(--paper);
    box-shadow: 0 .6rem 1.5rem #2a160f2c;
  }

  .mobile-menu nav a {
    display: block;
    padding: .7rem .65rem;
    border-radius: .55rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu nav a:hover { background: var(--cream); }

  .hero-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    padding-block: 2.6rem;
  }

  .hero-backdrop::after {
    background: radial-gradient(ellipse 100% 68% at 18% 28%, #6d2418d9 0%, #7c271a99 48%, transparent 100%);
  }
  .hero-backdrop { --melt-art-offset: -1.25rem; }
  h1 { margin-block: .9rem 1.2rem; font-size: clamp(3.5rem, 13.9vw, 6.2rem); }
  .hero-description { width: min(21rem, 100%); }
  .hero-actions { margin-top: 1.13rem; }
  .hero-frame { aspect-ratio: 1.06; }
  .hero-photo { --float-distance: .6rem; }

  .menu-layout, .location-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-block: 3.65rem;
  }

  .menu-copy { grid-row: 1; }
  h2 { font-size: clamp(3.35rem, 12.2vw, 5.6rem); }
  .menu-frame { border-radius: 1.2rem; aspect-ratio: 1.42; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-search { order: 0; width: 100%; }
  .catalog-list { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .location-copy address { margin-top: 1.15rem; }
  .location-layout { gap: .8rem; }
  .location-map { border-radius: 1.2rem; }
  .location-map iframe { min-height: 17.25rem; border-radius: .85rem; }
  .footer-inner { min-height: auto; flex-wrap: wrap; gap: .8rem 1.2rem; padding-block: 1.1rem; }
  .footer-inner > p { font-size: .92rem; }
  .footer nav { flex-basis: 100%; }
}

@media (max-width: 22rem) {
  .shell { width: calc(100% - 1.6rem); }
  h1 { font-size: 3.25rem; }
  .button { padding-inline: .88rem; }
  .actions { gap: .48rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .melt-drops, .melt-liquid, .melt-wave-splash { display: none; }
  .menu-frame img { transform: none; }
  .button, [data-motion="ready"] [data-reveal] { transition: none; }
  .button:hover, .button:active, [data-motion="ready"] [data-reveal] { transform: none; }
  [data-motion="ready"] [data-reveal] { opacity: 1; }
}
