/* Crema Crew design tokens. Single source for static pages. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* colour */
  --c-espresso: #2a1810;
  --c-roast: #5b3a29;
  --c-crema: #e9c99b;
  --c-milk: #fbf5ea;
  --c-steam: #f2e8d6;
  --c-ember: #d4561f;
  --c-ember-dark: #b2430f;
  --c-sage: #5f7f5c;
  --c-berry: #9b2f4b;
  --c-honey: #d99a1e;
  --c-line: #e3d4ba;

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-38: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --fs-52: clamp(2.25rem, 1.4rem + 3.5vw, 3.25rem);
  --fs-72: clamp(2.75rem, 1.5rem + 5.5vw, 4.5rem);

  /* space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  /* shape and depth */
  --radius: 12px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(91 58 41 / 0.08), 0 2px 8px rgb(91 58 41 / 0.06);
  --shadow-2: 0 8px 24px rgb(91 58 41 / 0.14);
  --focus: 0 0 0 3px rgb(212 86 31 / 0.35);

  /* motion */
  --ease-pour: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --dur-ambient: 4s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
    --dur-ambient: 0.01ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--c-espresso);
  background: var(--c-milk);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }

/* shared components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: 600 var(--fs-16)/1 var(--font-ui);
  padding: 14px 22px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-pour), background var(--dur-base) var(--ease-pour), box-shadow var(--dur-base) var(--ease-pour);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--c-ember-dark); color: #fff; }
.btn-primary:hover { background: var(--c-ember); box-shadow: var(--shadow-2); }
.btn-secondary { background: transparent; color: var(--c-espresso); border-color: var(--c-espresso); }
.btn-secondary:hover { background: var(--c-espresso); color: var(--c-milk); }
.btn-ghost { background: transparent; color: var(--c-roast); }
.btn-ghost:hover { background: var(--c-steam); }

.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-5); }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-12)/1 var(--font-ui); padding: 6px 10px; border-radius: var(--radius-pill); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-confirmed { background: #e3ecde; color: #3f5d3c; }
.badge-pending { background: #fbecc9; color: #8a5d05; }
.badge-cancelled { background: #f5dce3; color: var(--c-berry); }

.input, .select {
  width: 100%; font: 500 var(--fs-16)/1.2 var(--font-ui); color: var(--c-espresso);
  padding: 12px 14px; background: #fff; border: 1.5px solid var(--c-line); border-radius: 10px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus, .select:focus { outline: none; border-color: var(--c-ember); box-shadow: var(--focus); }
.label { display: block; font: 600 var(--fs-14)/1.2 var(--font-ui); margin-bottom: 6px; color: var(--c-roast); }

/* ambient steam, used on both pages */
@keyframes steam-rise {
  0% { transform: translateY(8px) scaleX(1); opacity: 0; }
  30% { opacity: 0.7; }
  100% { transform: translateY(-34px) scaleX(1.25); opacity: 0; }
}
.steam path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; animation: steam-rise var(--dur-ambient) var(--ease-pour) infinite; transform-box: fill-box; transform-origin: center; }
.steam path:nth-child(2) { animation-delay: 0.8s; }
.steam path:nth-child(3) { animation-delay: 1.6s; }
