/* ─────────────────────────────────────────────────────────
   Milkee Donuts — Wauwatosa
   Palette pulled from the shop itself: the pink of the box
   lid, cocoa of a chocolate old-fashioned, ube purple and
   matcha green off the trays.
   ───────────────────────────────────────────────────────── */

:root {
  --cream:      #fff6ea;
  --cream-deep: #fbe9d4;
  --paper:      #fffdf9;
  --cocoa:      #33201a;
  --cocoa-soft: #6d564c;
  --pink:       #e93068;
  --pink-soft:  #ffd7e2;
  --pink-glow:  #ff8fb4;
  --ube:        #8b5cc4;
  --ube-soft:   #e5d6f6;
  --matcha:     #7d9e4e;
  --butter:     #f6cd6b;
  --biscoff:    #c98b4b;

  --sprinkle-a: #ffe08a;

  --shadow-sm: 0 2px 8px rgba(51, 32, 26, .07);
  --shadow-md: 0 14px 34px -14px rgba(51, 32, 26, .3);
  --shadow-lg: 0 34px 70px -28px rgba(51, 32, 26, .45);

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: 52px;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(18px, 4vw, 44px);
  --measure: 1280px;
}

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

html {
  scroll-behavior: smooth;
  /* clears the sticky header on anchor jumps */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: clamp(16px, .55vw + 15px, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.015em;
  margin: 0;
  /* Bagel Fat One sits high in its em box */
  text-wrap: balance;
}

h1 { font-size: clamp(56px, 8.4vw, 122px); }
h2 { font-size: clamp(38px, 5.4vw, 74px); }
h3 { font-size: clamp(23px, 2vw, 30px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: min(var(--measure), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.sm { font-size: .55em; text-transform: lowercase; letter-spacing: .02em; }

.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 14px;
}

.fine { font-size: 14px; color: var(--cocoa-soft); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--cocoa);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 12px; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  --btn-bg: var(--cocoa);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.005em;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s, background-color .22s, color .22s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--pink  { --btn-bg: var(--pink);  --btn-fg: #fff; }
.btn--brown { --btn-bg: var(--cocoa); --btn-fg: var(--cream); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--cocoa); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--cocoa);
  border-color: currentColor;
}
.btn--outline:hover { --btn-bg: var(--cocoa); --btn-fg: var(--cream); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cocoa);
  padding-inline: 14px;
}
.btn--ghost:hover { --btn-bg: var(--pink-soft); box-shadow: none; }

/* ── Alert bar ─────────────────────────────────────────── */

.alert {
  background: var(--cocoa);
  color: #ffe8d9;
  text-align: center;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.alert__dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6fdc8c;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(111, 220, 140, .7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(111, 220, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 220, 140, 0); }
}

/* ── Header ────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(51, 32, 26, .1);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 78px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--pink);
  margin-right: auto;
}
.wordmark__ring { width: 34px; height: 34px; flex: none; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.wordmark:hover .wordmark__ring { transform: rotate(140deg); }
.wordmark__text strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.02em;
}
.wordmark__text small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-top: 3px;
}

.nav { display: flex; gap: 26px; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.head-cta { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  padding: 11px 9px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--cocoa);
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  border-top: 1px solid rgba(51, 32, 26, .1);
  /* the sheet is opaque so the page can't read through it, and it scrolls
     rather than growing the sticky header past the viewport */
  background: var(--cream);
  max-height: calc(100vh - 78px);
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* An author `display` beats the UA stylesheet's [hidden] rule — without this
   the closed sheet stays on screen and covers the top of the page. */
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 13px 4px;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(51, 32, 26, .14);
}
.mobile-nav .btn { margin-top: 14px; border-bottom: 0; justify-self: start; }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(48rem 34rem at 12% 6%,  rgba(233, 48, 104, .17), transparent 62%),
    radial-gradient(40rem 32rem at 88% 10%, rgba(139, 92, 196, .17), transparent 62%),
    radial-gradient(38rem 30rem at 62% 96%, rgba(246, 205, 107, .24), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero h1 { margin: 0 0 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--pink);
  display: inline-block;
  /* a touch of hand-set tilt */
  transform: rotate(-1.6deg);
}

