/* Kettle & Crumb Bakehouse (fictional): "playful poster + collage" concept.
   Centered poster hero, pill nav, marquee bands, taped polaroid menu, full-bleed order band.
   Fonts: Fraunces (soft, wonky display) + Figtree. */
:root {
  --butter: #ffd23f;
  --tomato: #c2321c;
  --tomato-hi: #e0442b;
  --choc: #3b1d12;
  --choc-2: #6b3a28;
  --cream: #fff4dc;
  --paper: #fffdf7;
  --frost: #ffd9cf;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--butter); color: var(--choc); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; line-height: 1; margin: 0; }
p { margin: 0; text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
a { color: var(--tomato); }
:focus-visible { outline: 3px solid var(--choc); outline-offset: 3px; border-radius: 6px; }
.kc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kc-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; position: relative; }
.kc-kicker { font: 800 0.85rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.9rem; }
.kc-sub { max-width: 34rem; margin: 1rem auto 0; color: var(--choc-2); }

/* ---------- Logo + pill nav ---------- */
.kc-head { text-align: center; padding: 1.6rem 1rem 0.9rem; }
.kc-logo { display: inline-grid; justify-items: center; gap: 0.35rem; color: var(--choc); text-decoration: none; }
.kc-logo-mark { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--tomato); color: var(--cream); display: grid; place-items: center; border: 3px solid var(--choc); box-shadow: 3px 3px 0 var(--choc); }
.kc-logo-mark svg { width: 2.1rem; height: 2.1rem; }
.kc-logo-name { font: 800 clamp(1.7rem, 5vw, 2.2rem)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.01em; }
.kc-logo-name .amp, .kc-foot-mark .amp { font-style: italic; color: var(--tomato); }
.kc-logo-sub { font: 800 0.72rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.22em; }

.kc-nav { position: sticky; top: 0.6rem; z-index: 20; display: flex; justify-content: center; padding: 0 0.75rem; pointer-events: none; }
.kc-nav ul { pointer-events: auto; list-style: none; margin: 0; padding: 0.3rem; display: flex; gap: 0.15rem; background: var(--choc); border-radius: 999px; box-shadow: 0 8px 22px rgba(59, 29, 18, 0.28); }
.kc-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; color: var(--cream); font-weight: 800; font-size: 0.98rem; text-decoration: none; }
.kc-nav a:hover { background: rgba(255, 244, 220, 0.14); }
.kc-nav a:focus-visible { outline-color: var(--butter); outline-offset: 1px; }
.kc-nav a.kc-nav-cta { background: var(--butter); color: var(--choc); }
.kc-nav a.kc-nav-cta:hover { background: var(--cream); }

/* ---------- Poster hero ---------- */
.kc-hero {
  position: relative;
  padding: 1.5rem 1rem 3rem;
  background-image: radial-gradient(rgba(59, 29, 18, 0.13) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
}
.kc-poster { position: relative; max-width: 68rem; margin: 0 auto; padding: 8.5rem 0 6.5rem; text-align: center; }
.kc-open { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--choc); color: var(--cream); font-weight: 800; font-size: 0.95rem; padding: 0.45rem 1rem; border-radius: 999px; transform: rotate(-2deg); }
.kc-open .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #7fd36b; box-shadow: 0 0 0 3px rgba(127, 211, 107, 0.35); }
.kc-hero h1 { position: relative; z-index: 2; margin: 1.4rem 0 1.5rem; font-weight: 900; font-size: clamp(3.1rem, 11.5vw, 8.4rem); line-height: 0.88; letter-spacing: -0.035em; }
.kc-hero h1 span { display: block; }
.kc-hero h1 .l2 { color: var(--tomato); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.12em; letter-spacing: -0.04em; padding-right: 0.08em; }
.kc-lead { position: relative; z-index: 2; max-width: 33rem; margin: 0 auto; font-size: 1.15rem; font-weight: 600; }
.kc-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.8rem; }

