@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --surface: #F7F3F6;
  --ink: #26182B;
  --muted: #6F6274;
  --rule: #EADFE6;
  --accent: #B0173F;
  --radius-card: 16px;
  --radius-chip: 999px;
  --heading: "Golos Text", Arial, sans-serif;
  --heading-weight: 700;
  --wordmark-size: 20px;
  --h1-size: 28px;
  --h1-line: 34px;
  --h1-tracking: -0.02em;
  --h1-desktop-size: 40px;
  --h1-desktop-line: 48px;
  --h2-size: 22px;
  --h2-line: 28px;
  --h2-desktop-size: 26px;
  --h2-desktop-line: 32px;
}

h1, h2, h3, h4, h5, h6, .wordmark, .card-title {
  font-weight: var(--heading-weight);
  letter-spacing: -0.02em;
}

.home-palette { display: flex; align-items: center; gap: clamp(2px, 2vw, 10px); height: 56px; }
.palette-tip { display: block; flex: 0 1 32px; min-width: 0; height: 100%; }
.palette-tip-desktop { display: none; }
.home-intro h1 { margin-top: 16px; font-size: 24px; line-height: 30px; text-wrap: balance; }
.home-intro .chip-nav { margin-top: 14px; }

.chip, .chip-nav-scroll .chip { padding: 6px 2px; border: 0; border-radius: 0; }
.chip-nav ul { column-gap: 14px; row-gap: 0; }
.chip-nav-scroll { overflow: visible; margin-inline: 0; padding: 0; }
.chip-nav-scroll ul { width: auto; flex-wrap: wrap; }
.rubric-tip { display: block; flex: 0 0 12px; }

.cover[data-lacquer] { background: #FFFFFF; border: 1px solid var(--rule); }
.cover-article-placeholder { aspect-ratio: 2 / 1; }
.cover-article-photo { margin-inline: auto; }
.article-body figure { margin: 12px 0 0; }
.article-body figure + figure { margin-top: 18px; }
.article-body img { width: 100%; max-width: min(100%, var(--photo-max, 100%)); height: auto; margin-inline: auto; }
.article-body figcaption { margin-top: 6px; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.article-lead { background: var(--surface); border-radius: 16px; padding: 16px; }
.meta-rubric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.meta-rubric:hover { text-decoration: underline; }
.date-compact { display: none; }

@media (width < 640px) {
  .home-rubric .section-heading { display: grid; justify-content: start; }
  .home-intro .chip-nav-scroll { overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
  .home-intro .chip-nav-scroll ul { width: max-content; flex-wrap: nowrap; }
  .home-rubric .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-rubric .card > a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .home-rubric .card .cover { border-radius: 8px; }
  .home-rubric .card-label { margin-top: 0; }
}

@media (max-width: 599px) {
  .chip-nav-scroll .chip-full { display: none; }
  .chip-nav-scroll .chip-short { display: inline; }
  .article-meta { flex-wrap: nowrap; gap: 8px; }
  .article-meta > * { white-space: nowrap; }
  .meta-rubric span { overflow: hidden; text-overflow: ellipsis; }
  .date-long { display: none; }
  .date-compact { display: inline; }
}

@media (min-width: 768px) {
  .home-palette { height: 96px; gap: 14px; }
  .palette-tip { flex-basis: 55px; }
  .palette-tip-desktop { display: block; }
  .home-intro h1 { font-size: 32px; line-height: 40px; }
  .article-lead { padding: 19px 22px; }
}
