/* ═══════════════════════════════════════════════════════════════
   GridMind Base — Reset, Typography, Layout
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--bd);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Skip to content (a11y) ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--bd);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* ── Links ────────────────────────────────────────────────── */
a { color: var(--ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink-mid); }

/* ── Images ───────────────────────────────────────────────── */
img { max-width: 100%; height: auto; display: block; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section--dark {
  background: var(--bg-sidebar);
  color: #F0F0F5;
}
.section--dark .sl { color: rgba(240,240,245,0.5); }
.section--dark .st { color: #F0F0F5; }
.section--dark .sd { color: rgba(240,240,245,0.7); }
.section--dark .cta-btn {
  border-color: rgba(240,240,245,0.6);
  color: #F0F0F5;
}
.section--dark .cta-btn:hover {
  background: #F0F0F5;
  color: var(--bg-sidebar);
}

/* ── Typography ───────────────────────────────────────────── */

/* Section label */
.sl {
  font-family: var(--bd);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: 12px;
}

/* Section title */
.st {
  font-family: var(--sf);
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 8px;
}

/* Section description */
.sd {
  font-family: var(--bd);
  font-size: var(--fs-body);
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 32px;
}

/* Short horizontal rule */
.hrl {
  width: 60px;
  height: 1px;
  background: var(--rule);
  margin: 14px 0 22px;
}

/* Full-width rule */
.hrf {
  width: 100%;
  height: 1px;
  background: var(--rl);
  margin: 32px 0;
}

/* Gradient rule (logo) */
.hr-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  margin: 12px auto 14px;
}

/* Footnote */
.fn {
  font-family: var(--bd);
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-top: 16px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
}
