/* ==========================================================================
   Broome Street Labs: shared site styles
   Linked from every page, after tokens.css. Colors and fonts are not defined here:
   they come from tokens.css, which is generated from styles/tokens.json.
   ========================================================================== */

:root {
  /* Colors and fonts come from tokens.css (generated from styles/tokens.json). Load it before this file. */
  --maxw: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; }
h1, h2 { text-wrap: balance; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
}
/* small square, echoing the logo grid */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.72em; height: 0.72em;
  width: 1cap; height: 1cap;
  background: currentColor;
  vertical-align: baseline;
  margin-right: 0.6rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 252, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.6rem 1.1rem;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--link); border-color: var(--link); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--haze); }
.btn.ghost:hover { border-color: var(--navy); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.8125rem; color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
