:root {
  --color-bg: #ffffff;
  --color-text-active: rgb(34, 34, 34);
  --color-text-inactive: rgb(112, 112, 112);
  --color-divider: rgb(232, 230, 230);
  --font-body: 'Anybody', sans-serif;
  --backdrop-ink: rgba(67, 67, 67, 0.16);
  --depth-a: rgba(191, 144, 0, 0.18);
  --depth-b: rgba(67, 67, 67, 0.14);
  --depth-c: rgba(191, 144, 0, 0.1);
}

@font-face {
  font-family: 'Anybody';
  src: url('/fonts/anybody-variable.woff2') format('woff2-variations'),
       url('/fonts/anybody-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-active);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem 3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text-inactive);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-text-active);
}

.nav-divider {
  width: 1px;
  height: 1.1rem;
  background: var(--color-divider);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text-active);
}

.nav-overlay {
  display: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.logo {
  width: min(90vw, 700px);
  height: auto;
}

.logo-dark {
  display: none;
}

.page-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.page-text {
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-active);
}

.page-text a {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-inactive);
}

@media (max-width: 768px) {
  .site-header {
    z-index: 20;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    background: var(--color-bg);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }

  .nav-divider {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text-active: rgb(245, 245, 245);
    --color-text-inactive: rgb(170, 170, 170);
    --color-divider: rgb(70, 70, 70);
    --backdrop-ink: rgba(242, 240, 234, 0.14);
    --depth-a: rgba(212, 165, 26, 0.22);
    --depth-b: rgba(120, 120, 120, 0.2);
    --depth-c: rgba(80, 60, 10, 0.3);
  }

  .nav-overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .logo-light {
    display: none;
  }

  .logo-dark {
    display: block;
  }
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-backdrop .gradient-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 28%, var(--depth-a) 0%, transparent 46%),
    radial-gradient(circle at 82% 70%, var(--depth-b) 0%, transparent 50%),
    radial-gradient(circle at 55% 100%, var(--depth-c) 0%, transparent 55%);
  filter: blur(60px);
}

.technical-fragments {
  position: absolute;
  inset: 0;
}
