/* The Coffee Concept — guest-facing design system.
   Monochrome like the shop sign: ink on warm paper, one serif for voice, one grotesk for function. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&family=Oswald:wght@500;600&display=swap');

:root {
  --ink: #0d0c0b;
  --ink-2: #1b1917;
  --ink-3: #2a2724;
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --bone: #e2dccf;
  --stone: #8b847a;
  --mute: #5e5952;
  --crema: #b48a5a;
  --line: rgba(13, 12, 11, .12);
  --line-2: rgba(13, 12, 11, .22);
  --line-inv: rgba(245, 242, 236, .14);
  --ok: #2f6b3a;
  --warn: #9a5b12;
  --bad: #a3332b;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mark: 'Oswald', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --r: 18px;
  --shadow: 0 1px 2px rgba(13, 12, 11, .06), 0 12px 32px -14px rgba(13, 12, 11, .28);
  --shadow-lg: 0 30px 60px -24px rgba(13, 12, 11, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; } /* no double-tap-zoom wait before a tap registers */
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.italic { font-style: italic; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.muted { color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { appearance: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); height: 48px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 14px/1 var(--sans); letter-spacing: .01em; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease), transform .2s var(--ease), opacity .2s; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--paper); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid::before { background: var(--ink-3); }
.btn-light { border-color: var(--paper); color: var(--paper); }
.btn-light::before { background: var(--paper); }
.btn-light:hover { color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, transform .2s var(--ease); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }

/* inputs */
.field { width: 100%; height: 54px; border: 1px solid var(--line-2); background: transparent; border-radius: 14px; padding: 0 16px; font: 500 16px var(--sans); color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 12, 11, .06); }
.field::placeholder { color: var(--stone); }
textarea.field { height: auto; min-height: 90px; padding: 14px 16px; resize: vertical; line-height: 1.45; }

/* veg mark */
.veg { width: 12px; height: 12px; border: 1.2px solid var(--ok); display: inline-grid; place-items: center; flex: none; border-radius: 2px; }
.veg::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* reveal helpers (GSAP sets the final state; these are the no-JS fallbacks) */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 14px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease) both; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--bad); }
.toast.out { animation: toastOut .4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* noise grain overlay for a printed-paper feel */
.grain { position: fixed; inset: -50%; z-index: 1000; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* the grain is a full-screen layer; phones pay for it on every scroll frame, so they skip it */
@media (hover: none), (max-width: 900px) { .grain { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
