/* Flyers public site — shared stylesheet.
 * Single source of truth for all 4 pages. Adjust here, every page updates.
 * Dark mode follows the system. Mobile-first, no JS, no CDN dependencies.
 */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #c79a3a;          /* matches the app's flyersGold */
  --accent-soft: rgba(199, 154, 58, 0.12);
  --border: #e5e5e5;
  --code-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --fg: #ededed;
    --muted: #999;
    --border: #2a2a2a;
    --code-bg: #1a1a1a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 32px 16px 96px;
}
.container {
  max-width: 760px;
  margin: 0 auto;
}

/* ───── Header / nav ─────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
header.site .logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}
header.site h1.brand {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
header.site nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
header.site nav a:hover { color: var(--accent); }
header.site nav a.active { color: var(--accent); }

/* ───── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--fg);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1.page-title {
  font-size: 36px;
  margin: 16px 0 4px;
  font-weight: 700;
}
h1.page-title + .meta {
  margin-bottom: 32px;
}
h2 {
  font-size: 22px;
  margin-top: 40px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  margin-top: 28px;
  font-weight: 600;
}
p { margin: 12px 0; }
strong { font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

code, pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--code-bg);
  border-radius: 4px;
}
code { padding: 2px 6px; }
pre {
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

/* ───── Tables ───────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 600;
  background: var(--code-bg);
}
tr:last-child td { border-bottom: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

/* ───── Landing page cards ───────────────────────────────────────── */
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 32px;
  max-width: 620px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  background: var(--bg);
}
.card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--accent-soft);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ───── Footer ───────────────────────────────────────────────────── */
footer.site {
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
