/* Lazy Bite — global.css : base typography, layout primitives, site header & footer */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--background);
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p  { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 650; }
small { font-size: var(--fs-xs); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(48px, 6vw, 88px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-surface { background: var(--surface); }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.row-wrap { flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- Text helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--primary-dark); }
.lead { font-size: var(--fs-lg); color: var(--text-secondary); max-width: 62ch; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-muted); }
.center { text-align: center; }
.center-x { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mono { font-family: var(--font-mono); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.section-head p { margin-top: 6px; }
.link { color: var(--primary-dark); font-weight: 650; }
.link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--text-primary);
  color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Public site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; }
.brand span em { font-style: normal; color: var(--primary-dark); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a { padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.site-nav a:hover { color: var(--text-primary); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  align-items: center; justify-content: center; background: #fff; }

/* Mobile drawer nav */
.mobile-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: #fff; z-index: var(--z-drawer);
  transform: translateX(102%); transition: transform var(--dur) var(--ease); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: var(--shadow-xl); overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 650; }
.mobile-nav a:hover { background: var(--surface); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-inverse); color: #cbd5e1; padding-block: var(--sp-10) var(--sp-6); margin-top: auto; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-7); }
.footer-brand p { color: #94a3b8; max-width: 34ch; margin-top: var(--sp-3); }
.site-footer h5 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-4); }
.footer-links { display: grid; gap: 10px; font-size: var(--fs-base); color: #94a3b8; }
.footer-bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; color: #94a3b8; font-size: var(--fs-sm); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08); transition: background var(--dur-fast) var(--ease); }
.social a:hover { background: rgba(255,255,255,.18); }

/* ---------- Page header (inner public pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--primary-softer), #fff); border-bottom: 1px solid var(--border);
  padding-block: clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 20ch; }
.page-hero p { margin-top: var(--sp-3); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-3); }
.breadcrumbs a:hover { color: var(--text-primary); }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); font-size: var(--fs-xl); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul { list-style: disc; padding-left: 1.15rem; display: grid; gap: 8px; margin-top: var(--sp-3); }
.prose p + p { margin-top: var(--sp-3); }

/* ---------- Utility ---------- */
.hide { display: none !important; }
.flex-1 { flex: 1; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.w-full { width: 100%; }
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
