/*
 * site.css — the shell shared by index.html, skills/index.html and
 * legal/privacy-policy/index.html.
 *
 * What belongs here: rules all three pages need identically — the design tokens,
 * the base reset, the fixed nav, the footer, and the install section the landing
 * and skills pages both end on. Everything else stays in the page's own inline
 * <style>, which comes after this file in every <head> and so wins ties.
 *
 * A rule added here changes three pages; a rule added to a page's block changes
 * one. Deliberate per-page differences live here too, keyed on <body data-page>,
 * so no selector appears both here and in a page's inline block — see
 * .install-section below for why that matters.
 *
 * tools/check-site.js asserts every page links this file and that none of them
 * declare :root. It does not scan .css files, so a url() added here would not be
 * link-checked; there are none today.
 */

:root {
  --bg: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #3a3a3a;
  --border: #555;
  --text: #d0d0d0;
  --text-dim: #999;
  --text-bright: #fff;
  --accent-green: #238636;
  --accent-green-hover: #2ea043;
  --accent-blue: #58a6ff;
  --accent-orange: #f0883e;
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
code {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 13px; color: var(--accent-blue);
  background: #0a0a0a; padding: 2px 6px; border-radius: 5px;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; color: var(--text-bright);
  text-decoration: none;
  font-family: 'Menlo', 'Monaco', monospace;
}
.nav-brand img { height: 28px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-bright); }
/* Current-page highlight: <body data-page="…"> plus a rule, never a class in the
   nav markup — check-site.js requires the nav to be byte-identical. */
body[data-page="skills"] .nav-links a[href="/skills/"] { color: var(--text-bright); }
.nav-cta {
  padding: 8px 16px; background: var(--accent-green); color: #fff !important;
  border-radius: 6px; font-weight: 500; font-size: 14px;
}
.nav-cta:hover { background: var(--accent-green-hover); }

/* ── Section headings ──
   The rule that draws a ── divider either side of a section h2. Every section on
   every page, in one place; the arms for a section a given page doesn't have are
   inert. The h2 must be display:flex for them to show, which stays page-side. */
.features h2::before, .features h2::after,
.security h2::before, .security h2::after,
.skills h2::before, .skills h2::after,
.paths h2::before, .paths h2::after,
.install-section h2::before, .install-section h2::after {
  content: ''; flex: 1; height: 2px; background: #555; border-radius: 1px;
}

/* ── Install section ── */
.install-section {
  max-width: 700px; margin: 100px auto 0;
  padding: 0 32px;
  text-align: center;
  scroll-margin-top: 72px;
}
/* The skills page runs its sections on a 90px rhythm (.skills, .paths); the
   landing page uses 100px. Keyed on data-page and kept here rather than inline on
   that page on purpose: media queries add no specificity, so a page's non-media
   rule would outrank the .install-section padding in the shared @media below. */
body[data-page="skills"] .install-section { margin-top: 90px; }
.install-section h2 {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 24px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 20px;
}
.install-section > p {
  font-size: 15px; color: var(--text-dim); margin-bottom: 24px;
}
.install-block {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  background: #0a0a0a;
  border: 3px solid #777;
  border-radius: 12px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 15px; color: var(--accent-green);
  cursor: pointer;
  transition: border-color 0.15s;
}
.install-block:hover { border-color: var(--accent-green); }
.install-note {
  margin-top: 20px;
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.6;
}
.install-note .req { color: #7a7a7a; }

/* ── Footer ── */
footer {
  margin-top: 100px;
  padding: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-dim);
}
.footer-brand img { height: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-dim); text-decoration: none; font-size: 13px;
}
.footer-links a:hover { color: var(--text-bright); }
.footer-legal {
  max-width: 900px; margin: 18px auto 0;
  font-size: 12px; color: #6a6a6a;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a.nav-sm-hide { display: none; }
  .install-section { padding: 0 20px; }
  .install-block { font-size: 12.5px; padding: 14px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
