/* 1. Design tokens and base reset */

:root {
  --bg: #030303;
  --bg-soft: #080907;
  --text: #f2efe8;
  --muted: #9c978c;
  --muted-2: #6e695f;
  --line: rgba(242, 239, 232, 0.14);
  --line-strong: rgba(242, 239, 232, 0.26);
  --gold: #b69a5b;
  --green: #71824a;
  --green-dark: #1a2014;
  --blood: #5e1717;
  --shadow: rgba(0, 0, 0, 0.58);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-ru: "Ruslan Display", Georgia, serif;
  --font-display-latin: "UnifrakturMaguntia", Georgia, serif;

  --page-max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(182, 154, 91, 0.14), transparent 34%),
    radial-gradient(circle at 18% 34%, rgba(113, 130, 74, 0.13), transparent 30%),
    radial-gradient(circle at 82% 44%, rgba(94, 23, 23, 0.15), transparent 33%),
    linear-gradient(180deg, #030303 0%, #070806 52%, #020202 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.36'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(182, 154, 91, 0.42);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
