/**
 * Rendered HQ — Site-Specific Styles
 * Pure monochrome: no accent color. The unified whole.
 */

:root {
  --color-accent: var(--r-muted);
  --color-accent-light: var(--r-silver);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* HQ prism: black or white depending on context (inherits --color-primary) */
}

/* ── Post Body ────────────────────────────────────────────────── */

.post-body h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.post-body h3 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.post-body p { margin-bottom: var(--space-md); }
.post-body ul, .post-body ol { padding-left: var(--space-xl); margin-bottom: var(--space-md); line-height: 1.8; }
.post-body blockquote {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-lg);
  color: var(--color-text-muted);
  margin: var(--space-xl) 0;
  font-style: italic;
}
.post-body pre {
  background: var(--color-bg-alt);
  padding: var(--space-lg);
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}
.post-body code {
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}
.post-body pre code { background: none; padding: 0; }
.post-body img {
  border-radius: var(--border-radius);
  margin: var(--space-lg) 0;
}
.post-body a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--color-text-muted); }

/* ── Router page (home signpost) ─────────────────────────────── */

.router-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.router-content {
  text-align: center;
  max-width: 720px;
}

.router-prism {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-xl);
  color: var(--color-primary);
}

.router-page h1 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.router-tagline {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.router-orient {
  color: color-mix(in oklab, var(--color-text) 55%, var(--color-text-muted) 45%);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto var(--space-2xl);
  max-width: 620px;
}

.router-arms {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

/* Carved Inset: card reads as pressed into the page, not floating above it.
   The accent margin marker on the inner-left edge grows from 75% to full
   height on hover/focus. Background tint at rest gives the cards their own
   surface so they don't dissolve into the page copy. */
.router-arm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 4px);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), box-shadow var(--transition);
  width: 320px;
  background: color-mix(in oklab, var(--color-bg-alt) 35%, var(--color-bg) 65%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px var(--color-border);
}

@media (prefers-color-scheme: dark) {
  .router-arm {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      inset 0 0 0 1px var(--color-border);
  }
}

.router-arm::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.router-consulting::before { color: var(--r-gold); }
.router-digital::before { color: var(--r-cyan); }

.router-arm:hover {
  color: inherit;
  background: var(--color-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px var(--color-text-muted);
}

@media (prefers-color-scheme: dark) {
  .router-arm:hover {
    background: var(--color-bg);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 0 0 1px var(--color-text-muted);
  }
}

.router-arm:hover::before,
.router-arm:focus-visible::before {
  opacity: 1;
}

.router-arm:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.router-arm-name {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.router-arm-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.router-differentiator {
  margin: var(--space-xl) auto var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 440px;
  line-height: 1.55;
  min-height: 4.8em;
  transition: opacity 500ms ease;
}

.router-founder {
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.router-founder a {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition);
}

.router-founder a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.router-legal {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.router-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition);
}

.router-legal a:hover,
.router-legal a:focus {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.router-legal a + a::before {
  content: "·";
  margin: 0 var(--space-xs);
  color: var(--color-border);
}

@media (max-width: 600px) {
  .router-arms { flex-direction: column; align-items: center; }
  .router-arm { width: 100%; max-width: none; }
  .router-prism { width: 40px; height: 40px; }
  .router-page h1 { font-size: 1rem; }
  .router-tagline { font-size: 0.9rem; }
  .router-orient { font-size: 0.95rem; }
  .router-legal { font-size: 0.72rem; }
}
