/* bnblab.io. Tokens and helper classes are in brand.css (from brand/tokens/tokens.css). */

@font-face { font-family: "Sora"; font-weight: 300; font-display: swap; src: url("/fonts/sora-300.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/plex-mono-500.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Dark is the default: Paper on Ink. Light (Ink on Paper) via the header toggle. */
:root {
  --bg: var(--bb-ink); --fg: var(--bb-paper); --fg2: var(--bb-stone); --label: var(--bb-border);
  --line: var(--bb-graphite); --tag-bg: var(--bb-graphite); --tag-fg: var(--bb-paper);
  --btn-bg: var(--bb-paper); --btn-fg: var(--bb-ink); --btn-hover: var(--bb-stone);
  --frame: var(--bb-graphite); --frame-hover: var(--bb-muted);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--bb-paper); --fg: var(--bb-ink); --fg2: var(--bb-graphite); --label: var(--bb-muted);
  --line: var(--bb-border); --tag-bg: var(--bb-stone); --tag-fg: var(--bb-ink);
  --btn-bg: var(--bb-ink); --btn-fg: var(--bb-paper); --btn-hover: var(--bb-graphite);
  --frame: var(--bb-ink); --frame-hover: var(--bb-graphite);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.55 var(--bb-font-text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bb-signal); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

h1, h2 { font-family: var(--bb-font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: 72px; line-height: 1.02; max-width: 20ch; }
h2 { font-size: 40px; line-height: 1.1; }

.label {
  font: 500 13px/1.4 var(--bb-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--label);
  margin: 0;
}

/* Header: lockup on Paper. Gap 0.225 x mark height, cap size 0.41 x mark height. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); }
.logo .bb-wordmark { font-size: 20px; }
.logo-mark { flex: none; }
.top-right { display: flex; align-items: center; gap: 20px; }
.top-mail { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.top-mail:hover { border-color: var(--fg); }
.theme { font: 500 13px/1 var(--bb-font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 14px 8px 10px; background: var(--tag-bg); color: var(--tag-fg); border: 0; cursor: pointer; }

/* Hero: step pattern on Ink. */
.hero { color: var(--bb-paper); padding: 112px 0 120px; border-block: 1px solid var(--bb-graphite); }
.hero .label { color: var(--bb-paper); opacity: .72; margin-bottom: 24px; }
.hero h1 { color: var(--bb-paper); }
.lede { max-width: 36em; margin: 28px 0 0; font-size: 20px; color: var(--bb-stone); }

/* Products */
.products { padding-top: 120px; padding-bottom: 120px; display: grid; gap: 120px; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.product:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product:nth-child(even) .product-text { order: 2; }
.product-text .label { margin-bottom: 16px; }
.product-text h2 { margin-bottom: 20px; }
.product-text > p:not(.label) { margin: 0 0 24px; }
.product-text p:not(.label):not(.tags) { color: var(--fg2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: 500 13px/1 var(--bb-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px 8px 10px;
  background: var(--tag-bg);
  color: var(--tag-fg);
}
.tag.signal { background: var(--bb-signal); color: var(--bb-ink); }

.btn {
  display: inline-block;
  font: 500 16px/1 var(--bb-font-text);
  padding: 15px 28px 15px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
}
.btn:hover { background: var(--btn-hover); }

.shot { display: block; background: var(--frame); padding: 10px; }
.shot img { width: 100%; }
.shot:hover { background: var(--frame-hover); }

/* Contact: supergraphic mark, Ink on Stone, cropped by the frame. */
.contact { position: relative; overflow: hidden; background: var(--bg); color: var(--fg); padding: 112px 0; border-top: 1px solid var(--line); }
.contact .label { margin-bottom: 16px; }
.contact h2 { font-size: 56px; margin-bottom: 20px; }
.mail { font: 300 32px/1.2 var(--bb-font-display); letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--bb-signal); }
.mail:hover { border-bottom-color: var(--bb-ink); }
.super { position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; color: var(--line); }

/* Footer: Paper on Ink. */
.foot { background: var(--bb-ink); color: var(--bb-paper); padding: 40px 0; border-top: 1px solid var(--bb-graphite); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .logo { color: var(--bb-paper); gap: 9px; }
.foot .logo .bb-wordmark { font-size: 16px; }
.foot .label { color: var(--bb-stone); }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .hero { padding: 72px 0 80px; }
  .products { padding-top: 72px; padding-bottom: 72px; gap: 72px; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .product:nth-child(even) .product-text { order: 0; }
  .contact { padding: 72px 0; }
  .contact h2 { font-size: 40px; }
  .mail { font-size: 24px; }
  .super { width: 300px; height: 300px; right: -90px; top: auto; bottom: -70px; opacity: 1; }
}
