:root {
  --header-height: 64px;
  --butter: #e5d39a;
  --cream: #f8f1e4;
  --ink: #382f28;
  --line: #bfb18e;
  --type: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.25 var(--type);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul, figure, fieldset { margin: 0; }
body { min-width: 280px; }
a, button, input { color: inherit; }
a { text-decoration: none; }
input, textarea, select { font-family: inherit; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #78402b; outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { background: white; position: absolute; z-index: 2; padding: 12px; }
.site-header, .opening, footer { background: var(--butter); }
.site-header { display: grid; grid-template-columns: minmax(44px,1fr) auto minmax(44px,1fr); align-items: center; min-height: var(--header-height); padding: 0 32px; }
.site-header button, .site-header a, .label, .side { font-weight: 600; text-transform: uppercase; font-size: 13px; }
.site-header button, .site-header a { display: grid; min-height: 44px; min-width: 54px; place-items: center; justify-self: start; font-size: 14px; }
.site-header a { justify-self: end; }
.site-header #open-menu { text-transform: none; }
.site-header .wordmark { justify-self: center; }
.wordmark img { display: block; width: 196px; height: auto; }
h1 { text-align: center; font: 400 28px/34px var(--type); }
.opening {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-rows: 1fr auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hero { position: relative; min-height: 240px; display: grid; place-items: center; }
.identity { margin-top: 36px; text-align: center; }
.identity img { display: block; margin: auto; }
.motto { position: relative; margin-top: -18px; display: flex; height: 50px; gap: 9px; align-items: center; justify-content: center; font: 36px/44px var(--type); }
.motto span:first-child { transform: rotate(-12deg); }
.motto span:nth-child(2) { transform: translateY(-8px) rotate(-5deg); }
.motto span:nth-child(3) { transform: translateY(-8px) rotate(5deg); }
.motto span:last-child { transform: rotate(12deg); }
.side { position: absolute; top: calc(50% + 10px); }
.left { left: 6.4%; } .right { right: 6.4%; }
.scroll { min-height: 76px; display: grid; align-content: center; width: fit-content; margin: auto; padding: 12px 12px 18px; text-align: center; font: 13px/16px var(--type); }
.mobile-intro, .floating-order { display: none; }
.welcome, .social, .club, .description { display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome { min-height: 320px; justify-content: center; padding: 52px 24px; gap: 20px; }
.welcome h1 { font: 600 clamp(26px, 2.6vw, 34px)/1.12 var(--type); text-transform: uppercase; letter-spacing: -.035em; }
.label { font-size: 14px; line-height: 18px; }
h2 { font-size: 36px; line-height: 1.1; font-weight: 600; text-transform: uppercase; max-width: 830px; }
.pill { display: inline-block; border: 1px solid var(--ink); border-radius: 30px; box-shadow: 3px 4px var(--ink); background: var(--cream); padding: 13px 30px; font: 600 13px/16px var(--type); letter-spacing: .06em; text-transform: uppercase; }
.bake, .social, .club, footer, .signoff { border-top: 1px solid var(--line); }
.bake { padding: 68px max(calc((100% - 1004px)/2), 6vw); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.gallery { width: 380px; max-width: 100%; }
.stack { position: relative; width: 94%; max-width: 356px; aspect-ratio: 356/390; margin-bottom: 26px; }
.stack::before, .stack::after, .plate { position: absolute; inset: 0; border: 1px solid var(--ink); border-radius: 12px; }
.stack::before, .stack::after { content: ''; transform-origin: top left; }
.stack::before { background: #c9b478; transform: translate(20px,12px) rotate(4deg); }
.stack::after { background: #ebdfba; transform: translate(10px,6px) rotate(2deg); }
.plate { z-index: 1; background: white; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 12px; overflow: hidden; }
.plate-photo { position: relative; width: 330px; max-width: 100%; aspect-ratio: 330 / 340; overflow: hidden; }
.plate-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { font: 12px/16px var(--type); text-align: center; }
.controls { display: flex; width: 94%; max-width: 356px; justify-content: center; gap: 8px; }
.controls button { width: 44px; height: 44px; border: 1px solid; border-radius: 50%; font: 24px/1 var(--type); }
.description { width: min(360px, 40%); gap: 40px; }
.description p { max-width: 348px; text-transform: uppercase; font: 600 16px/20px var(--type); }
.description .pill {
  padding-inline: 24px;
  color: #342d23;
  background: #f8f2e6;
  font-family: var(--type);
  box-shadow: 2px 3px currentColor;
}
.social { padding: 42px 32px 36px; gap: 22px; }
.social h2 { font-size: 26px; line-height: 32px; font-weight: 400; }
.handle { font: 15px/18px var(--type); }
.feed { display: flex; gap: 14px; width: min(100%,1198px); overflow-x: auto; scroll-snap-type: x proximity; list-style: none; padding: 0; }
.feed li { flex: 1 0 145px; min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #a4936c; border-radius: 10px; background: var(--butter); }
.feed img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: white; }
.feed li div { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 86px; gap: 8px; padding: 8px; font-size: 14px; line-height: 18px; font-weight: 600; }
.feed small { font: 14px/18px var(--type); }
.club { padding: 90px 32px 76px; gap: 44px; }
.club h2 { max-width: 820px; font-size: 35px; line-height: 41px; }
.club form { width: min(100%,490px); position: relative; }
.club fieldset { padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; justify-items: center; }
.club fieldset label, .club input { width: 100%; }
.club input { border: 1px solid var(--ink); border-radius: 32px; background: transparent; font: 16px/20px var(--type); padding: 15px 25px; }
.club input::placeholder { color: var(--ink); opacity: 1; }
.club input:disabled { opacity: 1; }
#signup-status:not(:empty) { margin-top: 14px; font: 13px/18px var(--type); }
.club { padding-bottom: 44px; }
.details { max-width: 1116px; min-height: 178px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); text-align: center; align-items: center; text-transform: uppercase; }
.details h2 { font-size: 22px; line-height: 28px; font-weight: 400; }
.details p { font-size: 13px; line-height: 18px; margin-top: 12px; }
.details p + p { margin-top: 18px; }
.signoff { height: 161px; display: flex; align-items: center; justify-content: center; }
dialog { font-family: var(--type); color: var(--ink); background: var(--cream); border: 0; border-radius: 0 9px 9px 0; margin: 0; padding: 25px 24px; width: min(410px,90vw); max-height: none; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(56 47 40 / .24); }
dialog { flex-direction: column; align-items: start; }
dialog[open] { display: flex; }
body:has(dialog[open]) { overflow: hidden; }
dialog button, dialog nav { text-transform: uppercase; font-weight: 600; }
dialog button { letter-spacing: .08em; font-size: 14px; min-height: 44px; }
dialog nav { margin: 35px 0 auto; display: grid; gap: 8px; font-size: 34px; line-height: 42px; }
dialog a:hover, .site-header a:hover, .site-header button:hover { text-decoration: underline; }
dialog nav a { min-height: 44px; }
dialog [aria-current="page"], .details a { text-decoration: underline; text-underline-offset: .18em; }
dialog .instagram { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-top: 20px; }
.details section { padding-inline: 16px; }
.details a { display: inline-block; padding-block: 6px; }

@media (max-width: 760px) {
  :root { --header-height: 56px; }
  .site-header { padding-inline: 16px; }
  .wordmark img { width: min(45.4vw,177px); }
  h1 { font-size: clamp(17px, 3.6vw, 25px); line-height: 1.1; }
  .site-header a, .site-header button { font-size: 13px; }
  .opening, .welcome .label, .desktop-intro { display: none; }
  .welcome {
    display: grid;
    justify-content: stretch;
    min-height: 0;
    padding: 0 0 28px;
    gap: 10px;
    text-align: left;
    background: #f6e9c5;
  }
  .welcome::before {
    content: "";
    display: block;
    height: clamp(175px, min(72.3vw, 39svh), 340px);
    background: url('/assets/home/bun-spread.webp') center bottom / cover no-repeat;
  }
  .mobile-intro { display: block; }
  .welcome h1, .welcome p { margin-inline: clamp(18px, 5.6vw, 32px); }
  .welcome h1 { font-size: clamp(36px, 10.3vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; text-align: left; text-transform: none; }
  .welcome p { font-size: 16px; line-height: 1.45; }
  .hero-order {
    justify-self: start;
    margin: 6px clamp(18px, 5.6vw, 32px) 0;
    min-height: 46px;
    padding: 13px 26px;
    background: var(--ink);
    color: white;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
  }
  .floating-order:not([hidden]) {
    position: fixed;
    z-index: 3;
    inset-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    max-width: 440px;
    min-height: 48px;
    margin-inline: auto;
    padding: 10px 20px;
    border-radius: 100px;
    color: #fff;
    background: var(--ink);
    font-weight: 700;
    box-shadow: 0 2px 12px #382f2826;
  }
  #home footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html:has(.floating-order) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  #home:has(dialog[open], input:focus, textarea:focus) .floating-order { display: none; }
  .club { padding: 60px 22px; }
  h2, .club h2 { font-size: clamp(25px, 5vw, 33px); line-height: 1.12; }
  .bake { padding: 28px 24px 50px; flex-direction: column; gap: 48px; }
  .gallery { width: min(100%,360px); }
  .stack { aspect-ratio: auto; }
  .plate { position: relative; grid-template-columns: minmax(0, 1fr); }
  .plate-photo { width: 100%; }
  .description { width: 100%; gap: 20px; }
  .social { padding: 40px 0; }
  .feed { padding-inline: 20px; }
  .feed li { flex: 0 0 174px; }
  .details { padding: 36px 0; grid-template-columns: 1fr; gap: 32px; }
  .details a { min-height: 44px; padding-block: 13px; }
  .details p + p { margin-top: 6px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  dialog { padding-block: 8px max(8px, env(safe-area-inset-bottom)); }
  dialog nav { margin-top: 8px; gap: 0; }
  dialog > * { flex-shrink: 0; }
  dialog .instagram { margin-top: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .identity { animation: arrive 500ms ease-out both; }
  .motto { animation: arrive 400ms 90ms ease-out backwards; }

  #menu-dialog {
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 150ms cubic-bezier(.4, 0, 1, 1),
      display 150ms allow-discrete, overlay 150ms allow-discrete;
  }
  #menu-dialog[open] {
    transform: translateX(0);
    pointer-events: auto;
    transition: transform 240ms cubic-bezier(.2, .75, .25, 1),
      display 240ms allow-discrete, overlay 240ms allow-discrete;
  }
  #menu-dialog::backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease-out, display 150ms allow-discrete, overlay 150ms allow-discrete;
  }
  #menu-dialog[open]::backdrop { opacity: 1; pointer-events: auto; }
  @starting-style {
    #menu-dialog[open] { transform: translateX(-100%); }
    #menu-dialog[open]::backdrop { opacity: 0; }
  }

  dialog[open] nav a { animation: arrive 240ms ease-out backwards; }
  dialog nav a:nth-child(2) { animation-delay: 20ms; }
  dialog nav a:nth-child(3) { animation-delay: 40ms; }
  dialog nav a:nth-child(4) { animation-delay: 60ms; }
  dialog nav a:nth-child(5) { animation-delay: 80ms; }
  dialog nav a:nth-child(6) { animation-delay: 100ms; }
}
@keyframes arrive {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

.club .email-consent { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; }
.club .email-consent input { width: 18px; height: 18px; padding: 0; accent-color: var(--ink); }
.club h2 a:hover { text-decoration: underline; }
.plain-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 10px; }
.plain-menu a { padding: 8px; text-decoration: underline; }

/* On a storefront link, let the old page remain visible beneath the new one. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: bakery-header; }

  ::view-transition-group(*) {
    animation-duration: 210ms;
    animation-timing-function: cubic-bezier(.2,.7,.25,1);
  }
  ::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: bakery-page-in 210ms cubic-bezier(.2,.7,.25,1) both;
  }
  ::view-transition-old(bakery-header) { animation: none; }
  ::view-transition-new(bakery-header) { mix-blend-mode: normal; }

  html[data-page-arrival] main { animation: bakery-content-in 180ms ease-out; }
}
@keyframes bakery-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bakery-content-in {
  from { opacity: .72; }
  to { opacity: 1; }
}