.kc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0.7rem 1.5rem; border-radius: 999px; border: 3px solid var(--choc); background: var(--tomato); color: var(--cream); font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 4px 4px 0 var(--choc); transition: transform 0.15s, box-shadow 0.15s; }
.kc-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--choc); color: var(--cream); }
.kc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--choc); }
.kc-btn.alt { background: var(--cream); color: var(--choc); }
.kc-btn.butter { background: var(--butter); color: var(--choc); }

/* floating hand-drawn pastries */
.kc-float { position: absolute; z-index: 1; width: 6.5rem; height: auto; filter: drop-shadow(3px 4px 0 rgba(59, 29, 18, 0.18)); animation: kc-bob 6s ease-in-out infinite; }
.kc-f1 { left: 0; top: 1.5rem; width: 7.5rem; --r: -14deg; }
.kc-f2 { right: 6.8rem; top: 0.6rem; width: 5.6rem; --r: 8deg; animation-delay: -2s; }
.kc-f3 { left: 0.5rem; bottom: 0.8rem; width: 7.5rem; --r: 10deg; animation-delay: -1s; }
.kc-f4 { right: 0.5rem; bottom: 1rem; width: 6.2rem; --r: -8deg; animation-delay: -3s; }
.kc-f5 { display: none; --r: 12deg; animation-delay: -4s; }
.kc-spk { position: absolute; z-index: 1; width: 2.2rem; color: var(--tomato); animation: kc-twinkle 3.2s ease-in-out infinite; }
.kc-s1 { left: 42%; top: 1.6rem; }
.kc-s2 { right: 34%; bottom: 2.6rem; width: 1.6rem; animation-delay: -1.2s; color: var(--choc); }
.kc-s3 { left: 30%; bottom: 4.8rem; width: 1.3rem; animation-delay: -2s; }
@keyframes kc-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 4deg)); } }
@keyframes kc-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(0.7) rotate(20deg); } }

/* rotating stamp */
.kc-stamp { position: absolute; z-index: 3; right: -0.25rem; top: -0.4rem; width: 6.6rem; height: 6.6rem; }
.kc-stamp-ring { width: 100%; height: 100%; animation: kc-spin 18s linear infinite; filter: drop-shadow(3px 3px 0 var(--choc)); }
.kc-stamp-text { font: 800 15px/1 var(--body); letter-spacing: 0.06em; }
.kc-stamp-mid { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; color: var(--cream); }
@keyframes kc-spin { to { transform: rotate(360deg); } }

