/*
  Base layer: reset, design tokens, typography.
  Palette is deliberately warm off-white + oxblood-red, not the default
  blue-gradient-on-white template look. Sharp corners, thin borders,
  monospace accents for a technical/schematic feel over a "SaaS" one.
*/

:root {
  /* Surfaces */
  --color-bg: #f2f0ec;
  --color-bg-alt: #e8e5de;
  --color-surface: #fbfaf7;
  --color-border: #d7d4cb;
  --color-border-soft: #e3e0d8;

  /* Text */
  --color-text: #24252a;
  --color-text-muted: #5b5a60;
  --color-text-faint: #8b898e;

  /* Brand: dark red primary, grey secondary */
  --color-red: #a3372c;
  --color-red-dark: #7c281f;
  --color-red-bright: #8a2c20;
  --color-grey: #6a6970;
  --color-grey-light: #97959b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "IBM Plex Mono", Menlo, Consolas, monospace;

  --container-width: 1120px;
  --radius: 3px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: url("/assets/svg/bg-geometry.svg");
  background-size: 700px 700px;
  background-repeat: repeat;
  background-attachment: fixed;
  /* Randomized per-load by assets/js/app.js so a narrow viewport doesn't
     always crop to the tile's top-left corner; 0 0 without JS. */
  background-position: var(--bg-pos-x, 0) var(--bg-pos-y, 0);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--color-border-soft);
  scroll-margin-top: 88px;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red-bright);
  margin: 0 0 12px;
}

.kicker::before {
  content: "// ";
  color: var(--color-text-faint);
}

.section__heading {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  max-width: 34ch;
}

.section__intro {
  color: var(--color-text-muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-red);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}
