/* what should i eat — shared brand layer.
   Link this from any page (<link rel="stylesheet" href="/brand.css">) so it
   inherits the typography, color tokens, and CTA style automatically.
   Note: /brand.css is allow-listed past the password gate in middleware.js. */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Petrona:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  --bg: #0c0a09;
  --surface: #161311;
  --surface-2: #1f1b18;
  --border: #2a2522;
  --border-strong: #3a332e;
  --text: #f5f1e8;
  --muted: #8b8580;
  --accent: #e8b87f;
  --accent-2: #ff7a5a;
  --danger: #ef4444;
  --font-sans: "Hanken Grotesk", ui-sans-serif, -apple-system, system-ui, "Helvetica Neue", sans-serif;
  --font-serif: "Petrona", Georgia, "Times New Roman", serif;
  --font-hero: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

/* Brand hero — upright serif. Emphasis is color only, never mid-phrase italics. */
.bbs-hero {
  font-family: var(--font-hero);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.bbs-hero .accent { color: var(--accent); font-style: normal; }

/* Primary CTA — the animated gradient button. */
.cta {
  display: inline-block;
  width: 100%;
  color: #1a0f0a;
  border: none;
  padding: 16px 18px;
  border-radius: 14px;
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(110deg, #ff7a5a, #e8b87f, #ff9eb5, #ffd27a, #ff7a5a);
  background-size: 300% 100%;
  animation: bbsShimmer 7s ease infinite;
  box-shadow: 0 6px 22px rgba(255, 122, 90, 0.28);
  transition: transform 0.1s, box-shadow 0.25s;
}
@keyframes bbsShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 122, 90, 0.45); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta:disabled { opacity: 0.65; cursor: default; transform: none; }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cta { animation: none; } }

/* Form field */
.field {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-family: var(--font-sans);
  min-height: 48px;
}
.field::placeholder { color: var(--muted); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

/* Accent link */
.bbs-link { color: var(--accent); text-decoration: underline; }
.bbs-link:hover { color: var(--accent-2); }
