@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #fbf9f7;
  --foreground: #1d1a16;
  --ink: var(--foreground);
  --body-text: #3f3a33;
  --muted-foreground: #6d655a;
  --faint: #81786c;
  --border: #e4ddd5;
  --border-strong: #c9bfb2;
  --card: #fdfbf9;
  --muted: #f1ede7;
  --muted2: #ece6de;
  --accent: #536b56;
  --accent-strong: #3b5845;
  --accent-deep: #2c4334;
  --accent-soft: #eef0e8;
  --serif: "Newsreader", Georgia, serif;
  --sans: var(--serif);
  --mono: "JetBrains Mono", monospace;

  /* Shared type scale, based on Products. Page CSS supplies layout only for
     these roles; responsive sizes change here for every page together. */
  --text-title: 58px;
  --text-section: 34px;
  --text-subheading: 25px;
  --text-feature: 44px;
  --text-lead: 21px;
  --text-body: 19px;
  --text-callout: 20px;
  --text-control: 18px;
  --text-meta: 16px;
  --text-caption: 15px;
  --text-detail: 14px;
  --text-table: 13px;
  --text-label: 12px;
  --text-chart: 11px;
  --text-chart-small: 10px;
  --text-control-icon: 22px;
  --leading-heading: 1.1;
  --leading-subheading: 1.25;
  --leading-lead: 1.55;
  --leading-body: 1.5;
  --tracking-title: -.02em;
  --tracking-section: -.015em;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  scrollbar-gutter: auto;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-meta);
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }

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

a:hover { opacity: .7; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--muted-foreground);
  outline-offset: 6px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 16px;
  background: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 64px;
}

.site-wordmark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 170px;
  height: 30px;
  overflow: hidden;
}

.site-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-foreground);
  font-size: var(--text-control);
}

.site-header nav { min-width: 0; }
.site-nav a { white-space: nowrap; }

.site-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  width: calc(100% - 128px);
  max-width: 1152px;
  margin: 0 auto;
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: var(--leading-body);
}

.site-footer .footer-wordmark {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 800px) {
  .site-header { padding: 30px 32px; }
  .site-nav { gap: 28px; }
  .site-footer { width: calc(100% - 64px); }
}

/* The wordmark and four links stop fitting one row at about 650px: stack them,
   and keep the links on a single line down to a 320px phone. */
@media (max-width: 660px) {
  .site-header {
    flex-direction: column;
    gap: 22px;
    padding: 28px 24px 0;
  }

  .site-header nav { width: 100%; }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
    font-size: clamp(14px, 4.4vw, var(--text-control));
  }
}

@media (max-width: 600px) {
  :root {
    --text-title: 44px;
    --text-section: 30px;
    --text-subheading: 24px;
    --text-feature: 36px;
    --text-lead: 19px;
    --text-callout: 19px;
  }

  .site-footer { width: calc(100% - 48px); }
}
