:root {
  --flour: #f6f0e6;
  --dough: #ece1cd;
  --dough-deep: #e0d0b4;
  --crust: #9a5b2a;
  --crust-deep: #5b3417;
  --ink: #2a221b;
  --muted: #7a6b5b;
  --line: rgba(42, 34, 27, 0.16);
  --accent: #b5552b;
  --espresso: #241b15;
  --espresso-2: #2f241c;
  --cream-on-dark: #f1e6d3;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-h: 100svh;
  --page-inset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--flour);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-variant-ligatures: no-common-ligatures;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crust);
  margin: 0 0 1rem;
  font-weight: 500;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(246, 240, 230, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 1.6rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.5vw, 32px);
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--flour);
}

.nav-toggle,
.mobile-menu {
  display: none;
}

.nav-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span {
  top: 16px;
}

.nav-toggle span::before {
  content: "";
  top: 6px;
}

.nav.menu-open .nav-toggle span {
  transform: translateY(3px) rotate(45deg);
}

.nav.menu-open .nav-toggle span::before {
  transform: translateY(-6px) rotate(-90deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--gutter);
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  background: var(--flour);
  border: 1px solid var(--ink);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
}

.nav.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
}

.mobile-menu a:active {
  background: var(--ink);
  color: var(--flour);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--flour);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--crust-deep);
  border-color: var(--crust-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--flour);
  border-color: var(--ink);
}

/* ---------- hero ---------- */

.intro {
  display: flex;
  flex-direction: column;
  height: var(--page-h);
  padding-bottom: var(--page-inset);
  /* The spinning stamp pokes past the edge; mobile browsers would otherwise re-zoom the page as it turns. */
  overflow-x: clip;
}

.hero {
  flex: 1;
  min-height: 0;
  width: 100%;
  container-type: size;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) 80px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* Set per element by site.js; not inheriting keeps each scroll update from restyling their children. */
@property --hp {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1;
  font-weight: 350;
  font-variation-settings: "opsz" 144;
}

.hero-title em {
  font-style: italic;
  color: var(--crust);
}

.hero-intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 1.6rem 0 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  container-type: size;
  height: 100%;
  display: grid;
  place-items: center;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  width: min(100cqw, 100cqh, 560px);
}

.plate {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fbf7ef 0%, var(--dough) 60%, var(--dough-deep) 100%);
  box-shadow: inset 0 -20px 40px rgba(91, 52, 23, 0.1), 0 30px 60px -30px rgba(91, 52, 23, 0.35);
}

.hero-photo {
  position: absolute;
  inset: 12%;
  transform: rotate(calc(var(--hp) * 35deg)) scale(calc(1 - var(--hp) * 0.12));
  will-change: transform;
  filter: drop-shadow(0 24px 30px rgba(60, 30, 10, 0.25));
}

/* WebKit rasterizes SVG filters at CSS-pixel resolution, ignoring devicePixelRatio, so the
   image is laid out 3x larger and scaled back down to stay sharp on phones. The drop-shadow
   stays on .hero-photo: WebKit stops painting a filter this large on the upscaled image. */
#heroImage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  max-width: none;
  margin: -150%;
  object-fit: contain;
  transform: scale(calc(1 / 3));
}

/* A sized image draws its alt text while still loading. */
#heroImage:not(.is-loaded) {
  visibility: hidden;
}

@supports (animation-timeline: scroll()) {
  .hero-photo {
    animation: hero-turn linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }

  .hero-steam {
    animation: fade-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0 40vh;
  }

  .scroll-cue {
    animation: fade-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0 25vh;
  }
}

@keyframes hero-turn {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(35deg) scale(0.88);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.hero-steam {
  position: absolute;
  left: 18%;
  top: -30%;
  width: 64%;
  height: 84%;
  pointer-events: none;
  opacity: calc(1 - var(--hp) * 2.5);
  will-change: opacity;
}

.steam-defs {
  position: absolute;
}

.hero-steam .wisp {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 50% 88%;
  will-change: transform, opacity;
  animation: steam-rise 6.5s ease-out infinite;
}

.hero-steam .wisp svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-steam .wisp path {
  fill: none;
  stroke: url(#steamFade);
  stroke-width: 16;
  stroke-linecap: round;
}

.hero-steam .wisp.thin path {
  stroke-width: 10;
}

.hero-steam .wisp:nth-child(2) {
  transform-origin: 35% 88%;
}

.hero-steam .wisp:nth-child(3) {
  animation-duration: 7.5s;
  animation-delay: -2.2s;
}

.hero-steam .wisp:nth-child(4) {
  transform-origin: 65% 88%;
  animation-duration: 6.8s;
  animation-delay: -4.1s;
}

.hero-steam .wisp:nth-child(5) {
  transform-origin: 44% 88%;
  animation-duration: 5.6s;
  animation-delay: -1.1s;
}

.hero-steam .wisp:nth-child(6) {
  transform-origin: 57% 88%;
  animation-duration: 6.1s;
  animation-delay: -3.3s;
}

@keyframes steam-rise {
  0% {
    opacity: 0;
    transform: translateY(8%) scale(0.7, 0.6);
  }
  25% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateY(-23%) scale(1.5, 1.1);
  }
}

.hero-away .hero-steam {
  visibility: hidden;
}

.hero-away .hero-steam .wisp,
.hero-away .hero-stamp,
.hero-away .scroll-cue span {
  animation-play-state: paused;
}

.hero-stamp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: spin 40s linear infinite;
  fill: var(--crust-deep);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-transform: uppercase;
}

