/* Papawcha brand: logo orange + sky blue, playful rounded display face, clean CJK-friendly body. */
:root {
  --orange: #F86A00; --orange-deep: #C95400; --orange-soft: #FFEBDC; --orange-tint: #FFF6EF;
  --blue: #0090F8; --blue-deep: #006BC0; --blue-soft: #E2F2FE;
  --ink: #1F1712; --muted: #6F6158; --line: #EFE2D8;
  --bg: #FFFFFF; --panel: #FFF8F2; --card: #FFFFFF;
  --good: #16884C; --good-soft: #DFF4E8; --warn: #B87800; --warn-soft: #FFF3D6; --bad: #CC3524; --bad-soft: #FDE5E1;
  --on-accent: #FFFFFF;
  --display: "Baloo 2", "Noto Sans HK", system-ui, sans-serif;
  --body: "Noto Sans HK", system-ui, -apple-system, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --radius: 16px;
  --shadow: 0 12px 30px -18px rgba(120, 60, 10, .45);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --orange: #FF7B1C; --orange-deep: #FF9D55; --orange-soft: #3B2414; --orange-tint: #22180F;
  --blue: #45AEFF; --blue-deep: #7CC5FF; --blue-soft: #10283C;
  --ink: #F7EFE9; --muted: #B9AA9F; --line: #3A2F28;
  --bg: #15100D; --panel: #1E1712; --card: #251C16;
  --good: #4CC983; --good-soft: #143222; --warn: #E8B04A; --warn-soft: #33260D; --bad: #FF7A68; --bad-soft: #3A1813;
  --shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); color-scheme: dark; } }
:root[data-theme="dark"] {
  --orange: #FF7B1C; --orange-deep: #FF9D55; --orange-soft: #3B2414; --orange-tint: #22180F;
  --blue: #45AEFF; --blue-deep: #7CC5FF; --blue-soft: #10283C;
  --ink: #F7EFE9; --muted: #B9AA9F; --line: #3A2F28;
  --bg: #15100D; --panel: #1E1712; --card: #251C16;
  --good: #4CC983; --good-soft: #143222; --warn: #E8B04A; --warn-soft: #33260D; --bad: #FF7A68; --bad-soft: #3A1813;
  --shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); color-scheme: dark; }

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body) }
img { max-width: 100%; display: block }
a { color: var(--orange-deep) }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 800 }
h1 { font-size: clamp(2.2rem, 6vw, 4rem) } h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem) } h3 { font-size: 1.25rem }
p { margin: 0 }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.tnum { font-variant-numeric: tabular-nums }
.muted { color: var(--muted) }
.small { font-size: .86rem }
.zh { font-family: var(--body) }
.eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--orange-deep) }
.stack { display: grid; gap: 14px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap }

/* buttons & form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--orange); color: var(--on-accent); transition: transform .12s, background .12s }
.btn:hover { background: var(--orange-deep) } .btn:active { transform: scale(.98) }
.btn.dark { background: var(--ink); color: var(--bg) }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line) }
.btn.ghost:hover { border-color: var(--orange); background: var(--orange-tint) }
.btn.white { background: #fff; color: #C95400 }
.btn.blue { background: var(--blue) } .btn.blue:hover { background: var(--blue-deep) }
.btn.sm { padding: 7px 14px; font-size: .88rem }
.btn.block { width: 100% }
.btn[disabled] { opacity: .5; cursor: not-allowed }
label.field { display: grid; gap: 5px; font-size: .9rem; font-weight: 600 }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 400 }
.input:focus { border-color: var(--orange); outline: none }
.err { color: var(--bad); font-size: .9rem }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--orange-soft); color: var(--orange-deep) }
.pill.good { background: var(--good-soft); color: var(--good) } .pill.warn { background: var(--warn-soft); color: var(--warn) }
.pill.bad { background: var(--bad-soft); color: var(--bad) } .pill.blue { background: var(--blue-soft); color: var(--blue-deep) }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.tag { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em }
.tag.halal { background: var(--good-soft); color: var(--good) } .tag.vegan { background: var(--blue-soft); color: var(--blue-deep) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px }

/* site header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg) }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.site-head .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) }
.brand img, .brand svg { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff }
.brand b { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center }
.site-nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem }
.site-nav a:hover { background: var(--orange-tint) }
.site-nav .btn:not(.ghost) { color: var(--on-accent) }
@media (max-width: 720px) { .site-nav a:not(.btn):not(.acct) { display: none } }

/* footer */
.site-foot { background: var(--ink); color: var(--bg); margin-top: 80px }
.site-foot .wrap { padding-block: 44px 28px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) }
.site-foot a { color: inherit; opacity: .8; text-decoration: none } .site-foot a:hover { opacity: 1; text-decoration: underline }
.site-foot h4 { font-size: 1rem; margin-bottom: 8px; color: var(--orange) }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); padding-top: 16px; font-size: .82rem; opacity: .7 }

