/* ==========================================================================
   Base — CSS custom properties, reset, typography
   ========================================================================== */

:root {
  /* Primary palette */
  --color-primary:        #2C2F33;
  --color-primary-hover:  #3D4147;
  --color-secondary:      #4A5058;
  --color-accent:         #3A8A5C;
  --color-accent-hover:   #2E7049;
  --color-accent-light:   #EBF2ED;
  --color-gold:           #C9922A;

  /* Backgrounds */
  --color-bg:             #F3F4F2;
  --color-bg-card:        #FFFFFF;
  --color-bg-alt:         #F9F8F5;

  /* Text */
  --color-text:           #222222;
  --color-text-muted:     #6B7280;
  --color-text-inverse:   #FFFFFF;

  /* Borders */
  --color-border:         #DDDEDA;
  --color-border-dark:    #C5C7C2;

  /* Schematic colours */
  --color-dc-positive:    #C0392B;
  --color-dc-negative:    #222222;
  --color-ac:             #2E86C1;

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;

  /* Shadows */
  --shadow-card:     0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Layout */
  --max-width:        1200px;
  --content-width:    720px;
  --nav-height:       56px;
}

/* ==========================================================================
   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-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.2;
}

h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 600; }
h6 { font-size: 13px; font-weight: 600; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* Technical values — monospace green */
.tech-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

/* Kit spec summary — monospace green, compact */
.kit-spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: -0.2px;
  display: block;
}

/* Muted helper text */
.text-muted {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Gold label / step number */
.label-gold {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Spec table — reusable across product pages and guides
   ========================================================================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
.spec-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.spec-label {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
}
.spec-value {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-weight: 500;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
