/* Fork & Sync — public site */

:root {
  --brand: #d95d39;
  --brand-dark: #b04b2e;
  --bg: #fbf6f2;
  --surface: #ffffff;
  --text: #1f1b16;
  --muted: #6b6357;
  --outline: #e6dfd6;
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.04), 0 8px 24px rgba(31, 27, 22, 0.06);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

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

section { padding: 64px 0; }
section.tight { padding: 32px 0; }

/* Top nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text);
}
.nav .logo img { width: 32px; height: 32px; border-radius: 8px; }

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .icon-mark {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-dark); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--outline);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .emoji { font-size: 28px; margin-bottom: 8px; }
.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Section heading */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; }

/* Comparison */
.compare {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--outline);
}
.compare th { font-weight: 700; color: var(--muted); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: #2e7d32; font-weight: 700; }
.compare .no { color: #c62828; }
.compare .meh { color: var(--muted); }
.compare .brand { font-weight: 700; color: var(--brand); }

/* Screenshot strip */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.screenshots .shot {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
footer {
  border-top: 1px solid var(--outline);
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer .links { margin-bottom: 12px; }
footer .links a { margin: 0 8px; color: var(--muted); }
footer .links a:hover { color: var(--brand); }

/* Router pages (recipe / meal / follow) */
.centered {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.centered img { width: 96px; height: 96px; border-radius: 22px;
  box-shadow: var(--shadow); margin-bottom: 24px; }
.centered h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.centered p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--muted);
}
.centered .btn-row { width: 100%; max-width: 360px; flex-direction: column; }
.centered .btn { width: 100%; }

/* Plain content pages (privacy / terms) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.doc h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.doc h2 { margin-top: 32px; font-size: 20px; }
.doc h3 { margin-top: 24px; font-size: 16px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; }
