/* ===== Настройки стиля: меняй здесь ===== */
:root {
  --bg: #0e0d10;          /* фон страницы */
  --card: #1a181d;        /* фон под картинкой, пока она грузится */
  --text: #d9d4dd;        /* цвет текста */
  --accent: #b0163a;      /* акцент (полоска под заголовком, рамка при наведении) */
  --col-width: 240px;     /* примерная ширина колонки: меньше = больше колонок */
  --gap: 14px;            /* расстояние между картинками */
  --radius: 10px;         /* скругление углов */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1 {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.25em;
  text-transform: lowercase;
}
h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--accent);
}

/* Сетка "кирпичиками", как в Pinterest: картинки разной высоты без дыр */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  columns: var(--col-width);
  column-gap: var(--gap);
}

.pin {
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  outline: 2px solid transparent;
  transition: outline-color 0.25s;
}
.pin:hover { outline-color: var(--accent); }

.pin img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.85);
  transition: transform 0.35s, filter 0.35s;
}
.pin:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}

.status { text-align: center; opacity: 0.7; }
.status:empty { display: none; }

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}
footer a { color: var(--text); }
