/* Benchmarq web presence — self-contained, no external assets or fonts.
   Palette mirrors the app (src/constants/theme.ts). Theme-aware. */

:root {
  --ivory: #f4f6f7;
  --chrome: #e9ecee;
  --ink: #16150f;
  --card: #ffffff;
  --muted: #82888d;
  --hairline: #dde1e4;
  --amber: #f0a400;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #16150f;
    --chrome: #1f1e17;
    --ink: #f1f2f0;
    --card: #201f18;
    --muted: #9a9f9c;
    --hairline: #322f25;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 72px;
}

/* Masthead */
header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--chrome);
}
header.site .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark {
  height: 26px;
  width: auto;
  display: block;
}
/* The wordmark art is black; flip it to white on the dark theme so it
   stays legible against the dark chrome. */
@media (prefers-color-scheme: dark) {
  .logo-mark { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .logo-mark { filter: brightness(0) invert(1); }
:root[data-theme="light"] .logo-mark { filter: none; }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-left: 18px;
}
nav.site a:hover { color: var(--ink); }

/* Type */
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 34px 0 8px;
}
h3 { font-size: 17px; margin: 22px 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
p, li { color: var(--ink); }
a { color: var(--amber); }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
ul { padding-left: 22px; }
li { margin: 5px 0; }

.lead { font-size: 19px; color: var(--ink); }

/* Cards / callouts */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.card h2, .card h3 { margin-top: 0; }

.faq h3 { margin-top: 26px; }

/* Hero (index) */
.hero { text-align: center; padding: 40px 0 14px; }
/* The full logo mixes a black wordmark with colored figures, so it can't be
   inverted for dark mode. Seat it on a white plate that reads as an
   intentional brand lockup in both themes. */
.logo-plate {
  display: inline-block;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  .logo-plate { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10); }
}
.logo-full {
  display: block;
  width: 240px;
  max-width: 70vw;
  height: auto;
}
.hero .tag {
  font-size: 20px;
  color: var(--ink);
  margin: 10px 0 4px;
  font-weight: 600;
}
.hero .sub { color: var(--muted); max-width: 40ch; margin: 8px auto 0; }

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}
.links a {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.links a:hover { border-color: var(--amber); }

/* Dot row echoing the category palette */
.dots { display: flex; gap: 7px; justify-content: center; margin: 22px 0; }
.dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Footer */
footer.site {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
footer.site .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); text-decoration: none; margin-left: 16px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--ink); }

.backlink { display: inline-block; margin-top: 40px; font-size: 15px; font-weight: 600; }
