@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090a09;
  --bg-raised: #0d0e0d;
  --surface: #101210;
  --surface-2: #151715;
  --text: #f0f1ec;
  --text-soft: #c7cac2;
  --muted: #898d84;
  --muted-2: #62675f;
  --green: #82ff4f;
  --green-2: #b5ff98;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-green: rgba(130, 255, 79, 0.28);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --nav-height: 68px;
  --container: 1120px;
  --radius: 10px;
}

@view-transition {
  navigation: auto;
}

@keyframes opti-page-out {
  to {
    opacity: 0;
    transform: translateY(-5px) scale(0.995);
  }
}

@keyframes opti-page-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.995);
  }
}

::view-transition-old(root) {
  animation: 140ms ease-in both opti-page-out;
}

::view-transition-new(root) {
  animation: 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both opti-page-in;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(130, 255, 79, 0.025), transparent 34rem),
    var(--bg);
  font-family: Barlow, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

::selection {
  color: #071006;
  background: var(--green);
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green-2);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 62px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }
}
