/* Aram Algorithm — Style Specification
   Regulator-Grade, Evidence-First AI Accountability
   Design principle: Colors indicate state and function, not decoration.
*/

:root {
  /* Primary palette - Authority, seriousness */
  --charcoal: #1a1a1a;
  --near-black: #0d0d0d;
  --off-white: #f7f7f5;
  --light-gray: #e8e8e6;
  --mid-gray: #6b6b6b;
  --border-gray: #d1d1cf;
  
  /* Secondary - State indicators only */
  --muted-red: #8b3a3a;
  --muted-blue: #3a5a8b;
  
  /* Typography scale */
  --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  
  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;
  
  /* Max widths */
  --max-width: 1100px;
  --max-width-narrow: 720px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--off-white);
}

/* Typography - Precise, compact, no flourish */
h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

/* Links */
a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--muted-blue);
}

/* Header - Minimal, functional */
.site-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-gray);
  background: var(--off-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--charcoal);
}

.nav-main {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-main a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--mid-gray);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--charcoal);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--mid-gray);
  text-decoration: none;
}

.linkedin-link:hover {
  color: var(--charcoal);
}

.linkedin-link svg {
  width: 16px;
  height: 16px;
}

/* Primary CTA Button - Restrained */
.btn-primary {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-primary);
  text-decoration: none;
  color: var(--off-white);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover {
  background: var(--near-black);
  color: var(--off-white);
}

/* Secondary CTA */
.btn-secondary {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-primary);
  text-decoration: none;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--border-gray);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* Main content container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* Section spacing - Generous whitespace, strong vertical rhythm */
.section {
  margin-bottom: var(--space-xxl);
}

.section:last-child {
  margin-bottom: 0;
}

/* Hero section */
.hero {
  margin-bottom: var(--space-xxl);
}

.hero h1 {
  font-size: 2.25rem;
  max-width: 20ch;
}

.hero .subhead {
  font-size: 1.0625rem;
  color: var(--mid-gray);
  max-width: 60ch;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Lane split tiles */
.lane-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.lane-tile {
  padding: var(--space-lg);
  border: 1px solid var(--border-gray);
  background: white;
}

.lane-tile h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.lane-tile p {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  margin-bottom: var(--space-md);
}

.lane-tile a {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Section headers */
.section-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-gray);
}

/* Artifact list */
.artifact-list {
  list-style: none;
}

.artifact-list li {
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.artifact-list li::before {
  content: "—";
  color: var(--mid-gray);
  flex-shrink: 0;
}

.artifact-list li:last-child {
  border-bottom: none;
}

/* Failure conditions list - Muted red indicator */
.failure-list {
  list-style: none;
}

.failure-list li {
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.failure-list li::before {
  content: "✕";
  color: var(--muted-red);
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.failure-list li:last-child {
  border-bottom: none;
}

/* Trigger list */
.trigger-list {
  list-style: none;
}

.trigger-list li {
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.trigger-list li::before {
  content: "→";
  color: var(--mid-gray);
  flex-shrink: 0;
}

.trigger-list li:last-child {
  border-bottom: none;
}

/* Scope lock / "What we are not" */
.scope-list {
  list-style: none;
}

.scope-list li {
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
}

.scope-list li:last-child {
  border-bottom: none;
}

/* Info box */
.info-box {
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--border-gray);
  margin: var(--space-lg) 0;
}

.info-box p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Workflow coverage grid */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.workflow-column h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-gray);
}

.workflow-column ul {
  list-style: none;
}

.workflow-column li {
  font-size: 0.875rem;
  padding: var(--space-xs) 0;
  color: var(--charcoal);
}

/* Engagement options */
.engagement-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.engagement-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-gray);
  background: white;
}

.engagement-card h3 {
  margin-bottom: var(--space-sm);
}

.engagement-card p {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  margin-bottom: var(--space-md);
}

/* Pilot steps */
.pilot-steps {
  margin: var(--space-md) 0;
}

.pilot-steps h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--mid-gray);
}

.pilot-steps ol {
  list-style: none;
  counter-reset: step;
}

.pilot-steps li {
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  counter-increment: step;
  display: flex;
  gap: var(--space-sm);
}

.pilot-steps li::before {
  content: counter(step) ".";
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mid-gray);
  min-width: 1.5rem;
}

/* Team page */
.team-intro {
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-xl);
}

.team-intro p {
  font-size: 1.0625rem;
  color: var(--mid-gray);
  line-height: 1.7;
}

.team-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--mid-gray);
  margin-bottom: var(--space-md);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.team-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-gray);
  background: white;
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.team-avatar {
  width: 56px;
  height: 56px;
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid-gray);
  flex-shrink: 0;
}

.team-card-title h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-card-title .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

.team-outcome {
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  max-width: none;
}

.team-expertise {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--off-white);
  border-left: 2px solid var(--border-gray);
}

.team-expertise h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  margin-bottom: var(--space-xs);
}

.team-expertise ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-expertise li {
  font-size: 0.8125rem;
  color: var(--charcoal);
  padding: 0.25rem 0;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--mid-gray);
  margin-bottom: var(--space-sm);
  max-width: none;
}

.team-talk {
  font-size: 0.8125rem;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  max-width: none;
}

.team-talk strong {
  font-weight: 500;
}

.team-linkedin {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
}

.team-linkedin:hover {
  color: var(--muted-blue);
}

/* Legacy team grid - kept for backwards compatibility */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  padding: var(--space-lg);
  border: 1px solid var(--border-gray);
  background: white;
}

.team-member h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-member .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-bottom: var(--space-sm);
}

.team-member p {
  font-size: 0.875rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-gray);
  padding: var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.scope-notice {
  font-size: 0.8125rem;
  color: var(--mid-gray);
  max-width: 60ch;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--mid-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-links a:hover {
  color: var(--charcoal);
}

.footer-links svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
  }
  
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .nav-main {
    order: 3;
    width: 100%;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--light-gray);
    margin-top: var(--space-sm);
  }
  
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .lane-split {
    grid-template-columns: 1fr;
  }
  
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .engagement-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-right {
    gap: var(--space-sm);
  }
  
  .linkedin-link span {
    display: none;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    text-align: center;
  }
}
