/* Bouchard Labs · site styles
   Every color, size and space comes from tokens.css (loaded first). This file
   holds no color literals; `npm run check` fails if one appears. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { text-wrap: balance; }
em { font-style: normal; color: var(--accent); }

.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  margin: 0;
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Off-screen until focused, so keyboard users can jump past the nav. */
.skip {
  position: absolute; left: var(--space-2); top: -100px; z-index: 10;
  padding: 10px var(--space-2); border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--space-2); }

/* ---------- Nav ---------- */
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-block: 18px;
}
/* Lockup per BRAND-THEME.md §2: mark 1.75× the type, gap 0.35×. */
.lockup {
  display: inline-flex; align-items: center; gap: .35em;
  min-height: 44px;
  font-size: 20px; font-weight: 700; letter-spacing: -.045em;
  color: var(--text); text-decoration: none;
}
.lockup img { width: 1.75em; height: 1.75em; flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  display: inline-block; padding-block: 12px;
  color: var(--text); text-decoration: none; font-size: var(--fs-small);
}
.nav ul a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
/* The headline takes the full row so "Creative software." holds one line on
   wide screens (chosen Oct 4, 2026 over a three-line version); the mark sits
   beside the supporting line instead of beside the headline. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head head" "copy mark";
  gap: var(--space-3) var(--space-6);
  align-items: start;
  padding-block: var(--space-8) var(--space-section);
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero h1 {
  grid-area: head;
  margin: 0;
  font-size: var(--fs-display); font-weight: 800;
  letter-spacing: var(--tracking-display); line-height: var(--lh-tight);
}
.hero h1 span, .hero h1 em { display: block; }
.lead {
  margin: 0 0 var(--space-4);
  max-width: 40ch;
  font-size: var(--fs-lead); line-height: 1.45;
  color: var(--text-muted);
}
/* The mark's viewBox carries 10 of 64 units of empty space beside the stem and
   beside the bowl. Pulling the box out by that much puts the visible b on the
   content edge: bowl flush right on desktop, stem flush left on phones. */
.hero-mark {
  --mark: 200px;
  grid-area: mark;
  /* No max-width: its auto column is sized net of the negative margin, so a
     percentage cap would shrink the mark and undo the offset. */
  width: var(--mark); max-width: none;
  margin-inline-end: calc(var(--mark) * -10 / 64);
  overflow: visible;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.more { display: inline-block; padding-block: 12px; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
section { padding-block: var(--space-section); border-top: 1px solid var(--border); }
section .label + h2 { margin-top: var(--space-2); }
h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-h2); font-weight: 800;
  letter-spacing: -.045em; line-height: 1;
}

/* Generic product card: identical for every product. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-2);
}
.card {
  display: grid; gap: 12px; align-content: start; min-width: 0;
  padding: clamp(var(--space-3), 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card h3 {
  margin: 0;
  font-size: var(--fs-h3); font-weight: 700;
  letter-spacing: var(--tracking-heading); line-height: 1.1;
}
.card p { margin: 0; color: var(--text-muted); }
.card .tag {
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
  margin: 0; padding: 0; list-style: none;
}
.values li { min-width: 0; }
.values li::before {
  content: ""; display: block;
  width: 36px; height: 8px; margin-bottom: 14px;
  border-radius: 4px; background: var(--accent);
}
.values h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.values p { margin: 0; color: var(--text-muted); }

.contact { text-align: center; }
.contact .mail { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.contact .mail a { text-decoration: none; overflow-wrap: anywhere; }
.contact .mail a:hover { text-decoration: underline; text-underline-offset: 6px; }

footer { padding-block: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "copy"; padding-top: var(--space-4); }
  /* On a phone the nav lockup sits a few hundred pixels above, so a second,
     larger b reads as an echo and pushes the headline down. The hero mark is
     optional (BRAND-THEME.md §6); it stays on wider screens. Decided Oct 4, 2026. */
  .hero-mark { display: none; }
}

/* All motion lives here and nowhere else (checked). On load the ring slides
   into the stem and the overlap deepens, per BRAND-THEME.md §6. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-mark .bowl { animation: bl-settle .6s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-mark .overlap { animation: bl-deepen .6s ease-out both; }
  @keyframes bl-settle { from { transform: translateX(8px); } to { transform: none; } }
  @keyframes bl-deepen { from { opacity: 0; } to { opacity: 1; } }
}