/* ---------- Marquee bands ---------- */
.kc-bands { position: relative; overflow: hidden; overflow: clip; padding: 2.4rem 0 3rem; margin-top: -2rem; }
.kc-band { width: 112%; margin-left: -6%; border-block: 3px solid var(--choc); overflow: hidden; }
.kc-band.back { background: var(--choc); color: var(--butter); transform: rotate(2.2deg); }
.kc-band.front { position: relative; margin-top: -3.4rem; background: var(--tomato); color: var(--cream); transform: rotate(-2deg); }
.kc-track { display: flex; width: max-content; animation: kc-marquee 38s linear infinite; }
.kc-track.rev { animation-direction: reverse; animation-duration: 48s; }
.kc-track span { display: inline-flex; align-items: center; white-space: nowrap; padding: 0.85rem 0; font: 800 1.15rem/1 var(--body); }
.kc-band.back .kc-track span { font: italic 700 1.05rem/1 var(--display); text-transform: none; }
.kc-band.front .kc-track span { font: 900 clamp(1.3rem, 3vw, 1.9rem)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; }
.kc-track span::after { content: ""; width: 1.1rem; height: 1.1rem; margin: 0 1.4rem; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.kc-track b { color: var(--butter); margin-left: 0.5rem; }
@keyframes kc-marquee { to { transform: translateX(-50%); } }

/* ---------- Oven clock ---------- */
.kc-clock { background: var(--cream); padding: 4.5rem 0 5rem; text-align: center; border-top: 3px solid var(--choc); }
.kc-clock h2, .kc-menu h2, .kc-visit h2, .kc-story h2 { font-weight: 900; font-size: clamp(2.3rem, 7vw, 4.4rem); letter-spacing: -0.03em; }
.kc-times { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 1rem; position: relative; }
.kc-times li { display: grid; justify-items: center; align-content: start; gap: 0.5rem; }
.kc-time { width: 7.4rem; height: 7.4rem; border-radius: 50%; display: grid; place-content: center; border: 3px solid var(--choc); box-shadow: 4px 4px 0 var(--choc); font: 900 2rem/0.9 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; margin-bottom: 0.6rem; }
.kc-time small { display: block; font: 800 0.8rem/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.14em; }
.c1 .kc-time { background: var(--butter); transform: rotate(-6deg); }
.c2 .kc-time { background: var(--tomato); color: var(--cream); transform: rotate(4deg); }
.c3 .kc-time { background: var(--frost); transform: rotate(-3deg); }
.c4 .kc-time { background: var(--choc); color: var(--butter); transform: rotate(5deg); }
.kc-times h3 { font-weight: 800; font-size: 1.45rem; }
.kc-times li > p:last-child { max-width: 15rem; color: var(--choc-2); font-size: 0.98rem; }

/* ---------- Menu: taped polaroid wall ---------- */
.kc-menu { background: var(--frost); padding: 4.5rem 0 4rem; text-align: center; border-top: 3px solid var(--choc); }
.squig { position: relative; display: inline-block; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--tomato); }
.squig::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.16em; height: 0.18em; background: var(--choc); clip-path: polygon(0 60%, 8% 20%, 16% 60%, 25% 20%, 33% 60%, 41% 20%, 50% 60%, 58% 20%, 66% 60%, 75% 20%, 83% 60%, 91% 20%, 100% 60%, 100% 100%, 91% 60%, 83% 100%, 75% 60%, 66% 100%, 58% 60%, 50% 100%, 41% 60%, 33% 100%, 25% 60%, 16% 100%, 8% 60%, 0 100%); }
.kc-wall { list-style: none; margin: 3.2rem 0 0; padding: 0; columns: 2; column-gap: 0.9rem; text-align: left; }
.kc-wall > li { break-inside: avoid; display: block; position: relative; margin: 0 0 1.6rem; }
.kc-wall > li.kc-card { margin-bottom: 0.8rem; }
.kc-card { padding: 1.4rem 0.6rem 0.9rem; transform: rotate(var(--tilt, -1.2deg)); transition: transform 0.2s; }
/* the paper sits 0.8rem below the top of the li so the tape stays inside its column box */
.kc-card::before { content: ""; position: absolute; z-index: -1; inset: 0.8rem 0 0; background: var(--paper); border-radius: 4px; box-shadow: 0 1px 0 rgba(59, 29, 18, 0.2), 0 10px 22px rgba(59, 29, 18, 0.16); }
.kc-card:nth-child(3n) { --tilt: 1.6deg; }
.kc-card:nth-child(3n + 1) { --tilt: -0.8deg; }
.kc-card:nth-child(4n) { --tilt: 2.2deg; }
.kc-card:hover { transform: rotate(0) translateY(-4px); }
.kc-photo { background: var(--cream); border-radius: 2px; aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 0.65rem; background-image: radial-gradient(rgba(59, 29, 18, 0.09) 1px, transparent 1.3px); background-size: 10px 10px; }
.kc-card:nth-child(even) .kc-photo { background-color: #ffe6df; }
.kc-photo svg { width: 78%; height: auto; }
.kc-name { font: 800 1.08rem/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; }
.kc-desc { font-size: 0.9rem; line-height: 1.4; color: var(--choc-2); margin-top: 0.25rem; }
.kc-tape { position: absolute; z-index: 2; top: 0.2rem; left: 50%; transform: translateX(-50%) rotate(-5deg); min-width: 4.4rem; padding: 0.3rem 0.7rem; text-align: center; background: rgba(255, 210, 63, 0.95); color: var(--choc); filter: drop-shadow(0 1px 1px rgba(59, 29, 18, 0.25)); font: 800 1rem/1.1 var(--body); clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 0, 28% 8%, 36% 0, 44% 10%, 52% 0, 60% 8%, 68% 0, 76% 10%, 84% 0, 92% 8%, 100% 0, 100% 92%, 94% 100%, 86% 90%, 78% 100%, 70% 92%, 62% 100%, 54% 90%, 46% 100%, 38% 92%, 30% 100%, 22% 90%, 14% 100%, 6% 92%, 0 100%); }
.kc-card:nth-child(odd) .kc-tape { transform: translateX(-50%) rotate(4deg); }
.kc-cat { background: var(--tomato); color: var(--cream); border: 3px solid var(--choc); border-radius: 22px; padding: 1.4rem 1rem; box-shadow: 4px 4px 0 var(--choc); transform: rotate(-2deg); text-align: center; }
.kc-cat h3 { font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.6rem); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.kc-cat p { margin-top: 0.4rem; font-weight: 600; font-size: 0.92rem; }
.kc-cat.alt { background: var(--butter); color: var(--choc); transform: rotate(2deg); }
.kc-cat.dark { background: var(--choc); color: var(--cream); transform: rotate(-1deg); }
.tag { display: inline-block; font: 800 0.7rem/1.4 var(--body); border: 2px solid currentColor; border-radius: 999px; padding: 0 0.4rem; vertical-align: 0.15em; color: var(--choc-2); }
.kc-key { margin-top: 1.4rem; font-size: 0.95rem; color: var(--choc-2); }

