/* gagameal — shared styles */

:root {
  --bg: #fbf7ef;
  --bg-alt: #f3ecdd;
  --ink: #1a1915;
  --ink-soft: #4a4740;
  --ink-mute: #7a766c;
  --line: #e5dcc7;
  --line-soft: #ece3cf;
  --accent: #d9531e;
  --accent-deep: #b2401a;
  --forest: #1a3a2a;
  --forest-soft: #2a4e3a;
  --cream: #fbf7ef;
  --paper: #fff;
  --butter: #f0c674;
  --tomato: #e06b3a;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(40, 28, 15, 0.04), 0 2px 6px rgba(40, 28, 15, 0.03);
  --shadow-md: 0 2px 6px rgba(40, 28, 15, 0.05), 0 10px 28px rgba(40, 28, 15, 0.06);
  --shadow-lg: 0 6px 14px rgba(40, 28, 15, 0.06), 0 28px 60px rgba(40, 28, 15, 0.10);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--butter);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a {
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 83, 30, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(26, 25, 21, 0.04);
}
.btn-accent {
  background: var(--accent);
  color: var(--cream);
}
.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.18s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Section structure */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  margin-bottom: 18px;
}
.section-head .lede {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 620px;
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Utility */
.stack { display: flex; flex-direction: column; }
.row { display: flex; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.6,.2,1), transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Footer */
.footer {
  background: var(--forest);
  color: #d8d1bd;
  padding: 80px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8472;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer a {
  display: block;
  padding: 6px 0;
  color: #d8d1bd;
  font-size: 14.5px;
  transition: color 0.15s;
}
.footer a:hover { color: var(--butter); }
.footer .logo { color: var(--cream); margin-bottom: 16px; }
.footer p { font-size: 14.5px; color: #a8a193; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8a8472;
  letter-spacing: 0.06em;
}

/* Placeholder (for food/photo tiles) */
.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--line-soft),
    var(--line-soft) 8px,
    var(--line) 8px,
    var(--line) 9px
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  min-height: 120px;
  position: relative;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* Page-specific hooks — will be extended by each page */
