/* Kettle & Crumb: demo website for a made-up café (templates/demos/kettle-and-crumb.html).
   Its own look on purpose, nothing shared with our site: warm cream, espresso brown, a tomato-red accent.
   Mobile first; the fonts are the ones we already host. */

@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rupee"; src: url("../fonts/plus-jakarta-latin.woff2") format("woff2"); font-weight: 400 800; unicode-range: U+20B9; }

:root {
  --cream: #fbf4ea; --paper: #fffaf3; --sand: #f1e4d1; --line: #e6d5bd;
  --ink: #2b1d14; --ink-2: #5a4636; --muted: #8a7462;
  --red: #d2452b; --red-deep: #a8331d; --leaf: #2f7d32; --gold: #e3a33b;
  --r: 18px;
  /* for the shared dropdown / date / time pickers (static/css/controls.css) */
  --accent: var(--red); --accent-ink: #fff; --bg-elev: var(--paper); --bg-soft: var(--sand); --line-strong: var(--line); --r-sm: 14px;
  --head: "Rupee", "Cabinet Grotesk", system-ui, sans-serif;
  --text: "Rupee", "Satoshi", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font: 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
ul { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.k-wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.k-muted { color: var(--muted); }
.k-small { font-size: 13.5px; }

/* the "this is a demo" bar */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 8px 16px; background: #1b120c; color: #e9dccb; font-size: 13px; text-align: center; }
.demo-bar a { color: #fff; font-weight: 700; }
.demo-bar__cta { padding: 2px 10px; border-radius: 999px; background: var(--red); text-decoration: none; }

/* header */
.k-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); border-bottom: 1px solid var(--line); }
.k-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.k-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 21px var(--head); letter-spacing: -.02em; }
.k-logo svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.k-logo i { font-style: normal; color: var(--red); }
.k-nav { display: none; gap: 4px; }
.k-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.k-nav a:hover { background: var(--sand); }
@media (min-width: 720px) { .k-nav { display: flex; } }

/* buttons */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s; }
.k-btn:active { transform: scale(.97); }
.k-btn--main { background: var(--red); border-color: var(--red); color: #fff; }
.k-btn--main:hover { background: var(--red-deep); border-color: var(--red-deep); }
.k-btn--wide { width: 100%; }

/* hero */
.k-hero { padding: 40px 0 56px; background: radial-gradient(120% 80% at 100% 0%, #f6dcc0 0%, transparent 60%); }
.k-hero__in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .k-hero__in { grid-template-columns: 1.2fr 1fr; } .k-hero { padding: 72px 0 88px; } }
.k-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.k-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.k-badge.is-open::before { background: var(--leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 20%, transparent); }
.k-badge.is-closed::before { background: var(--red); }
.k-hero h1 { margin: 18px 0 14px; font: 800 clamp(38px, 8vw, 66px)/1 var(--head); letter-spacing: -.03em; }
.k-lead { max-width: 520px; font-size: 18px; color: var(--ink-2); }
.k-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* the cup, drawn in CSS */
.k-cup { position: relative; width: min(320px, 62vw); aspect-ratio: 1; margin-inline: auto; }
.k-cup__saucer { position: absolute; left: 6%; right: 6%; bottom: 14%; height: 12%; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.k-cup__body { position: absolute; left: 22%; right: 22%; bottom: 20%; height: 42%; border-radius: 8px 8px 46% 46% / 8px 8px 60% 60%; background: var(--red); border: 3px solid var(--ink); }
.k-cup__body::after { content: ""; position: absolute; right: -24%; top: 18%; width: 30%; height: 40%; border: 3px solid var(--ink); border-left: 0; border-radius: 0 50% 50% 0; }
.k-cup__tea { position: absolute; left: 0; right: 0; top: 0; height: 18%; border-radius: 5px 5px 0 0; background: #c98a4b; border-bottom: 3px solid var(--ink); }
.k-cup__bun { position: absolute; right: 0; bottom: 8%; width: 30%; aspect-ratio: 1.5; border-radius: 50% 50% 40% 40%; background: var(--gold); border: 3px solid var(--ink); }
.k-cup__steam { position: absolute; left: 30%; right: 30%; top: 6%; height: 30%; display: flex; justify-content: space-around; }
.k-cup__steam i { width: 10px; height: 100%; border-radius: 10px; border-left: 3px solid var(--ink-2); opacity: .5; animation: steam 3s ease-in-out infinite; }
.k-cup__steam i:nth-child(2) { animation-delay: .6s; }
.k-cup__steam i:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0%, 100% { transform: translateY(6px) scaleY(.85); opacity: .2; } 50% { transform: translateY(-6px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .k-cup__steam i { animation: none; } html { scroll-behavior: auto; } }

/* sections */
.k-section { padding: 56px 0; }
.k-section--tint { background: var(--sand); }
.k-section__head { margin-bottom: 22px; }
.k-section__head h2 { font: 800 clamp(30px, 6vw, 44px)/1.05 var(--head); letter-spacing: -.02em; margin-bottom: 8px; }
.k-section__head p { color: var(--ink-2); }
.k-two { display: grid; gap: 40px; }
@media (min-width: 860px) { .k-two { grid-template-columns: 1fr 1fr; } }
.k-narrow { max-width: 620px; }

/* menu tools */
.k-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.k-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 50px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); }
.k-search:focus-within { border-color: var(--ink); }
.k-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.k-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; }
.k-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; user-select: none; }
.k-switch input { position: absolute; opacity: 0; }
.k-switch__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line); transition: background-color .2s; }
.k-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.k-switch input:checked + .k-switch__track { background: var(--leaf); }
.k-switch input:checked + .k-switch__track::after { transform: translateX(18px); }
.k-switch input:focus-visible + .k-switch__track { outline: 3px solid var(--gold); outline-offset: 2px; }
.k-chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 8px; padding: 4px 16px 8px; scrollbar-width: none; }
.k-chips::-webkit-scrollbar { display: none; }
.k-chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.k-chips a:hover { border-color: var(--ink); }

