@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
}

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

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #080e19;
  --page-deep: #050a12;
  --surface: #0d1726;
  --surface-raised: #122239;
  --surface-glass: rgba(16, 31, 49, .76);
  --line: rgba(158, 206, 236, .16);
  --line-strong: rgba(140, 208, 246, .32);
  --text: #f1f7fb;
  --muted: #a8bbca;
  --accent: #69d5ff;
  --accent-bright: #a5edff;
  --content: 1180px;
  --font-display: "Space Grotesk", "Bahnschrift", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #357da2;
  color: #fff;
}

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

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

button,
select {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1,
h2 {
  letter-spacing: -.065em;
  line-height: 1.08;
}

h1 em,
h2 em {
  color: var(--accent-bright);
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -.05em;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.2rem, 6vw, 5.6rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .65rem;
  left: .65rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--page);
  border-radius: .5rem;
  font-weight: 700;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--content), calc(100% - 2rem));
  }
}