.lede {
  font-size: clamp(17px, 1.15vw + 14px, 20px);
  color: var(--cocoa-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 38px 0 0;
  padding-top: 26px;
  border-top: 1px dashed rgba(51, 32, 26, .26);
}
.hero__facts dt {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-bottom: 3px;
}
.hero__facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.hero__shot {
  position: relative;
  margin: 0;
  rotate: 1.6deg;
}
.hero__shot img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* the little rotated paper sticker on the hero shot */
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  line-height: 1.45;
}
.sticker strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--pink);
}
.sticker--box {
  width: 148px; height: 148px;
  left: -30px; bottom: -26px;
  padding: 18px;
  rotate: -9deg;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  50% { transform: translateY(-9px); }
}

/* ── Marquee ───────────────────────────────────────────── */

.marquee {
  background: var(--pink);
  color: #fff;
  overflow: hidden;
  border-block: 3px solid var(--cocoa);
  padding: 12px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-size: 24px;
  white-space: nowrap;
}
.marquee i {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 3px solid currentColor;
  flex: none;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ── Sections ──────────────────────────────────────────── */

.section { padding: clamp(64px, 8vw, 118px) 0; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 50px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.sec-head__note {
  max-width: 40ch;
  color: var(--cocoa-soft);
  font-size: 16px;
  padding-bottom: 6px;
}

/* ── The case ──────────────────────────────────────────── */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 18px;
}

.tile {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .3, 1);
}
.tile:hover img { transform: scale(1.04); }

.tile figcaption { padding: 22px 24px 26px; }
.tile figcaption p { margin: 10px 0 0; font-size: 15px; color: var(--cocoa-soft); }

/* the tall ube/matcha tile spans two rows on the left */
.tile--tall { grid-row: span 2; }
.tile--tall img { aspect-ratio: 3 / 4; }

.chip {
  display: inline-block;
  padding: 5px 13px;
  margin: 0 6px 4px 0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.chip--ube     { background: var(--ube-soft);  color: #5b3689; }
.chip--matcha  { background: #e2edcf;          color: #4d6b26; }
.chip--biscoff { background: #f6e3cd;          color: #8a5722; }
.chip--classic { background: var(--pink-soft); color: #a81b46; }

.tile--flavors {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: linear-gradient(158deg, var(--cocoa), #4d3128);
  color: var(--cream);
}
.tile--flavors:hover { transform: translateY(-6px); }
.tile--flavors .eyebrow { color: var(--pink-glow); }
.tile--flavors .fine { color: rgba(255, 246, 234, .62); margin-top: auto; padding-top: 18px; }

.flavor-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  columns: 2;
  column-gap: 22px;
}
.flavor-list li {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 246, 234, .16);
  break-inside: avoid;
}

/* ── Feature strip ─────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cocoa);
  color: var(--cream);
}
.feature__img { margin: 0; }
.feature__img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.feature__copy {
  padding: clamp(44px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.feature__copy .eyebrow { color: var(--pink-glow); }
.feature__copy h2 { margin-bottom: 22px; }
.feature__copy p { color: rgba(255, 246, 234, .78); max-width: 46ch; }
.feature__copy .btn { margin-top: 16px; }

/* ── Menu cards ────────────────────────────────────────── */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mcard {
  --tint: var(--pink-soft);
  padding: 32px 30px 34px;
  border-radius: var(--r-lg);
  background: var(--tint);
  border: 2px solid rgba(51, 32, 26, .08);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.mcard:hover { transform: translateY(-5px) rotate(-.5deg); }
.mcard--pink   { --tint: #ffe2ea; }
.mcard--ube    { --tint: var(--ube-soft); }
.mcard--butter { --tint: #fdeec4; }

.mcard h3 { margin-bottom: 18px; }
.mcard ul { list-style: none; margin: 0; padding: 0; }
.mcard li {
  padding: 11px 0;
  border-bottom: 1px dashed rgba(51, 32, 26, .2);
  font-weight: 700;
  font-size: 16px;
}
.mcard li:last-child { border-bottom: 0; }
.mcard li span {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--cocoa-soft);
  font-style: italic;
}

.menu-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--cocoa-soft);
  max-width: 62ch;
}
.menu-note a { font-weight: 800; color: var(--pink); text-underline-offset: 3px; }

/* ── Hiring ────────────────────────────────────────────── */

.hiring { padding-top: 0; }
.hiring__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--cream-deep);
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 56px);
}
.hiring__img { margin: 0; }
.hiring__img img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  rotate: -2deg;
}
.hiring__copy h2 { margin-bottom: 16px; }
.hiring__copy p { color: var(--cocoa-soft); max-width: 44ch; margin-bottom: 26px; }

