/* Shared type and spacing for the marketing site. Page <style> blocks only set colours and page-specific layout. */
:root {
  --page-x: 24px;
  --section-y: 48px;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
}

header.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--page-x) 0;
}

main.hero,
.section {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--section-y) var(--page-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--gap-lg) var(--page-x) 40px;
  font-size: 0.8rem;
  color: #6E6A80;
  border-top: 1px solid var(--border);
}

footer.site-footer a {
  color: #6E6A80;
  border-bottom: 1px solid var(--border);
}

/* Type scale: title (h1), heading (h2), subtitle, body, caption. */
.t-title    { font-family: 'Hanken Grotesk', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.1; }
.t-heading  { font-family: 'Hanken Grotesk', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.t-subtitle { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); max-width: 560px; }
.t-body     { font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.t-caption  { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: rgba(244, 242, 251, 0.55); }

/* Vertical rhythm: space above an element inside a stack. */
.stack-sm > * + * { margin-top: var(--gap-sm); }
.mt-xs { margin-top: var(--gap-xs); }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
