/* fbrk.ai — nameplate: Bricolage Grotesque + IBM Plex. Tokens + masthead. */

@font-face {
  font-family: "Fbrk Display";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fbrk Text";
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fbrk Text";
  src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fbrk Text";
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fbrk Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fbrk Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #eceef1;
  --ink: #12151a;
  --soot: #1a1e24;
  --muted: #5a626c;
  --faint: #858c95;
  --line: #d0d4da;
  --accent: #2a4a7a;
  --ion: #2a4a7a;
  --brass: #2a4a7a;
  --card: #ffffff;
  --ok: #2a5f45;
  --warn: #8a6a1a;
  --hi: #8a3a32;
  --bg: var(--paper);
  --fg: var(--ink);
  --maxw: 840px;
  --font: "Fbrk Text", "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Fbrk Display", "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Fbrk Mono", ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141a;
    --ink: #eceef1;
    --soot: #161a20;
    --muted: #9aa1aa;
    --faint: #6e757e;
    --line: #2a3038;
    --accent: #8aa0bd;
    --ion: #8aa0bd;
    --brass: #8aa0bd;
    --card: #161a20;
    --ok: #5dba72;
    --warn: #e0a13f;
    --hi: #d36b76;
  }
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light dark;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 3px;
}
p { margin: 0; text-wrap: pretty; }
h1, h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  transform: translateY(-220%);
}
.skip:focus {
  transform: none;
}

[id] { scroll-margin-top: 80px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}
@media (max-width: 520px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 22px; height: 22px; display: block; }
.lt-frame { fill: none; stroke: var(--fg); stroke-width: 1.5; opacity: 0.72; }
.lt-node { fill: var(--fg); }
.lt-wire { fill: none; stroke: var(--faint); stroke-width: 1.4; stroke-linecap: round; }
.lt-out { fill: var(--ion); }
.wm {
  font-family: var(--display);
  font-weight: 620;
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.wm-sub {
  display: none;
}

.langs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.langs a { color: var(--faint); }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="true"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--fg); }
.talk {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.talk:hover { opacity: 0.62; color: var(--fg); }
@media (max-width: 760px) {
  header.nav {
    background: var(--bg);
    backdrop-filter: none;
  }
  .nav-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 0 8px;
    gap: 10px;
  }
  .nav-end {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-links a:not(.pill):not(.talk) { display: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: var(--fg);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: opacity .15s;
}
.pill:hover { opacity: 0.82; color: var(--bg); }
.pill-accent {
  background: var(--fg);
  color: var(--bg);
}
.pill-accent:hover { opacity: 0.82; color: var(--bg); background: var(--fg); }
.pill-ghost {
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  padding-left: 4px;
  padding-right: 4px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.pill-ghost:hover { opacity: 1; color: var(--fg); box-shadow: inset 0 -1px 0 var(--fg); }
