/* DRIP BAR — shared styles */
:root {
  --brown: #341816;
  --blue: #BED9E2;
  --white: #FFFFFF;
  --line: rgba(190,217,226,.2);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--brown);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* scroll-driven mesh gradient behind everything (bg-gradient.js); plain brown body if it can't run */
.bg-gradient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s; }
.bg-gradient.is-live { opacity: 1; }

/* ---------- nav: transparent bar over the gradient, centred logo, links either side ---------- */
/* Not sticky: a see-through bar pinned over scrolling text would clash with it. */
.nav {
  position: relative;
  z-index: 10;
}
.nav-drop ul { background: var(--brown); }
.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 48px;
  height: 84px;
}
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-links a, .nav-drop a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="page"], .nav-drop a[aria-current="page"] { color: var(--blue); }

/* phone dropdown (details/summary, no JS) — hidden on desktop */
.nav-drop { display: none; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: -10px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .2s, background .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-drop[open] .burger { background: transparent; }
.nav-drop[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-drop[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.nav-drop ul {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px 20px 16px;
}
.nav-drop a { display: block; padding: 14px 0; font-size: 14px; }

/* ---------- shared type: JetBrains Mono only (the logo is the only script) ---------- */
.heading {
  font-weight: 800;
  color: var(--blue);
  text-transform: lowercase;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.page-title { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.04em; line-height: 1; }
.label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pill {
  display: inline-block;
  white-space: nowrap;
  color: var(--blue);
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: lowercase;
  text-decoration: none;
}
a.pill:hover { background: var(--blue); color: var(--brown); border-color: var(--blue); }

/* sections are split by a thin blue rule */
.band { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }

/* ---------- mascots: tiny and silent, tucked into odd spots (inline after text, or perched on things) ---------- */
.mascot { width: clamp(24px, 2.4vw, 30px); flex: none; rotate: var(--tilt, 0deg); }
.mascot[src*="/dee-"] { transform: scale(1.12); transform-origin: 50% 100%; }
/* negative block margins keep a mascot from stretching the line it sits in */
.mascot.inline { display: inline-block; height: auto; margin: -12px 0 -12px .45em; vertical-align: middle; }
.big .mascot.inline { vertical-align: top; margin-top: -.1em; }
.perch { position: relative; }
.perch > .mascot { position: absolute; left: calc(100% + 8px); bottom: 2px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.head-row p { max-width: 46ch; margin-top: 14px; }

/* ---------- home: just the logo and "coming soon" ---------- */
.hero {
  min-height: calc(100vh - 85px);
  min-height: calc(100svh - 85px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  padding: 48px 20px;
}
.hero-logo { position: relative; width: clamp(260px, 52vw, 620px); }
.hero-logo img { width: 100%; transition: opacity .6s; }
/* liquid-metal canvas (liquid-logo.js) fades in over the static logo once WebGL renders */
.liquid-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-logo.is-liquid img { opacity: 0; }
.hero-logo.is-liquid .liquid-stage { opacity: 1; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }

/* ---------- menu ---------- */
.menu-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.menu-jump a { padding: 7px 16px; font-size: 12px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; }
.menu-sec { scroll-margin-top: 100px; }
.menu-sec h2 { font-size: 28px; }
.menu-sec .note { font-size: 13px; opacity: .75; margin: 4px 0 16px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 11px 0;
}
.item + .item { border-top: 1px solid var(--line); }
.item h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.item .price { font-weight: 800; font-size: 16px; color: var(--blue); }
.item p { grid-column: 1 / -1; font-size: 13.5px; opacity: .8; line-height: 1.5; }
.step { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 14px 0 4px; }
.step + p { font-size: 13.5px; opacity: .8; margin-bottom: 6px; }
.sides li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.sides li + li { border-top: 1px solid var(--line); }
.sides b { font-weight: 800; color: var(--blue); }

#gelato { scroll-margin-top: 84px; }
#gelato .page-title { font-size: clamp(36px, 5vw, 56px); }
#gelato p { max-width: 46ch; margin-top: 14px; }
.flavours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.flavour {
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.flavour.sorbet { background: var(--blue); color: var(--brown); }
.flavour.special { border-style: dashed; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); margin-right: 8px; vertical-align: -1px; }
.legend .s::before { background: var(--blue); }
.legend .x::before { border-style: dashed; }
.fine { font-size: 12.5px; opacity: .7; margin-top: 40px; }

/* ---------- about ---------- */
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose > * { max-width: 60ch; }
.prose p + p { margin-top: 1.1em; }
.prose .lead { font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts .big { font-weight: 800; color: var(--blue); font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.facts p { margin-top: 8px; }

/* ---------- contact ---------- */
.contact-body { padding-bottom: clamp(56px, 8vw, 96px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list > div + div { margin-top: 28px; }
.contact-list h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(190,217,226,.5); }
.contact-list a:hover { border-bottom-color: var(--blue); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 18px; filter: grayscale(.35); }

/* ---------- footer ---------- */
footer { padding: 44px 0 32px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot h2 { font-weight: 800; color: var(--blue); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(190,217,226,.5); }
.foot a:hover { border-bottom-color: var(--blue); }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; color: var(--blue); opacity: .8; }

/* ---------- hover motion: a small, quick lift on the menu bar, pills and links ---------- */
.nav-links a, .contact-list a, .foot a { display: inline-block; }
.nav-links a, .nav-logo img, .pill, .contact-list a, .foot a {
  transition: transform .25s cubic-bezier(.3, .7, .4, 1.4), color .2s, background-color .2s,
    border-color .2s, box-shadow .25s;
}
@media (hover: hover) {
  .nav-links a:hover { transform: translateY(-2px); }
  .nav-logo:hover img { transform: rotate(-5deg) scale(1.07); }
  .pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px -12px rgba(0,0,0,.7); }
  .contact-list a:hover, .foot a:hover { transform: translateY(-1px); color: var(--blue); }
}
a.pill:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .nav-links a, .nav-logo img, .pill, .contact-list a, .foot a { transition: color .2s, background-color .2s, border-color .2s; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-bar { height: 64px; column-gap: 12px; }
  .nav-logo img { height: 42px; }
  .nav-links { display: none; }
  .nav-drop { display: block; }
  .hero { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); }
  .facts, .foot, .menu-cols, .contact-grid { grid-template-columns: 1fr; }
  .foot { text-align: center; }
  .menu-cols { gap: 48px; }
  .flavour { font-size: 12px; padding: 10px 12px; }
  .menu-sec { scroll-margin-top: 80px; }
  #gelato { scroll-margin-top: 64px; }
}
