:root {
  /* Палитра */
  --color-bg: #d2d2e2;
  --color-fg: #0b0b0b;
  --color-muted: #666;
  --color-primary: #0a84ff;
  --color-danger: #b00020;
  /* Типографика и размеры */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  /* Скругления и тени */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* Недоступные элементы визуально «приглушаем» */
:disabled,
[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

html {
  scroll-behavior: smooth;
} /* Плавная прокрутка к #якорю */
:target {
  outline: 2px dashed var(--color-primary);
  outline-offset: 4px;
} /*
Подсветка цели */

/* Тёмная тема: переопределяем только значения токенов */
body.theme-dark {
  --color-bg: #0b0b0b;
  --color-fg: #f5f5f5;
  --color-muted: #aaa;
  --color-primary: #6aa2ff;
}

dialog {
  padding: 1.25rem;
  border: none;
  border-radius: 12px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* БАЗА: читаемость и предсказуемость размеров */
* {
  box-sizing: border-box;
}
html,
body {
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.5)
    ),
    url("1-santo_1.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin: 0;
  height: 110%;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: white;
  line-height: 1.5;
}
/* Формы: размеры, отступы, визуальный порядок */
label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}
input,
select,
textarea,
button {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c8c8c8;
  border-radius: 20px;
  background: #fff;
  height: 200px;
}
/* Кнопка по умолчанию */
button,
[type="submit"] {
  background: #0a84ff;
  color: #fff;
  border: none;
  cursor: pointer;
}
/* Состояния: клавиатура/мышь/ошибки */
:where(input, select, textarea, button):focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}
button:hover {
  filter: brightness(0.95);
}
:disabled,
[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Подсветка ошибочных полей (установите aria-invalid="true") */
[aria-invalid="true"] {
  border-color: #b00020;
}

a:link {
  color: green;
}

a:visited {
  color: rgb(228, 228, 228);
}

a:hover {
  color: rgb(197, 234, 248);
}

a:active {
  color: rgb(245, 245, 245);
}

footer {
  position: absolute;
  top: 105%;
  bottom: 0;
  right: 0;
  padding-right: 50px;
  padding-bottom: 20px;
}

main {
  text-align: center;
}

nav {
  position: fixed;
  bottom: 0;
  padding-bottom: 20px;
  padding-left: 40px;
}

#taco {
  width: 500px;
  height: 150px;
}

#buttonDiv {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 40%;
  width: 300px;
}