/* ── Visit ─────────────────────────────────────────────── */

.visit__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.visit h2 { margin-bottom: 22px; }
.visit address {
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}
.visit address a { color: var(--pink); font-weight: 800; text-underline-offset: 3px; }

.hours { margin: 30px 0; max-width: 460px; }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(51, 32, 26, .22);
}
.hours__row span { font-weight: 600; }
.hours__row b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.hours__row b i { font-style: normal; font-size: .58em; }
.hours__note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--matcha);
}
.hours__note[data-state="closed"] { color: var(--pink); }

.visit__card {
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #ffdfe9, var(--ube-soft) 62%, #fdeec4);
  box-shadow: var(--shadow-md);
}
.visit__pin { width: 46px; height: 46px; color: var(--pink); margin-bottom: 18px; }
.visit__card h3 { margin-bottom: 14px; }
.visit__card p { color: #5c4239; }
.visit__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.visit__list li {
  position: relative;
  padding-left: 26px;
  font-weight: 700;
  font-size: 15px;
}
.visit__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 3px solid var(--pink);
}

/* ── Footer ────────────────────────────────────────────── */

.site-foot {
  background: #24140f;
  color: #e6d5c9;
  padding: clamp(44px, 5vw, 68px) 0 30px;
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 246, 234, .14);
}
.foot__mark {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  color: var(--pink-glow);
  margin: 0 0 8px;
}
.foot__tag { margin: 0; color: rgba(230, 213, 201, .7); font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot__links a {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.foot__links a:hover { color: #fff; border-color: var(--pink-glow); }

.foot__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(230, 213, 201, .55);
}

/* ── Scroll reveal ─────────────────────────────────────── */

/* Only hide when JS is present to un-hide it — no-JS visitors see everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .8, .3, 1) var(--d, 0ms),
              transform .7s cubic-bezier(.2, .8, .3, 1) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav { display: none; }
  /* the burger has to arrive exactly where the inline nav leaves,
     or 901–1080px has no navigation at all */
  .burger { display: block; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }

  .head-cta .btn--ghost { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__shot { rotate: 0deg; order: -1; }
  .hero__shot img { aspect-ratio: 5 / 4; }
  .sticker--box { width: 116px; height: 116px; left: auto; right: -8px; bottom: -20px; padding: 12px; }
  .sticker { font-size: 9.5px; }
  .sticker strong { font-size: 14px; }

  .sec-head { grid-template-columns: 1fr; }
  .sec-head__note { padding-bottom: 0; }

  .case-grid { grid-template-columns: 1fr 1fr; }
  .tile--tall { grid-row: span 1; }
  .tile--tall img { aspect-ratio: 4 / 5; }
  .tile--flavors { grid-column: span 2; }

  .feature { grid-template-columns: 1fr; }
  .feature__img img { min-height: 320px; }

  .menu-grid { grid-template-columns: 1fr; }

  .hiring__grid { grid-template-columns: 1fr; }
  .hiring__img { max-width: 300px; }

  .visit__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .head-cta .btn--pink { padding: 11px 16px; font-size: 14px; }
  .head-cta .btn--pink svg { display: none; }

  .hero__facts { gap: 16px 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .tile--flavors { grid-column: span 1; }
  .flavor-list { columns: 1; }
  .marquee span { font-size: 19px; }
  .foot__grid { flex-direction: column; }
}

@media (max-width: 380px) {
  .wordmark__text small { display: none; }
}

/* ── Motion & print ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media print {
  .site-head, .marquee, .alert, .hero__glow { display: none; }
  body { background: #fff; }
}
