/* BMP Research LLC — site styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --fg: #14171a;
  --fg-muted: #5b636b;
  --fg-faint: #858d95;
  --border: #e3e6ea;
  --accent: #2b5cd9;
  --accent-fg: #ffffff;
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.04), 0 8px 24px rgba(16, 20, 24, 0.05);
  --radius: 12px;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #14171d;
    --bg-elev: #171b22;
    --fg: #e8eaed;
    --fg-muted: #a3abb5;
    --fg-faint: #79818b;
    --border: #262b34;
    --accent: #7ea2ff;
    --accent-fg: #0f1115;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- layout ---------- */

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

main {
  flex: 1 0 auto;
  padding: 8px 0 72px;
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

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

header.site {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

nav.site {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

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

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--fg);
}

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

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 650;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 620;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  font-weight: 620;
}

p {
  margin: 0 0 16px;
  color: var(--fg-muted);
}

.lead {
  font-size: 19px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

ul {
  color: var(--fg-muted);
  padding-left: 22px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 6px;
}

.hero {
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}

.updated {
  font-size: 14px;
  color: var(--fg-faint);
  margin-bottom: 32px;
}

/* ---------- components ---------- */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-size: 15px;
}

.note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

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

dl.contact {
  margin: 0;
}

dl.contact dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 18px;
}

dl.contact dd {
  margin: 4px 0 0;
  color: var(--fg-muted);
}

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

footer.site {
  flex: none;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--fg-faint);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site nav {
  display: flex;
  gap: 18px;
}

footer.site a {
  color: var(--fg-faint);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--fg);
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  header.site {
    position: static;
  }
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
