@font-face {
  font-family: Inter;
  src: url('./fonts/inter/latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --font-sans: Inter, Arial, sans-serif;
  --font-code: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --tracking-small: .01em;
  --wordmark-filter: none;

  --color-ink: #0d1529;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-action: #4260ea;
  --color-action-hover: #3654db;
  --color-border: #e8eaf0;
  --color-canvas: #ffffff;
  --color-panel: #fcfcfe;
  --color-selected: #edf0fe;
  --color-link: #4260ea;
  --color-link-hover: #3654db;
  --color-on-action: #ffffff;
  --color-control-border: #8693a8;

  --color-cyan: #80ddf8;
  --color-blue: #7fb2ff;
  --color-lavender: #c7b7ff;
  --color-pink: #f2b8dc;
  --color-gold: #f5d98e;
}

:root.dark, [data-theme="dark"] {
  color-scheme: dark;
  --wordmark-filter: brightness(0) invert(1);
  --color-ink: #edf2ff;
  --color-text: #c4cede;
  --color-muted: #93a2b8;
  --color-action: #4260ea;
  --color-action-hover: #4b67ed;
  --color-border: #2b3a54;
  --color-canvas: #0d1529;
  --color-panel: #131e33;
  --color-selected: #202f55;
  --color-link: #9dbbff;
  --color-link-hover: #bfd0ff;
  --color-on-action: #ffffff;
  --color-control-border: #62718d;
}

.text-display, .text-heading, .text-subheading, .text-lead,
.text-body, .text-supporting, .text-compact, .text-code {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-text);
}

.text-display, .text-heading, .text-subheading {
  color: var(--color-ink);
}

.text-display {
  font-size: clamp(2.4375rem, 3.9vw, 3.5625rem);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.text-heading {
  font-size: clamp(1.5625rem, 2vw, 1.75rem);
  font-weight: 350;
  line-height: 1.3;
}

.text-subheading {
  font-size: 1rem;
  line-height: 1.5;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-body {
  font-size: 1rem;
  line-height: 1.65;
}

.text-supporting {
  font-size: .875rem;
  line-height: 1.65;
  letter-spacing: var(--tracking-small);
}

.text-compact {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: var(--tracking-small);
}

.text-code {
  font-family: var(--font-code);
  font-size: .8125rem;
  line-height: 1.7;
}

.text-code > code {
  font: inherit;
}

.text-emphasis {
  font-weight: 500;
}

.text-inline-code {
  font-family: var(--font-code);
  font-size: .86em;
  line-height: inherit;
  letter-spacing: normal;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 1.5rem;
  flex-shrink: 0;
  filter: var(--wordmark-filter);
}

.brand-wordmark-large {
  height: 1.875rem;
}

.brand-symbol {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
