/*
 * Base styles for every web page. Colors, type and space come only from tokens.css. The literal sizes have no
 * token: the 2 px focus ring (the Figma Atoms Focus state stroke), the 24 px icon (Figma Foundations: Phosphor
 * regular at 24 px), 1 px borders, and the grid breakpoints, since media queries can't read custom properties.
 */

/* Fonts: self-hosted, latin subset, only the weights the 19 Figma text styles use. Licenses: vendor/fonts/fonts.LICENSE */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/vendor/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/vendor/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/vendor/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/vendor/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/vendor/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/vendor/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/vendor/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Body text style: Body/Body */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--text-body-body);
  letter-spacing: var(--text-body-body-tracking);
}

h1 {
  font: var(--text-heading-h1);
  letter-spacing: var(--text-heading-h1-tracking);
}

h2 {
  font: var(--text-heading-h2);
  letter-spacing: var(--text-heading-h2-tracking);
}

h3 {
  font: var(--text-heading-h3);
  letter-spacing: var(--text-heading-h3-tracking);
}

code,
kbd,
samp,
pre {
  font: var(--text-mono-mono-s);
  letter-spacing: var(--text-mono-mono-s-tracking);
}

a {
  color: var(--color-accent-text);
}

/* Focus ring: keyboard focus only */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 0;
}

/* Layout grid: Figma Grid/Mobile 4, Grid/Tablet 8, Grid/Desktop 12 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--space-md);
  padding-inline: var(--space-md);
}

@media (min-width: 834px) {
  .grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: var(--space-lg);
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1440px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-lg);
    padding-inline: var(--space-2xl);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Icons: sprite symbols drawn in currentColor */
.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