/* ---------- Order band ---------- */
.kc-order { position: relative; background: var(--tomato); color: var(--cream); padding: 4.5rem 0 5rem; text-align: center; margin: 1.5rem 0; }
.kc-order::before, .kc-order::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; background: url("wave.svg") repeat-x 0 0 / 80px 24px; }
.kc-order::before { top: -23px; }
.kc-order::after { bottom: -23px; transform: scaleY(-1); }
.kc-order h2 { font-weight: 900; font-size: clamp(3rem, 12vw, 7.5rem); letter-spacing: -0.04em; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--butter); text-shadow: 4px 4px 0 var(--choc); }
.kc-order .kc-kicker { color: var(--cream); }
.kc-order-lead { max-width: 36rem; margin: 1.4rem auto 0; font-size: 1.12rem; }
.kc-steps { list-style: none; padding: 0; margin: 2.6rem auto 2.4rem; max-width: 60rem; display: grid; gap: 1.6rem; }
.kc-steps li { display: grid; justify-items: center; align-content: start; gap: 0.3rem; }
.kc-steps .n { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: var(--choc); border: 3px solid var(--choc); font: 900 1.7rem/1 var(--display); margin-bottom: 0.4rem; }
.kc-steps li:nth-child(2) .n { background: var(--cream); }
.kc-steps strong { font: 800 1.3rem/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; }
.kc-steps span:last-child { font-size: 0.98rem; max-width: 16rem; }
.kc-demo { max-width: 32rem; margin: 1.4rem auto 0; font-size: 0.92rem; }
.kc-order :focus-visible { outline-color: var(--butter); }
.kc-order-ill { display: none; position: absolute; width: 9rem; }

