/* Kansa Café: a sample café website by Pygen Labs (made-up business).
   VOICE: warm, local, unhurried. IDEA: a brass cup on a terracotta table.
   COLOUR: cream ground, terracotta and brass, leaf green for the deep bands, WhatsApp green only on order buttons.
   TYPE: Newsreader display for headings, Schibsted Grotesk for text (both self-hosted on pygenlabs.com).
   Phones first: a dock with Call, WhatsApp and Directions stays at the bottom on small screens. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/assets/fonts/newsreader-display.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("/assets/fonts/newsreader-display-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); }

:root {
  --cream: #f6efe3; --cream-2: #efe4d1; --ink: #2a1c14; --ink-2: #5a4636; --ink-3: #7c6654;
  --terra: #b5532d; --terra-d: #8f3d1f; --brass: #e2a33b; --leaf: #1f3b2e; --leaf-2: #2c5241;
  --wa: #1f8f4e; --rule: rgba(42, 28, 20, 0.14);
  --serif: "Newsreader", Georgia, serif; --sans: "Schibsted Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
a { color: inherit; text-underline-offset: 0.2em; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(5vw, 18px); }
.faint { color: var(--ink-3); }
.sample-line { margin-top: 18px; color: var(--ink-3); font-size: 0.875rem; font-style: italic; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--terra); color: #fff; font-weight: 700; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.btn:hover { background: var(--terra-d); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--cream-2); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #18723e; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/* Sample notice */
.sample { padding: 10px max(5vw, 18px); background: var(--ink); color: var(--cream); font-size: 0.875rem; text-align: center; }
.sample a { color: var(--brass); font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 0.97rem; text-decoration: none; }
.nav a:hover { color: var(--terra); }

/* Hero */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: var(--cream-2); font-size: 0.9375rem; font-weight: 600; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.status.is-open .dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(31, 143, 78, 0.18); }
.status.is-closed .dot { background: var(--terra); }
.hero h1 { margin-top: 20px; font-size: clamp(2.6rem, 1.2rem + 4.6vw, 4.9rem); }
.lead { margin-top: 18px; max-width: 32em; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.97rem; }
.facts b { margin-right: 6px; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.hero-art svg { width: 100%; height: auto; }

/* Favourites */
.band { padding: clamp(48px, 7vw, 88px) 0; background: var(--leaf); color: var(--cream); }
.favs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 32px; }
.favs li { display: grid; grid-template-rows: auto auto 1fr auto; padding: 22px; border-radius: 18px; background: var(--leaf-2); }
.favs svg { width: 120px; height: 90px; margin-bottom: 14px; }
.favs h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.favs p { margin-top: 6px; color: rgba(246, 239, 227, 0.78); font-size: 0.97rem; }
.favs .price { margin-top: 16px; color: var(--brass); font-size: 1.25rem; }

/* Menu */
.menu-sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sec-head p { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 0.9375rem; }
.veg, .nonveg { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; border: 1.5px solid #2f8a3d; border-radius: 2px; }
.veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2f8a3d; }
.nonveg { border-color: #a2341f; }
.nonveg::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #a2341f; }
.sec-head .nonveg { margin-left: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--cream-2); color: var(--ink); font: 600 0.97rem var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 26px; }
.js .menus { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.js .menu[hidden] { display: none; }
.js .menu h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.menu li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.menu li > .veg, .menu li > .nonveg { transform: translateY(2px); }
.item { font-weight: 600; }
.item small { display: block; color: var(--ink-3); font-size: 0.9rem; font-weight: 400; }
.menu b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; white-space: nowrap; }

/* Visit */
.visit { padding: clamp(56px, 8vw, 104px) 0; background: var(--cream-2); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.addr { margin-top: 18px; font-size: 1.15rem; }
.addr .faint { font-size: 0.95rem; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 30px; color: var(--ink-2); font-size: 0.97rem; }
.perks li { padding-left: 18px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.hours { width: 100%; border-collapse: collapse; background: var(--cream); border-radius: 16px; overflow: hidden; }
.hours th, .hours td { padding: 14px 20px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--ink-2); white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { background: var(--terra); color: #fff; font-weight: 700; }

/* Parties */
.parties { padding: clamp(56px, 8vw, 104px) 0; }
.party-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); align-items: start; }
.party-box > div p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 0.95rem; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--terra); }
.steps b { display: block; color: var(--ink); font-size: 1rem; }
.party-box .btn { justify-self: start; }

/* Photos */
.photos { padding: clamp(56px, 8vw, 104px) 0; background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; margin-top: 28px; }
.grid li { display: flex; align-items: flex-end; padding: 16px; border-radius: 14px; color: rgba(255, 255, 255, 0.92); font-size: 0.9375rem; font-weight: 600; }
.grid .p1 { grid-row: span 2; background: linear-gradient(160deg, #8f3d1f, #3d1c0e); }
.grid .p2 { background: linear-gradient(160deg, #c8902f, #6b3a1f); }
.grid .p3 { background: linear-gradient(160deg, #2c5241, #142a20); }
.grid .p4 { grid-row: span 2; background: linear-gradient(160deg, #6b3a1f, #2a1c14); }
.grid .p5 { background: linear-gradient(160deg, #b5532d, #6b2a14); }
.grid .p6 { background: linear-gradient(160deg, #1f3b2e, #0d1a14); }
.photos .sample-line { color: rgba(246, 239, 227, 0.7); }

/* Order */
.order { padding: clamp(56px, 8vw, 104px) 0; }
.order-box { text-align: center; }
.order-box h2 { margin-inline: auto; max-width: 14em; }
.order-box > p { max-width: 34em; margin: 14px auto 0; color: var(--ink-2); }
.order-box .btn { margin-top: 24px; }

/* Footer and phone dock */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9375rem; }
.foot-in { display: grid; gap: 8px; }
.made { color: var(--ink-3); }
.made a { color: var(--terra); font-weight: 600; }
.dock { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-grid, .visit-grid, .party-box { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 360px; justify-self: center; }
  .favs { grid-template-columns: minmax(0, 1fr); }
  .favs li { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto; column-gap: 16px; }
  .favs svg { grid-row: span 3; width: 96px; height: 72px; }
  .menus { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--rule); }
  .dock a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; background: var(--cream-2); font-weight: 700; text-decoration: none; }
  .dock a.wa { background: var(--wa); color: #fff; }
  body { padding-bottom: 76px; }
}
@media (max-width: 480px) {
  .top .btn { display: none; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .hours th, .hours td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art svg path[stroke="#f6efe3"] { animation: steam 3.2s ease-in-out infinite; }
  @keyframes steam { 0%, 100% { opacity: 0.85; transform: translateY(0); } 50% { opacity: 0.35; transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
