/* Hebrews (Heartbeat Church coffee). Brand tokens follow Pulse v2 and the Heartbeat media kit:
   logo black on white, Inter Tight with tight display tracking, Pulse red only for attention.
   Every surface is white; structure comes from hairlines and black, not tinted panels.
   Coffee colours appear only inside the drink drawings. */
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(/fonts/InterTight-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 700; font-display: swap; src: url(/fonts/InterTight-700.woff2) format('woff2'); }

:root {
	--ink: #000;
	--ink-2: #2a2927;
	--ink-pressed: #3f3d3a;
	--text-2: #3a3936;
	--text-3: #6f6c67;
	--text-4: #a8a49d;
	--surface: #fff;
	--chip: #f4f2ee;
	--line: #ebe8e3;
	--line-strong: #dedad3;
	--accent: oklch(0.55 0.21 27);
	--accent-text: oklch(0.48 0.21 27);
	--accent-soft: oklch(0.96 0.025 27);
	--scrim: rgba(20, 18, 15, .32);
	--font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
	--display: -0.045em;
	--heading: -0.03em;
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--out: cubic-bezier(.16, 1, .3, 1);
	color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 500;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	overscroll-behavior: none;
	touch-action: manipulation;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; border-radius: 999px;
	font-size: 17px; font-weight: 700; white-space: nowrap;
	background: var(--surface); border: 1.5px solid var(--line-strong);
	transition: transform .18s var(--spring), background .15s, opacity .15s, border-color .15s;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .28; pointer-events: none; }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.primary:active { background: var(--ink-pressed); }
.btn.lg { min-height: 64px; font-size: 20px; padding: 0 30px; }
.btn.block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Choice chips ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 48px; padding: 0 18px; border-radius: 999px;
	background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
	font-size: 16px; font-weight: 700; color: var(--text-2);
	transition: background .15s, color .15s, box-shadow .15s, transform .25s var(--spring);
}
.choice:active { transform: scale(.92); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); animation: pick .32s var(--spring); }
.choice.hot[aria-pressed="true"] { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@keyframes pick { 40% { transform: scale(1.07); } }

.milk-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); }
.milk-full { background: #fff; }
.milk-skim { background: #a9cbe6; }
.milk-oat { background: #d6b07a; }
.milk-soy { background: #b9cc7e; }
.milk-almond { background: #e3b98f; }
.milk-lactose-free { background: #cdb6e6; }

.note-input {
	font: inherit; font-size: 17px; height: 48px; padding: 0 18px; border-radius: 999px; flex: 1; min-width: 0; width: 100%;
	border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
	transition: border-color .15s;
}
.note-input::placeholder { color: var(--text-3); }
.note-input:focus { outline: none; border-color: var(--ink); }

/* ---------- The Hebrews mark: a sugar cube (the H) drops into the cup (C) with its handle (B) ---------- */
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .cupmark { height: 44px; width: auto; flex: none; overflow: visible; }
.wordmark b { display: block; font-size: 30px; font-weight: 700; letter-spacing: var(--display); line-height: .9; }
.wordmark small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.cupmark-cube { transform-box: fill-box; transform-origin: 50% 100%; }
.cupmark-cup { transform-box: fill-box; transform-origin: 50% 100%; }
.drop .cupmark-cube { animation: cube-drop .9s var(--out) both; }
.drop .cupmark-cup { animation: cup-catch .9s ease both; }
@keyframes cube-drop {
	0% { transform: translateY(-140%) rotate(-40deg); opacity: 0; }
	35% { opacity: 1; }
	55% { transform: translateY(18%) rotate(6deg); }
	75% { transform: translateY(-6%) rotate(-2deg); }
	100% { transform: none; }
}
@keyframes cup-catch { 0%, 48% { transform: none; } 60% { transform: scale(1.06, .9); } 78% { transform: scale(.98, 1.03); } 100% { transform: none; } }

/* Steam on the drink drawings: drifts up and fades, forever, only where it's switched on. */
.steam { stroke-dasharray: 8 8; opacity: .5; }
.steamy .steam { animation: steam 2.4s ease-in-out infinite; }
.steamy .steam + .steam { animation-delay: .9s; }
@keyframes steam {
	0% { transform: translateY(4px); opacity: 0; stroke-dashoffset: 16; }
	40% { opacity: .7; }
	100% { transform: translateY(-6px); opacity: 0; stroke-dashoffset: 0; }
}

/* ---------- Toast with an optional action ---------- */
.toast {
	position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px) scale(.96);
	display: flex; align-items: center; gap: 18px; max-width: min(560px, calc(100vw - 32px));
	padding: 14px 16px 14px 22px; border-radius: 999px; background: var(--ink); color: var(--surface);
	font-size: 16px; font-weight: 700; box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--spring); z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--surface); background: var(--ink-2); padding: 10px 16px; border-radius: 999px; }
.toast:not(:has(button)) { padding-right: 22px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
dialog[open] { animation: rise .4s var(--out); }
@keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes fade-up { from { transform: translateY(14px); opacity: 0; } }

/* Checkmark that draws itself */
.tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--out) .05s; }
[aria-checked="true"] .tick path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
