/* ============================================================
   freezr — common.css
   Shared across all pages: reset, typography, nav, footer,
   colour tokens, utility classes.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --c-blue-deep:   #1a6bb5;
  --c-blue-mid:    #4fa3e8;
  --c-blue-pale:   #a8d4f5;
  --c-blue-bg:     #e6f1fb;

  --c-ink:         #1a1a1a;
  --c-ink-2:       #444441;
  --c-ink-3:       #888780;
  --c-ink-4:       #b4b2a9;

  --c-surface:     #ffffff;
  --c-surface-2:   #f7f6f3;
  --c-surface-3:   #f1efe8;

  --c-border:      rgba(0,0,0,0.10);
  --c-border-2:    rgba(0,0,0,0.18);

  --c-green-bg:    #eaf3de;
  --c-green-text:  #27500a;
  --c-red-bg:      #fcebeb;
  --c-red-text:    #791f1f;
  --c-amber-bg:    #faeeda;
  --c-amber-text:  #633806;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;

  --font-sans:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --font-serif: Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);

  --max-width: 1100px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }

/* ── Top navigation ──────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-word {
  font-size: 17px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--c-ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-ink); }
.nav-links a.active { font-weight: 500; }

.nav-cta {
  font-size: 13px;
  padding: 7px 16px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-md);
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--c-surface-2); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-ink-3);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--c-ink-3);
  text-decoration: none;
}
.footer-links a:hover { color: var(--c-ink-2); }

/* ── Content wrapper (max-width centring for main content) ── */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Utility ─────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: var(--c-border);
}

.note-callout {
  background: var(--c-blue-bg);
  border-left: 3px solid var(--c-blue-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 13px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: #0c447c;
  line-height: 1.6;
}
.note-callout code {
  font-size: 12px;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Responsive nav collapse ─────────────────────────────── */
@media (max-width: 700px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-inner { padding: 20px; }
  .content-wrap { padding: 0 20px; }
}