/* drink "cup" illustration used when there is no photo */
.cup { --c: #C99A6E; position: relative; width: 70px; aspect-ratio: 7 / 9; max-width: 100% }
.cup::before { content: ""; position: absolute; inset: 14% 8% 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #fff) 0 22%, var(--c) 22%); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); border-radius: 4px }
.cup::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 18%; background: radial-gradient(circle, #3A251A 34%, transparent 38%) 0 0 / 25% 50% }
.cup i { position: absolute; left: 6%; right: 6%; top: 8%; height: 9%; background: var(--orange); border-radius: 6px 6px 2px 2px }
.cup i::after { content: ""; position: absolute; left: 56%; bottom: 40%; width: 9%; height: 160%; background: var(--blue); border-radius: 3px; transform: rotate(10deg) }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); white-space: nowrap; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow) }

/* tables */
.table-wrap { overflow-x: auto }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
table.data th { color: var(--muted); font-weight: 600; font-size: .82rem; white-space: nowrap }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* Two-language site: static blocks are written twice; show only the current language. */
html[data-lang="zh"] [lang="en"]:not(.lang-switch), html:not([data-lang="zh"]) [lang="zh"]:not(.lang-switch) { display: none !important }
.lang-switch { border: 1.5px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .88rem; cursor: pointer }
.lang-switch:hover { border-color: var(--orange) }
.site-foot .lang-switch { border-color: color-mix(in srgb, var(--bg) 30%, transparent); padding: 2px 10px; font-size: .8rem }
@media (max-width: 720px) { .site-nav .lang-switch { display: inline-block } }

img.photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f1efec }
.site-foot { position: relative }
.foot-papaw { position: absolute; right: max(16px, calc(50% - 560px)); top: -78px; width: 72px; pointer-events: none }
@media (prefers-reduced-motion: no-preference) { .foot-papaw { animation: footbob 3.6s ease-in-out infinite } @keyframes footbob { 50% { transform: translateY(-6px) rotate(-4deg) } } }

/* header menu (top-left) and account link */
.burger { width: 42px; height: 42px; border: 0; background: var(--orange-tint); border-radius: 12px; display: grid; place-content: center; gap: 4px; cursor: pointer; flex: none }
.burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--orange-deep) }
.burger:hover { background: color-mix(in srgb, var(--orange) 22%, transparent) }
.acct { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; font-weight: 600 }
.acct svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2 }
.drawer-bg { position: fixed; inset: 0; background: rgba(20,12,6,.45); z-index: 90 }
.drawer { position: fixed; left: 0; top: 0; bottom: 0; width: min(340px, 86vw); background: var(--card); z-index: 91; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 8px 0 30px rgba(0,0,0,.2); overflow-y: auto }
@media (prefers-reduced-motion: no-preference) { .drawer:not([hidden]) { animation: slidein .22s ease-out } @keyframes slidein { from { transform: translateX(-100%) } } }
.drawer .x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--orange-tint); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink) }
.drawer nav { display: grid; gap: 2px }
.drawer nav a { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600 }
.drawer nav a:hover, .drawer nav a:focus-visible { background: var(--orange-tint) }
.drawer nav a span { width: 26px; text-align: center }
.drawer-foot { margin-top: auto; font-size: .88rem; color: var(--muted) }
.drawer-foot a { color: inherit }
@media (max-width: 760px) { .hide-sm { display: none !important } }
.site-nav .btn, .lang-switch { white-space: nowrap }
@media (max-width: 440px) { .site-head .brand b { display: none } .site-nav { gap: 2px } .site-nav .btn.sm { padding-inline: 12px } }
