@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --panel: #e6eaf2;
  --ink: #111629;
  --muted: #586078;
  --line: #dbe0ea;
  --violet: #6a33e6;
  --signal: #f0661c;
  --measure: 36rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--violet);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.bar nav a {
  text-decoration: none;
}

.bar nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.pill-dark {
  background: var(--ink);
  color: #fff;
}

.pill-dark:hover {
  background: var(--violet);
  color: #fff;
}

.pill-line {
  border: 1px solid #c9d0dd;
  color: var(--ink);
  background: var(--surface);
}

.pill-line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Footer */

.foot {
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot a {
  text-decoration: none;
}

/* Legal pages */

.doc {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.doc h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 3rem 0 0.75rem;
}

.doc h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.doc p,
.doc li {
  color: #333b52;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.6rem;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 40rem) {
  .bar nav {
    gap: 1rem;
  }

  .bar .pill {
    display: none;
  }
}
