/* bad.ventures public site. Colours are the operator's exact brand palette, and nothing else:
   tests/unit/site.test.mjs fails on any other colour. Accent-hover is for hover and focus only. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #0F1218;
  --surface: #1E232C;
  --border: #262C36;
  --border-soft: #1D222B;
  --text: #EDEFF3;
  --muted: #B4BAC5;
  --faint: #8C93A0;
  --accent: #FF5B1F;
  --accent-hover: #FF7A45;
  --blue: #7AB3FF;
  --purple: #B8A3FF;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; border-radius: 6px; }

/* The wordmark's orange full stop is the site's one piece of punctuation colour. */
.dot { color: var(--accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--text); color: var(--ground); border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; color: var(--ground); }

.wordmark { font-weight: 700; letter-spacing: -0.025em; color: var(--text); text-decoration: none; font-size: 23px; line-height: 1; white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.wordmark-sm { font-size: 20px; }
.top .wordmark { display: inline-flex; align-items: center; min-height: 44px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--border-soft); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.nav-cta { color: var(--text); border: 1px solid var(--border); padding: 9px 16px; font-weight: 700; }
.nav-wide { display: none !important; }
@media (min-width: 900px) { .nav-wide { display: inline-flex !important; } }

.mono-tag { font-family: var(--mono); font-size: 13px; color: var(--faint); border: 1px dashed var(--faint); border-radius: 4px; padding: 2px 8px; display: inline-block; }
.idx { font-family: var(--mono); font-size: 14px; color: var(--faint); margin-bottom: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cap { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 20px; max-width: 80ch; }

h1 { font-size: 56px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; margin-top: 28px; }
h2 { font-size: 34px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; max-width: 22ch; }
@media (min-width: 720px) { h1 { font-size: 104px; } h2 { font-size: 56px; } }
@media (min-width: 1200px) { h1 { font-size: 136px; } }

.hero { padding: 48px 0 56px; }
@media (min-width: 720px) { .hero { padding: 88px 0 96px; } }
.lede { margin-top: 28px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.lede strong { color: var(--text); font-weight: 700; }
.now { margin-top: 20px; font-size: 16px; color: var(--muted); max-width: 52ch; }
.now b { color: var(--text); }
@media (min-width: 720px) { .lede { font-size: 24px; } }
.hero-fig { margin-top: 56px; }

.section { padding: 72px 0; border-top: 1px solid var(--border-soft); }
@media (min-width: 720px) { .section { padding: 120px 0; } }
.short { margin-top: 20px; color: var(--muted); max-width: 32ch; font-size: 20px; }

/* Drawings. Wide and tall variants swap at 960 px; the hidden one is out of the accessibility tree. */
.diagram { margin-top: 48px; }
.dg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.dg-wide { display: none; }
.dg-tall { max-width: 420px; }
@media (min-width: 960px) { .dg-wide { display: block; } .dg-tall { display: none; } }
.dg-ladder { max-width: 480px; display: block; }

.idea { fill: var(--faint); }
.dead { fill: none; stroke: var(--faint); stroke-width: 1.4; }
.win { fill: var(--accent); }
.gate { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg-node { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.dg-node-dash { fill: var(--ground); stroke: var(--faint); stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg-wall { fill: var(--surface); stroke: var(--border); }
.dg-door { fill: var(--ground); stroke: var(--accent); stroke-width: 2; }
.dg-world { fill: none; stroke: var(--border); stroke-width: 1.5; }
.dg-world-t { font-size: 22px; }
.dg-t { fill: var(--text); font-size: 17px; }
.dg-b { font-weight: 700; }
.dg-m { fill: var(--muted); font-size: 15px; }
.dg-n { fill: var(--faint); font-family: var(--mono); font-size: 13px; }
.dg-n-lg { font-size: 14px; }
.dg-tier { fill: var(--text); font-size: 17px; }
.dg-o { fill: var(--accent); font-size: 16px; font-weight: 700; }
.dg-o-n { fill: var(--accent); font-family: var(--mono); font-size: 14px; }
/* The tall drawings render at about 0.9x on a 360 px phone; this keeps their labels near 13 px. */
.dg-tall .dg-n { font-size: 14px; }
.dg-line { fill: none; stroke: var(--faint); stroke-width: 1.5; }
.dg-line-o { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg-limit { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-ah { fill: var(--faint); }
.dg-ah-o { fill: var(--accent); }
.dg use { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dg-ic-op { color: var(--text); }

.locks { margin-top: 40px; display: grid; gap: 14px; border-top: 1px solid var(--border-soft); padding-top: 28px; }
@media (min-width: 900px) { .locks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.locks li { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.locks .i { color: var(--accent); width: 20px; height: 20px; }

.cols-ev { display: grid; gap: 48px; }
@media (min-width: 960px) { .cols-ev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.cols-ev .diagram { margin-top: 0; }
.tags { display: grid; gap: 10px; margin-top: 32px; color: var(--muted); font-size: 16px; }
.tags li { display: flex; align-items: center; gap: 12px; }
.tag { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; min-width: 76px; text-align: center; }
.tag-verified { color: var(--blue); background: var(--surface); }
.tag-attested { color: var(--purple); background: var(--surface); }
.tag-claimed { color: var(--faint); border: 1px dashed var(--faint); padding: 2px 10px; }

.statement p { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
@media (min-width: 720px) { .statement p { font-size: 64px; } }
.statement .muted { color: var(--faint); }

.section-contact h2 { font-size: 34px; }
@media (min-width: 720px) { .section-contact h2 { font-size: 56px; } }
.mail { display: inline-block; margin-top: 24px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
@media (min-width: 720px) { .mail { font-size: 72px; } }

.foot { border-top: 1px solid var(--border-soft); padding: 40px 0 56px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; color: var(--faint); font-size: 14px; }

.nf { min-height: 70vh; display: flex; align-items: center; }
.nf .lede { margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ground); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ground); }