/* ---------- Visit ---------- */
.kc-visit { background: var(--butter); padding: 4.5rem 0; text-align: center; }
.kc-ticket { margin-top: 2.6rem; display: grid; text-align: left; background: var(--paper); border: 3px solid var(--choc); border-radius: 26px; box-shadow: 8px 8px 0 var(--choc); overflow: hidden; }
.kc-ticket-info { padding: 1.6rem 1.25rem; }
.kc-hours { width: 100%; border-collapse: collapse; }
.kc-hours caption { text-align: left; font: 900 1.5rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; padding-bottom: 0.8rem; }
.kc-hours th, .kc-hours td { padding: 0.6rem 0; border-bottom: 2px dashed rgba(59, 29, 18, 0.25); text-align: left; font-weight: 600; }
.kc-hours td { text-align: right; font-weight: 800; }
.kc-hours .closed td { color: var(--tomato); }
.kc-addr { margin-top: 1.2rem; }
.kc-phone { margin-top: 0.8rem; }
.kc-fake { font-weight: 800; background: var(--butter); padding: 0.05rem 0.45rem; border-radius: 6px; }
.kc-phone small { color: var(--choc-2); font-size: 0.85rem; }
.kc-map { border-top: 3px dashed var(--choc); background: #fbe7b0; }
.kc-map svg { width: 100%; height: auto; }
.kc-map-l { font: 900 24px/1 var(--display); }
.kc-map-s { font: 800 20px/1 var(--body); }
.kc-map-s.it { font: italic 700 22px/1 var(--display); }

/* ---------- Story ---------- */
.kc-story { background: var(--cream); padding: 5rem 0; text-align: center; border-top: 3px solid var(--choc); }
.kc-story .kc-wrap { max-width: 44rem; }
.kc-story-ill { width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; color: var(--tomato); }
.kc-story-lead { margin: 1.4rem auto 1.4rem; font: italic 600 clamp(1.45rem, 3.6vw, 2.1rem)/1.25 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.kc-story p + p { margin-top: 0.9rem; color: var(--choc-2); }

/* ---------- Footer ---------- */
.kc-foot { background: var(--choc); color: var(--cream); padding: 3rem 0 2rem; text-align: center; overflow: hidden; }
.kc-foot-mark { font: 900 clamp(3rem, 13vw, 10rem)/0.9 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.04em; color: var(--butter); white-space: nowrap; }
.kc-foot-mark .amp { color: var(--tomato-hi); }
.kc-foot-row { display: grid; gap: 0.9rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 2px dashed rgba(255, 244, 220, 0.35); font-size: 0.98rem; }
.kc-foot a { color: var(--butter); display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 800; }
.kc-foot :focus-visible { outline-color: var(--butter); }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  .kc-wall { columns: 3; column-gap: 1.4rem; }
  .kc-times { grid-template-columns: repeat(4, 1fr); }
  .kc-times::before { content: ""; position: absolute; left: 12%; right: 12%; top: 3.7rem; border-top: 3px dashed var(--choc); z-index: 0; }
  .kc-time { position: relative; z-index: 1; }
  .kc-steps { grid-template-columns: repeat(3, 1fr); }
  .kc-foot-row { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; }
  .kc-foot-row p:nth-child(2) { text-align: center; }
  .kc-foot-row p:last-child { text-align: right; }
}
@media (min-width: 56rem) {
  .kc-poster { padding: 3.2rem 0 3.4rem; }
  .kc-float { width: 9rem; }
  .kc-f1 { left: 1rem; top: 3rem; width: 11rem; }
  .kc-f2 { right: 3rem; top: auto; bottom: 10rem; width: 8.5rem; }
  .kc-f3 { left: 0; bottom: 4rem; width: 11rem; }
  .kc-f4 { right: -1rem; bottom: 0; width: 8rem; }
  .kc-f5 { display: block; left: 3rem; top: 16rem; width: 7rem; }
  .kc-s1 { left: 22%; top: 1.4rem; }
  .kc-s2 { right: 16%; bottom: 3rem; }
  .kc-s3 { left: 14%; bottom: 13rem; }
  .kc-stamp { right: 2rem; top: 0.6rem; width: 9.6rem; height: 9.6rem; }
  .kc-wall { columns: 4; }
  .kc-ticket { grid-template-columns: 5fr 6fr; }
  .kc-ticket-info { padding: 2.2rem 2.2rem; }
  .kc-map { border-top: 0; border-left: 3px dashed var(--choc); display: grid; align-items: center; }
  .kc-order-ill { display: block; }
  .kc-order-ill.o1 { left: 0; top: 2rem; transform: rotate(-12deg); }
  .kc-order-ill.o2 { right: 0; top: 3rem; transform: rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kc-float, .kc-spk, .kc-stamp-ring, .kc-track { animation: none; }
  .kc-float { transform: rotate(var(--r, 0deg)); }
  .kc-btn, .kc-card { transition: none; }
}
