/* Circuit 40s — Base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Headings ── */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { max-width: 66ch; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ── Layout utilities ── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.container-md {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 40px;
}

.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Text utilities ── */

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow-accent {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.section-rule::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.section-rule--inv {
  color: var(--text-inv-dim);
}

.section-rule--inv::before {
  background: var(--dark-border-strong);
}

@media (max-width: 640px) {
  .container,
  .container-md,
  .container-sm {
    padding: 0 20px;
  }
}
