/* Base styles: normalize, reset, and foundational typography
   Extracted from z/styles/globals.css */

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

/* Remove default margins */
body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Form elements */
button,
input {
  color: currentColor;
  font-family: inherit;
  font-size: inherit;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Utility: visually hidden (accessible to screen readers) */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Base page styles */
body {
  font-family: var(--font-main);
  font-variation-settings: "wght" var(--text-weight);
  font-size: 18px;
  line-height: 1.5;
  color: var(--accent-color);
  background-color: var(--page-background-color);
  background-image: var(--bg-gradient);
  background-size: cover;
  background-attachment: fixed;
  min-inline-size: 375px;
  min-block-size: 100dvb;
  scrollbar-gutter: stable;
}

/* Links */
a {
  color: var(--color-text-primary, #333); /* Цвет основного текста */
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffff00; /* Неоновый желтый при наведении */
}

a:visited {
  color: #cccc00; /* Бледно-желтый для просмотренных */
}

a:active {
  color: #ff8800; /* Желто-оранжевый при клике */
  transition: color 0.1s ease;
}

a:focus {
  outline: 2px solid #ffff00;
  outline-offset: 2px;
}

/* Responsive images */
img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

