/* getbastrax.com — one stylesheet, no build step, no external requests. */

:root {
  color-scheme: light dark;

  --bg:        #ffffff;
  --bg-sunk:   #f6f7f9;
  --fg:        #16181d;
  --fg-muted:  #5b6472;
  --rule:      #e3e6ec;
  --accent:    #1f5fd6;
  --accent-fg: #ffffff;
  --note-bg:   #f0f4fd;
  --note-rule: #c6d6f5;

  --measure: 68ch;
  --gap:     clamp(2.5rem, 6vw, 4.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #101216;
    --bg-sunk:   #171a20;
    --fg:        #e8eaee;
    --fg-muted:  #99a2b0;
    --rule:      #272b33;
    --accent:    #7aa5f5;
    --accent-fg: #101216;
    --note-bg:   #161c28;
    --note-rule: #2b3a55;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a { color: var(--fg-muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--fg); text-decoration: underline; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}

p { max-width: var(--measure); margin: 0 0 1rem; }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 56ch;
}

a { color: var(--accent); }

.muted { color: var(--fg-muted); }
.small { font-size: 0.92rem; }

/* ---------- sections ---------- */

section { padding: var(--gap) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

.hero { padding-top: clamp(3rem, 8vw, 5.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 1.1rem;
}

/* ---------- pipeline ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.steps p { margin: 0; font-size: 0.96rem; color: var(--fg-muted); }

/* ---------- fit / anti-fit ---------- */

.fit {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 1.75rem;
}

.fit ul { margin: 0; padding-left: 1.15rem; }
.fit li { margin-bottom: 0.5rem; color: var(--fg-muted); }
.fit li strong { color: var(--fg); font-weight: 600; }

/* ---------- callout ---------- */

.note {
  background: var(--note-bg);
  border: 1px solid var(--note-rule);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0 0;
}

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

/* ---------- about ---------- */

.about {
  background: var(--bg-sunk);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 1.5rem;
}

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

/* ---------- contact ---------- */

.contact-line {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

/* ---------- prose (privacy page) ---------- */

.prose h2 { margin-top: 2.75rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose dl { max-width: var(--measure); margin: 0 0 1rem; }
.prose dt { font-weight: 600; margin-top: 0.9rem; }
.prose dd { margin: 0.15rem 0 0; color: var(--fg-muted); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.94rem;
}

.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.prose th { font-weight: 600; }
.prose td { color: var(--fg-muted); }

.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.site-foot p { max-width: var(--measure); }
.site-foot a { color: var(--fg-muted); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- a11y ---------- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
