@font-face {
  font-family: "Borna";
  src: url("../fonts/borna-medium.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Inter is self-hosted rather than loaded from fonts.googleapis.com: a CDN
   request would send every visitor's IP to Google. Variable font, so one file
   covers the whole 100–900 axis. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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 {
  /* Figma variables */
  --color-bg: #fff8f2;
  --color-cream: #f9efe6; /* exhibit / panel surface */
  --color-brown: #a35139; /* Color1 */
  --color-navy: #2c3b4e; /* Color3 */
  --color-dark: #1f1e1d; /* font-dark */
  --color-light: #505050; /* font-light */

  --color-navy-hover: #1a2233;
  --color-rust-hover: #8d422d;
  --color-cream-hover: #f2e6da;
  --color-white: #ffffff;
  --color-border: #f1ebe5; /* hairline on cream */
  --color-border-strong: #e6ded6;
  --color-dot: #f1ebe4; /* dot-grid pattern */
  --color-grid: #f1e9e1; /* square-grid pattern */

  --on-navy: rgba(255, 248, 242, 0.78);
  --on-navy-rule: rgba(255, 248, 242, 0.18);
  --on-rust: rgba(255, 248, 242, 0.82);

  --font-base:
    "Borna", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-inter: "Inter", var(--font-base);

  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-eyebrow: 15px;
  --fs-h1: 60px;
  --fs-h2: 48px;
  --fs-h3: 22px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --container-max: 1280px;
  --pad-x: 42px; /* narrative sections */
  --pad-card: 40px; /* exhibit cards */
  --pad-row: 29px;

  --radius-sm: 4px;
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--color-light);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.main {
  padding: 0 16px;
}

.container.main-content {
  border-left: 1px solid #eae4dd;
  border-right: 1px solid #eae4dd;
}

/* dot grid used behind the narrative sections */
.dots {
  background-image: radial-gradient(var(--color-dot) 1.9px, transparent 1.9px);
  background-size: 32.03px 32.03px;
  background-position: 24px 24px;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 24px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.eyebrow__mark {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: currentColor;
}

.eyebrow--rust {
  color: var(--color-brown);
}

.eyebrow--light {
  color: var(--color-bg);
}

/* Designed line breaks, reproduced from the Figma frame. They only hold at the
   design width (container 1280 = viewport >= 1312); below that headings reflow. */
@media (max-width: 1311px) {
  .lb {
    display: none;
  }
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: 14px;
  }
}

/* vertical rhythm spacers between full-width blocks */
.spacer {
  height: 84px;
}

.spacer--sm {
  height: 82px;
}

/* mobile-only chart legend (see home.css @media max-width:900px) */
.chart-key {
  display: none;
}

.range__section,
.when-to-use-brenwick-section {
  scroll-margin-top: 33px;
}

/* Shared mobile tokens. These previously lived only in home.css, so who-signs
   and research (which do not load it) kept the 42px desktop inset on phones. */
@media (max-width: 900px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 30px;
    --fs-h3: 20px;
    --pad-x: 16px;
    --pad-card: 24px;
    --pad-row: 16px;
  }

  /* Also home.css-only until now, so research and who-signs kept the 84px
     desktop rhythm and showed a bare gap above the footer. */
  .spacer,
  .spacer--sm {
    height: 40px;
  }

  /* Figma mobile eyebrow is 21px tall, not the desktop 24px */
  .eyebrow {
    line-height: 21px;
  }
}
