/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* ARCOIS parent brand — restrained, company-register */
  --bg:          #F7F5EF;   /* warm white, same register as MEC */
  --text:        #1A1A1A;
  --brand-dark:  #1E2433;   /* deep navy — ARCOIS-specific anchor */
  --brass:       #C49A2E;   /* exact shared thread with MEC palette */
  --muted:       #6B7280;
  --border:      #E8E4D9;
  --card-bg:     #FFFFFF;

  /* MEC product card accent — olive from MEC's palette */
  --mec-olive:   #4A5240;
  --mec-olive-bg:#EFF2EC;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--brand-dark);
  display: inline-block;
}

.wordmark::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--brass);
  margin-top: 4px;
  border-radius: 1px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Section labels ─────────────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2rem;
}

/* ── Products ───────────────────────────────────────────────────────── */
.products {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 3px;
  padding: 2rem;
}

.product-card--mec   { border-left-color: var(--mec-olive); }
.product-card--future { border-left-color: var(--border); opacity: 0.72; }

.product-card__header { margin-bottom: 1rem; }

.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.status-badge--live {
  color: var(--mec-olive);
  background: var(--mec-olive-bg);
}

.status-badge--soon {
  color: var(--muted);
  background: #EEECE6;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.65rem;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.product-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brass);
  text-decoration: none;
}

.product-link:hover { text-decoration: underline; }

/* ── Philosophy ─────────────────────────────────────────────────────── */
.philosophy {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

blockquote {
  max-width: 640px;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
}

blockquote p {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brand-dark);
  font-style: italic;
  margin-bottom: 1.25rem;
}

blockquote footer {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
}

/* ── Contact ────────────────────────────────────────────────────────── */
.contact {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.contact p {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact a {
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: none;
}

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

/* ── Header variants ────────────────────────────────────────────────── */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark { text-decoration: none; }

.back-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--brand-dark); }

/* ── Hero compact (subpages) ─────────────────────────────────────────── */
.hero--compact {
  padding: 4rem 0 3rem;
}

/* ── Stack / colophon ────────────────────────────────────────────────── */
.stack-section {
  padding: 1rem 0 5rem;
}

.stack-group {
  padding: 3rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.stack-group:first-child {
  border-top: none;
  margin-top: 0;
}

.stack-list {
  display: grid;
  gap: 1.5rem;
}

.stack-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1.5rem;
  align-items: baseline;
}

@media (max-width: 600px) {
  .stack-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

.stack-item dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.stack-item dd {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.stack-link {
  color: var(--brand-dark);
  text-decoration: none;
}

.stack-link:hover { color: var(--brass); }

.stack-affiliate {
  font-size: 0.75rem;
  color: var(--muted);
  vertical-align: super;
}

.stack-privacy-link {
  margin-top: 3.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stack-privacy-link a {
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: none;
}

.stack-privacy-link a:hover { text-decoration: underline; }

/* ── Humans section ──────────────────────────────────────────────────── */
.humans-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.humans-list {
  display: grid;
  gap: 2.5rem;
}

.human-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.human-name a {
  color: inherit;
  text-decoration: none;
}

.human-name a:hover { color: var(--brass); }

.human-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

.stack-disclosure {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Footer nav ──────────────────────────────────────────────────────── */
.footer-nav {
  font-size: 0.8rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--brand-dark); }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy, .footer-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
