/*  ========== CLASSIC THEME v3.0 — «Галерея искусств» ========== */
/*  base.css — переменные, reset, типографика, базовые утилиты  */

:root {
  /*  Базовые оттенки  */
  --bg: #fdfcf9;
  --surface: #ffffff;
  --surface-warm: #faf7f0;
  --text: #132437;
  --text-heading: #08101c;
  --muted: #7189a3;
  --line: rgba(19, 36, 55, 0.12);
  --line-strong: rgba(19, 36, 55, 0.22);

  /*  Акценты  */
  --terracotta: #c9a224;
  --terracotta-hover: #a8861c;
  --terracotta-light: #f9f2db;
  --terracotta-soft: #fdfaf2;

  --teal: #36516e;
  --teal-hover: #4a6582;
  --teal-light: #e0e5ed;
  --teal-soft: #f4f6f9;

  --gold: #c9a224;
  --gold-hover: #a8861c;
  --gold-light: #f9f2db;
  --gold-soft: #fdfaf2;

  /*  Тени  */
  --shadow-sm: 0 1px 3px rgba(54, 81, 110, 0.06);
  --shadow-md: 0 4px 12px rgba(54, 81, 110, 0.08);
  --shadow-lg: 0 12px 32px rgba(54, 81, 110, 0.12);
  --shadow-colored: 0 8px 24px rgba(201, 162, 36, 0.18);

  /*  Скругления  */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /*  Типографика  */
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /*  Размеры  */
  --container: 1280px;
  --container-narrow: 820px;
  --header-height: 72px;

  /*  Переходы  */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 350ms ease;

  /*  Фокус  */
  --focus-ring: 0 0 0 3px rgba(74, 101, 130, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--terracotta);
}

a:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

input, textarea, select {
  outline: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

/*  ========== Базовые утилиты  ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-muted { color: var(--muted); }
.text-terracotta { color: var(--terracotta); }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }

.bg-surface { background-color: var(--surface); }
.bg-warm { background-color: var(--surface-warm); }

/*  ========== Skip link  ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  z-index: 10000;
  color: var(--text);
  font-weight: 700;
}

/*  ========== Selection  ========== */
::selection {
  background-color: var(--terracotta-light);
  color: var(--text-heading);
}
