/* ── Alpha Helix content pages — Helix Design System V5 ── */
:root {
  --bg:        #0E1116;
  --surface:   #161B22;
  --surface2:  #1C2330;
  --border:    rgba(255,255,255,0.07);
  --text:      #E8EDF2;
  --muted:     #8B949E;
  --dimmed:    #8B949E;

  --sleep:     #4A55A2;
  --load:      #00E3FF;
  --recovery:  #2E8F6E;
  --accent:    #4A55A2;

  --pursue:    #22C55E;
  --moderate:  #F59E0B;
  --restore:   #8B5CF6;

  --radius:    14px;
  --max:       680px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:       #E8EDF2;
    --surface:  #D8DDE6;
    --surface2: #CBD1DC;
    --border:   rgba(0,0,0,0.08);
    --text:     #0E1116;
    --muted:    #6b7080;
    --dimmed:   #4a5060;

    --sleep:    #3a4492;
    --load:     #0099bb;
    --recovery: #1e6e50;
    --accent:   #3a4492;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
@media (prefers-color-scheme: light) {
  body::before { opacity: 0.12; }
}

header, main, footer { position: relative; z-index: 1; }

/* ── HEADER ── */
header {
  padding: 40px 24px 0;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.wordmark-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.helix-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 48px 24px 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.lead {
  font-size: 15px;
  color: var(--dimmed);
  font-weight: 300;
  line-height: 1.65;
  max-width: 560px;
}

/* ── CONTENT ── */
.content {
  padding: 0 24px 80px;
  max-width: var(--max);
  margin: 0 auto;
}

.content > section {
  margin-bottom: 48px;
}

.content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.content h3:first-child { margin-top: 0; }

.content p {
  font-size: 15px;
  color: var(--dimmed);
  line-height: 1.7;
  margin-bottom: 14px;
}

.content p:last-child { margin-bottom: 0; }

.content strong { color: var(--text); font-weight: 500; }

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.content ul, .content ol {
  font-size: 15px;
  color: var(--dimmed);
  line-height: 1.7;
  margin: 0 0 14px 1.2em;
}

.content li { margin-bottom: 6px; }

.content li:last-child { margin-bottom: 0; }

.content code {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}

.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover { text-decoration: underline; }

.content .note-spaced { margin-top: 20px; }

/* ── STRAND HEADINGS ── */
.strand-heading {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 28px 0 10px;
}

.strand-heading.sleep    { color: var(--sleep); }
.strand-heading.load     { color: var(--load); }
.strand-heading.recovery { color: var(--recovery); }

/* ── POSTURE CARDS ── */
.posture-list { display: flex; flex-direction: column; gap: 10px; }

.posture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.posture-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}

.posture-card.pursue::before   { background: var(--pursue); }
.posture-card.moderate::before { background: var(--moderate); }
.posture-card.restore::before  { background: var(--restore); }

.posture-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.posture-card.pursue   .posture-label { color: var(--pursue); }
.posture-card.moderate .posture-label { color: var(--moderate); }
.posture-card.restore  .posture-label { color: var(--restore); }

.posture-card p {
  font-size: 14px;
  margin-bottom: 0;
}

.posture-range {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child th,
tr:last-child td { border-bottom: none; }

th {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface2);
}

td { color: var(--dimmed); line-height: 1.55; }
td:first-child { color: var(--text); font-weight: 400; }

/* ── STEP LIST ── */
.step-list { display: flex; flex-direction: column; gap: 16px; }

.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.step-item p { margin-bottom: 0; font-size: 14px; }

/* ── CONFIDENCE TIERS ── */
.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0;
  font-size: 14px;
}

.tier-list strong {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* ── FOOTER ── */
.site-footer {
  padding: 40px 24px 60px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.section-link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.5;
  text-decoration: none;
  margin-top: 1.25rem;
}

.section-link:hover {
  opacity: 0.85;
}
