/* Shared tokens, document defaults and accessibility. */
:root {
  color-scheme: dark;
  --bg: #080b10;
  --text: #f3f5f8;
  --muted: #a6afbe;
  --line: #252b35;
  --accent: #78aeff;
  --max: 1160px;
  --header-clearance: calc(5rem + 40px);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-clearance);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

::selection {
  color: #fff;
  background: #285996;
}

.container {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 600;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: 0;
}

@media (max-width: 1000px) {
  .container {
    width: calc(100% - 64px);
  }
}

@media (max-width: 650px) {
  :root {
    --header-clearance: calc(8rem + 32px);
  }

  .container {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
