/* ─────────────────────────────────────────────────────────────────────────
   N Mirror — Blog (static, SEO-first)
   Cinematic dark theme matching the app shell (#0A0A0B / brand red #FF2D37).
   Hand-written HTML is served for crawlers AND humans; no Flutter, no canvas.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0A0A0B;
  --bg-soft: #141417;
  --card: #16161A;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --muted: #9A9AA2;
  --faint: #6E6E73;
  --red: #FF2D37;
  --max: 1120px;
  --read: 720px;
  --radius: 18px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

/* ── Top bar ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 40px);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 4px;
  font-size: 20px;
  text-shadow: 0 0 26px rgba(255, 45, 55, 0.45);
}
.nav .links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.nav .cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(18px, 5vw, 40px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* ── Blog index ───────────────────────────────────────────────────────── */
.masthead { margin-bottom: 44px; }
.masthead h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 14px 0 12px; }
.masthead p { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); max-width: 62ch; }

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.card.featured { grid-column: 1 / -1; }
.card .cover {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.card.featured .cover { aspect-ratio: 21 / 8; }
.card .cover .kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.card .chip {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.card h2 { margin: 2px 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { margin-top: 6px; font-size: 13px; color: var(--faint); }

/* ── Article ──────────────────────────────────────────────────────────── */
.hero {
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 56px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 34px;
}
.hero .kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.06; margin: 0; }
.hero .byline { font-size: 14px; color: rgba(255, 255, 255, 0.78); }

/* Breadcrumb trail (matches BreadcrumbList schema) */
.crumbs { max-width: var(--read); margin: 0 auto 18px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }

article { max-width: var(--read); margin: 0 auto; }
/* Self-contained answer block — the passage AI Overviews / assistants cite. */
article .lead {
  font-size: 20px;
  line-height: 1.6;
  color: #fff;
  padding: 18px 22px;
  margin: 0 0 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}
article h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 40px 0 12px; line-height: 1.2; }
article p { font-size: 18px; margin: 0 0 22px; color: #E4E4E9; }
article ul { padding-left: 22px; margin: 0 0 24px; }
article li { font-size: 18px; margin-bottom: 12px; color: #E4E4E9; }
article blockquote {
  margin: 30px 0;
  padding: 18px 26px;
  border-left: 3px solid var(--accent, var(--red));
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font-size: clamp(19px, 3vw, 24px);
  font-style: italic;
  color: #fff;
}

.article-foot {
  max-width: var(--read);
  margin: 48px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.article-foot .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.ghost { border: 1px solid var(--border); color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 34px clamp(18px, 5vw, 40px);
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav .links { display: none; }
}
