:root {
  --color-bg: #0b0b0d;
  --color-surface: #151519;
  --color-surface-soft: #101013;
  --color-surface-hover: #1c1c22;
  --color-text: #f4f4f5;
  --color-text-soft: #d2d2d7;
  --color-muted: #a7a7b0;
  --color-subtle: #777782;
  --color-line: #292930;
  --color-line-soft: #34343d;
  --color-line-strong: #44444e;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-card: 22px;
  --transition-fast: 180ms ease;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .15);
  --shadow-raised: 0 18px 50px rgba(0, 0, 0, .35);
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: -4px;
  padding: 10px 12px;
  color: var(--color-muted);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.site-footer {
  color: #666671;
  font-size: 12px;
  text-align: center;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-subtle);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .back-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, .045);
  }
}

@media (max-width: 480px) {
  .back-link {
    margin-left: -2px;
    padding: 8px 10px;
  }
}

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

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