/* Dark Gravity Labs brand kit, "Night reel": the black-hole bar, an ember accent, mono labels.
   Light by default; dark when the device asks for it (prefers-color-scheme). Yannik's pick 123,
   2026-10-28. Shared by darkgravitylabs.com and work.darkgravitylabs.com. Source of truth: the
   brand kit folder final/brand/. Never edit a copy: edit the source, then run sync-brand
   (homepage) and build.py (work). Shared rules only; page layouts live in each site's own CSS,
   which reads only these variables, so it follows the scheme. Every asset sits flat under /assets/.
   Fonts: Outfit and JetBrains Mono, self-hosted, SIL OFL 1.1 (OFL.txt, OFL-JetBrainsMono.txt). */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/outfit-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/outfit-latin.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/jetbrains-mono-latin-500.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 {
  color-scheme: light dark;
  --bg: #faf8f5;
  --surface: #f0ece6;
  --fg: #16161a;
  --fg-soft: #3f3f46;
  --muted: #6b6560;
  --border: #e4ded6;
  --hairline: rgba(22, 22, 26, 0.10);
  /* ember, burnt so it reads on light: 5.1:1 on --bg, 4.6:1 on --surface, white text 5.4:1 */
  --accent: #ad4f1d;
  --accent-soft: rgba(173, 79, 29, 0.08);
  --button-bg: #ad4f1d;
  --button-fg: #ffffff;
  /* the peach ember of B stays on the dark bar (10:1 there) */
  --bar-cta-bg: #f0a878;
  --bar-cta-fg: #140b05;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* spacing and shape */
  --col: 760px;
  --pad: 40px;
  --wide: min(1280px, 94vw);
  --top: 40px;
  --bar: 60px;
  --radius: 14px;
  --rule: 1px solid var(--border);
  --card-shadow: 0 1px 2px rgba(40, 24, 10, 0.06), 0 14px 30px -16px rgba(40, 24, 10, 0.30);
  --ghost-hover: #e7e1d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #131316;
    --fg: #eef1f2;
    --fg-soft: #c2c9d1;
    --muted: #8b95a5;
    --border: #26282e;
    --hairline: rgba(255, 255, 255, 0.10);
    /* on dark the ember is the bar's peach: 10:1 on --bg */
    --accent: #f0a878;
    --accent-soft: rgba(240, 168, 120, 0.12);
    --button-bg: #f0a878;
    --button-fg: #140b05;
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
    --ghost-hover: #1c1d22;
  }
}
@media (max-width: 600px) {
  :root { --pad: 18px; --top: 28px; --bar: 54px; --wide: calc(100vw - 36px); --radius: 12px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
body {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--fg-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); color: var(--fg); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.7em; letter-spacing: -0.025em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.05em; }
p { text-wrap: pretty; }
strong { color: var(--fg); font-weight: 600; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Mono label, as in mdbin's eyebrows and section numbers */
.dgl-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Buttons: solid fill, small radius; .ghost is the quieter second button */
a.cta {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 600;
  line-height: 1.4;
  transition: opacity 0.15s, transform 0.1s;
}
a.cta:hover { opacity: 0.88; }
a.cta:active { transform: translateY(1px); }
a.cta.ghost { background: var(--surface); color: var(--fg); }
a.cta.ghost:hover { opacity: 1; background: var(--ghost-hover); }

/* Header: a slim bar over the black-hole image, not sticky */
.dgl-header {
  position: relative;
  overflow: hidden;
  background: #08080a;
}
.dgl-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/assets/dgl-hero.webp) 50% 52% / max(1200px, 100%) auto no-repeat;
  opacity: 0.85;
}
.dgl-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.45) 50%, rgba(8, 8, 10, 0.92) 100%);
}
.dgl-bar {
  position: relative;
  z-index: 1;
  height: var(--bar);
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dgl-header a { border: 0; }
.dgl-mark { display: none; }
.dgl-wordmark {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}
.dgl-nav { display: flex; align-items: center; gap: 22px; }
.dgl-nav a {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}
.dgl-nav a:hover { color: #fff; }
.dgl-nav a.dgl-nav-cta { padding: 8px 13px; border-radius: 6px; background: var(--bar-cta-bg); color: var(--bar-cta-fg); }
.dgl-nav a.dgl-nav-cta:hover { opacity: 0.88; color: var(--bar-cta-fg); }

/* Footer: one row on a dark surface, entity line under it */
.dgl-footer { max-width: var(--wide); margin: 56px auto 0; padding: 22px 0 28px; border-top: var(--rule); }
.dgl-footer-row { display: flex; align-items: center; gap: 14px; }
.dgl-bio-photo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.dgl-bio-text { flex: 1; min-width: 0; }
.dgl-bio-name { font-weight: 600; color: var(--fg); line-height: 1.3; }
.dgl-bio-desc { font-size: 0.9em; color: var(--muted); line-height: 1.45; max-width: 64ch; }
.dgl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.9em; }
.dgl-meta a { color: var(--fg-soft); }
.dgl-meta a.dgl-meta-cta { padding: 8px 14px; border-radius: 8px; background: var(--button-bg); color: var(--button-fg); font-weight: 600; border: 0; }
.dgl-legal { margin-top: 14px; font-family: var(--mono); font-size: 0.7em; letter-spacing: 0.04em; color: var(--muted); }

@media (max-width: 600px) {
  .dgl-wordmark { font-size: 0.68rem; letter-spacing: 0.14em; }
  .dgl-nav { gap: 14px; }
  .dgl-nav a { font-size: 0.68rem; letter-spacing: 0.08em; }
  .dgl-nav a.dgl-nav-cta { padding: 7px 10px; }
  .dgl-footer { margin-top: 40px; }
  .dgl-footer-row { flex-wrap: wrap; align-items: flex-start; }
  .dgl-bio-text { flex-basis: calc(100% - 62px); }
  .dgl-meta { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (prefers-color-scheme: dark) {
  .dgl-header { border-bottom: var(--rule); }
}