.hero-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  transform: translateX(-50%);
  opacity: calc(1 - var(--hp) * 4);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--dough);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  white-space: nowrap;
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
}

.ticker-track span::after {
  content: "✺";
  font-style: normal;
  font-size: 0.8em;
  color: var(--accent);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- product stories (one page each, phases set by site.js) ---------- */

/* Off-screen stories are skipped entirely; otherwise every animated frame re-layerizes all of their layers. */
.story {
  content-visibility: auto;
  contain-intrinsic-size: auto var(--page-h);
  position: relative;
  --s: 0;
  --sp: calc(var(--s) / var(--steps));
}

.story:nth-child(even) {
  background: var(--dough);
}

.story-stage {
  position: relative;
  height: var(--page-h);
  overflow: hidden;
  --fig: min(calc((var(--page-h) - var(--page-inset)) * 0.46), 34vw);
}

.story-word {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--serif);
  font-size: clamp(6rem, 19vw, 20rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(154, 91, 42, 0.22);
  transform: translate(calc(-50% + (0.5 - var(--sp)) * 40vw), -50%);
  transition: transform 1.4s var(--ease);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.story-head {
  position: absolute;
  top: max(90px, 11vh);
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 var(--gutter);
}

.story-head .eyebrow {
  margin-bottom: 0.5rem;
}

.story-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
}

.story-figure {
  position: absolute;
  left: 50%;
  top: 53%;
  width: var(--fig);
  height: var(--fig);
  margin: 0;
  transform: translate(-50%, -50%);
}

.story-disc {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-figure .plate {
  inset: -6%;
  transform: scale(calc(0.9 + var(--sp) * 0.1));
  transition: transform 1.1s var(--ease);
}

.story-figure img,
.story-art {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(calc(0.88 + var(--sp) * 0.14));
  transition: transform 1.1s var(--ease);
  will-change: transform;
}

.story-figure img {
  filter: drop-shadow(0 26px 30px rgba(60, 30, 10, 0.28));
}

/* A drop-shadow here would be re-blurred on every frame while the pieces assemble; a painted gradient is not. */
.story-art {
  background: radial-gradient(closest-side, rgba(60, 30, 10, 0.3), rgba(60, 30, 10, 0.12) 65%, transparent) 50% 64% / 90% 84% no-repeat;
}

.story-figure img.is-photo {
  border-radius: 50%;
  object-fit: cover;
}

.callout {
  position: absolute;
  width: min(260px, 24vw);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.callout.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.callout.left {
  right: calc(50% + var(--fig) / 2 + 5rem);
  text-align: right;
}

.callout.right {
  left: calc(50% + var(--fig) / 2 + 5rem);
}

.callout.row-0 { top: 30%; }
.callout.row-1 { top: 50%; }
.callout.row-2 { top: 70%; }
.callout.right.row-0 { top: 36%; }
.callout.right.row-1 { top: 56%; }
.callout.right.row-2 { top: 76%; }

.callout h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.35rem;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.callout-line {
  position: absolute;
  top: 1.6rem;
  width: 4.2rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.9s 0.15s var(--ease);
}

.callout-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(181, 85, 43, 0.18);
}

.callout.left .callout-line {
  left: calc(100% + 0.8rem);
  transform-origin: left;
}

.callout.left .callout-line::after {
  right: -4px;
}

.callout.right .callout-line {
  right: calc(100% + 0.8rem);
  transform-origin: right;
}

.callout.right .callout-line::after {
  left: -4px;
}

.callout.is-visible .callout-line {
  transform: scaleX(1);
}

.story-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(max(28px, 5vh) + var(--page-inset));
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1.4rem;
  padding: 0 var(--gutter);
  text-align: center;
}

.story-foot p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-tag {
  font-family: var(--serif);
  font-size: 1.5rem;
  white-space: nowrap;
}

.price-tag small {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 6px;
}

.story-progress {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-progress i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  transition: background 0.3s;
}

.story-progress i.on {
  background: var(--ink);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1;
}

/* ---------- bakes grid ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.tab {
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.tab:hover {
  border-color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--flour);
  border-color: var(--ink);
}

.category-description {
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  min-height: 1.8em;
  margin: 0 0 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 1240px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  animation: card-in 0.7s var(--ease) both;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(91, 52, 23, 0.4);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 18px;
}

.card-media .plate {
  inset: 4%;
}

.card-media img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
  filter: drop-shadow(0 16px 18px rgba(60, 30, 10, 0.22));
}

.card-media img.is-photo {
  inset: 4%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  object-fit: cover;
}

.card:hover .card-media img {
  transform: rotate(-8deg) scale(1.04);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card .price-tag {
  font-size: 1.2rem;
}

.card-unit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 10px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
  white-space: pre-line;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 13px;
  background: var(--dough);
  color: var(--crust-deep);
  overflow-wrap: anywhere;
}

.badge-out {
  position: absolute;
  top: 6%;
  left: 0;
  background: var(--ink);
  color: var(--flour);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card.is-linked {
  scroll-margin-top: 96px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 85, 43, 0.25), 0 30px 50px -30px rgba(91, 52, 23, 0.4);
}

.card.is-out .card-media img {
  filter: grayscale(0.6) opacity(0.7);
}

/* ---------- menu ---------- */

.menu {
  background: var(--espresso);
  color: var(--cream-on-dark);
  position: relative;
}

.menu .eyebrow {
  color: #d9a26c;
}

.menu-board {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(40px, 5vw, 72px);
}

.menu-category h3 {
  font-size: 1.8rem;
  font-style: italic;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(241, 230, 211, 0.2);
}

.menu-item {
  margin-bottom: 18px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(241, 230, 211, 0.35);
  transform: translateY(-4px);
  min-width: 20px;
}

.menu-price {
  font-family: var(--serif);
  font-size: 1.15rem;
  white-space: nowrap;
}

.menu-unit {
  font-size: 0.8rem;
  color: rgba(241, 230, 211, 0.55);
}

.menu-item.is-out .menu-name,
.menu-item.is-out .menu-price {
  text-decoration: line-through;
  opacity: 0.5;
}

.menu-out {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(241, 230, 211, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
}

.menu-note {
  text-align: center;
  margin: clamp(40px, 6vw, 72px) auto 0;
  color: rgba(241, 230, 211, 0.6);
  font-style: italic;
  font-family: var(--serif);
  max-width: 40rem;
}

.cart-delivery[hidden] {
  display: none;
}

.cart-delivery {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.75;
}

/* ---------- about ---------- */

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  line-height: 1.35;
  font-weight: 350;
  margin: 0;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 28px;
  background: var(--dough);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: block;
  height: 2.4rem;
  width: auto;
  margin: 0 0 16px;
}

.footer-muted {
  color: var(--muted);
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-contact a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.footer-contact a:hover {
  border-color: var(--ink);
}

.footer-small {
  max-width: 1240px;
  margin: 48px auto 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- cart ---------- */

.nav-end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.cart-toggle:hover {
  background: var(--ink);
  color: var(--flour);
}

.cart-toggle svg,
.cart-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-toggle::after,
.menu-add::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--flour);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.cart-count.bump {
  animation: cart-bump 0.4s var(--ease);
}

@keyframes cart-bump {
  40% {
    transform: scale(1.35);
  }
}

.add-btn {
  font: inherit;
  font-size: 0.88rem;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.add-btn:hover,
.add-btn.is-added {
  background: var(--ink);
  color: var(--flour);
}

.add-btn.is-added {
  background: var(--crust);
  border-color: var(--crust);
}

.card-add {
  align-self: flex-start;
  margin-top: 18px;
}

.share-btn {
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.3s, background 0.3s;
}

.share-btn svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.share-btn:hover,
.share-btn:focus-visible,
.share-btn.is-copied {
  opacity: 1;
  background: var(--dough);
}

.share-btn::after {
  content: "Link kopyalandı";
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--flour);
  font: 500 0.75rem var(--sans);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.share-btn.is-copied::after {
  opacity: 1;
  transform: none;
}

.story-add {
  align-self: center;
}

.menu-add {
  position: relative;
  align-self: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(241, 230, 211, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--cream-on-dark);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.menu-add:hover,
.menu-add.is-added {
  background: var(--cream-on-dark);
  border-color: var(--cream-on-dark);
  color: var(--espresso);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(36, 27, 21, 0.4);
  animation: cart-fade 0.3s ease both;
}

.cart-backdrop[hidden] {
  display: none;
}

@keyframes cart-fade {
  from {
    opacity: 0;
  }
}

body.cart-open {
  overflow: hidden;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--flour);
  box-shadow: -30px 0 60px -30px rgba(36, 27, 21, 0.45);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s 0.45s;
}

body.cart-open .cart {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.8rem;
  font-style: italic;
}

.cart-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cart-close:hover {
  border-color: var(--ink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--gutter);
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dough);
}

.cart-thumb img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-thumb img.is-photo {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cart-info h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.cart-unit {
  margin: 2px 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}

.qty button:hover:not(:disabled) {
  background: var(--dough);
}

.qty button:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty span {
  min-width: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-subtotal {
  font-family: var(--serif);
  font-size: 1.1rem;
  white-space: nowrap;
}

.cart-remove,
.cart-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-remove:hover,
.cart-clear:hover {
  color: var(--accent);
}

.cart-closing {
  margin: 20px 0 12px;
  padding: 0;
  border: 0;
}

.cart-closing legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.closing-option {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.closing-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.closing-option span {
  display: block;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.closing-option:hover span {
  border-color: var(--crust);
}

.closing-option input:checked + span {
  border-color: var(--accent);
  background: var(--dough);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.closing-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.cart-empty p {
  margin: 0;
}

.cart-empty .btn {
  font-family: var(--sans);
  font-style: normal;
}

.cart-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--dough);
}

.cart-foot[hidden] {
  display: none;
}

.cart-discounts {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
}

.cart-discounts[hidden] {
  display: none;
}

.cart-discount-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-discount-row.is-discount {
  color: var(--ink);
  font-weight: 500;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-checkout {
  justify-content: center;
  font: inherit;
  cursor: pointer;
}

.cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cart-clear {
  align-self: center;
}

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--flour);
  box-shadow: 0 14px 28px -12px rgba(91, 52, 23, 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--crust-deep);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.load-error {
  text-align: center;
  padding: 40px;
  color: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* Phone displays render the desktop tone near-white, so small screens get a deeper flour. */
  :root {
    --flour: #efe5d3;
  }

  body {
    position: relative;
  }

  /* iOS Safari tints the status bar from the topmost fixed element; a transparent full-screen overlay would win over the nav. */
  body::before {
    position: absolute;
    mix-blend-mode: normal;
    opacity: 0.08;
  }

  .nav,
  .nav.scrolled {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 12px;
    background: var(--flour);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
    transition: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: calc(76px + env(safe-area-inset-top));
    padding-bottom: 76px;
    text-align: center;
  }

  .hero .eyebrow {
    margin-bottom: 0.6rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-intro {
    font-size: 0.95rem;
    margin: 0.8rem auto 1.2rem;
  }

  .hero-actions {
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
  }

  .hero-actions .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .hero-art {
    grid-row: 1;
  }

  .hero-visual {
    width: min(100%, 380px);
    width: min(100cqw, 100cqh, 380px);
  }

  .story-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: calc(76px + env(safe-area-inset-top)) var(--gutter) calc(max(20px, 3vh) + var(--page-inset));
  }

  .story-head,
  .story-foot {
    position: static;
    padding: 0;
  }

  .story-head {
    position: relative;
    top: auto;
    z-index: 1;
  }

  .story-figure {
    position: relative;
    left: auto;
    top: auto;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: auto;
    transform: none;
    container-type: size;
    display: grid;
    place-items: center;
  }

  /* The plate overhangs the disc by 6% on each side, so it must fit inside the figure's height too. */
  .story-disc {
    width: min(100cqw, 100cqh / 1.12, 380px);
    height: min(100cqw, 100cqh / 1.12, 380px);
  }

  .callouts {
    display: grid;
    text-align: center;
  }

  .callout,
  .callout.left,
  .callout.right {
    position: static;
    grid-area: 1 / 1;
    width: auto;
    text-align: center;
  }

  .callout.is-visible:not(.is-current) {
    opacity: 0;
    transform: translateY(-16px);
  }

  .callout-line {
    display: none;
  }

  .story-foot p {
    display: none;
  }

  /* Keeps the add button clear of the back-to-top button in the bottom-right corner. */
  .story-foot {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 16px;
    padding-right: 64px;
    text-align: left;
  }

  .story-progress {
    right: 12px;
  }
}

@media (max-width: 900px) {
  @container (max-height: 600px) {
    .hero-intro {
      display: none;
    }
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