/* menu items */
.k-cat { margin-top: 26px; }
.k-cat[hidden] { display: none; }
.k-cat h3 { font: 800 22px var(--head); margin-bottom: 10px; }
.k-items { display: grid; gap: 10px; }
@media (min-width: 860px) { .k-items { grid-template-columns: 1fr 1fr; } }
.k-item { display: flex; justify-content: space-between; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.k-item[hidden] { display: none; }
.k-item.is-picked { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.k-item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; font-size: 16.5px; }
.k-item__desc { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.k-pop { padding: 1px 8px; border-radius: 999px; background: #fde7c7; color: #8a4b06; font: 700 11.5px var(--text); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.k-mark { width: 16px; height: 16px; flex: none; display: inline-grid; place-items: center; border: 2px solid; border-radius: 3px; }
.k-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.k-mark--veg { color: var(--leaf); }
.k-mark--nonveg { color: #9a3412; }
.k-mark--nonveg::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }
.k-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; flex: none; }
.k-price { font: 800 18px var(--head); }
.k-add { min-width: 76px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--red); background: transparent; color: var(--red); font-weight: 800; cursor: pointer; }
.k-add:hover { background: var(--red); color: #fff; }
.k-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--red); color: #fff; }
.k-stepper button { width: 38px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.k-stepper output { min-width: 18px; text-align: center; font-weight: 800; }
.k-empty { margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--paper); text-align: center; color: var(--muted); }

/* hours and visit */
.k-hours { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.k-hours th, .k-hours td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.k-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.k-hours tr:last-child > * { border-bottom: 0; }
.k-hours tr.is-today { background: #fde7c7; font-weight: 800; }
.k-visit { display: grid; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--paper); }

/* booking form */
.k-form { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.k-form label, .k-sheet__name { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.k-form input, .k-form textarea, .k-sheet__name input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 500; font-size: 16px; }
.k-form textarea { min-height: 0; resize: vertical; }
.k-form input:focus, .k-form textarea:focus, .k-sheet__name input:focus { outline: 0; border-color: var(--ink); }
.k-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* footer */
.k-foot { padding: 36px 0 120px; background: var(--ink); color: #e9dccb; font-size: 14.5px; }
.k-foot p + p { margin-top: 6px; }
.k-foot a { color: #fff; font-weight: 700; }

/* the order: a bar at the bottom, then a sheet */
.k-orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.k-orderbar[hidden] { display: none; }
.k-orderbar__btn { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(560px, 100%); margin-inline: auto; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 12px 30px -10px rgba(43, 29, 20, .6); cursor: pointer; animation: rise .25s ease-out; }
.k-orderbar__btn b { font: 800 18px var(--head); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.k-sheet { width: min(560px, 100%); max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink); }
@media (min-width: 640px) { .k-sheet { margin: auto; border-radius: 22px; } }
.k-sheet::backdrop { background: rgba(27, 18, 12, .55); }
.k-sheet__in { display: grid; gap: 14px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.k-sheet__head { display: flex; align-items: center; justify-content: space-between; }
.k-sheet__head h2 { font: 800 26px var(--head); }
.k-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); font-size: 24px; line-height: 1; cursor: pointer; }
.k-sheet__list { display: grid; gap: 8px; }
.k-sheet__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.k-sheet__list li > span:first-child { flex: 1; font-weight: 600; }
.k-sheet__total { display: flex; justify-content: space-between; font-size: 18px; }
.k-sheet__total b { font: 800 22px var(--head); }
.k-pick { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; }
.k-pick legend { margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.k-pick label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; cursor: pointer; }
.k-pick label:has(input:checked) { border-color: var(--ink); background: var(--sand); }
