/*
Theme Name: Select Game
Theme URI: https://select-game.ru
Author: Select Game
Description: Тема в стиле «Clean Editorial» для новостного сайта об играх select-game.ru — тёплый светлый фон, серифный заголовочный шрифт, один акцентный цвет.
Version: 1.0.1
Text Domain: select-game
*/

:root {
  --sg-accent: #D64526;
  --sg-bg: oklch(97% 0.006 80);
  --sg-fg: oklch(18% 0.01 80);
  --sg-fg-muted: oklch(38% 0.01 80);
  --sg-fg-mutedmore: oklch(50% 0.01 80);
  --sg-line: oklch(85% 0.008 80);
  --sg-serif: 'Source Serif 4', Georgia, serif;
  --sg-sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sg-bg);
  color: var(--sg-fg);
  font-family: var(--sg-sans);
}

a { color: inherit; text-decoration: none; }
a.sg-link:hover, .sg-row:hover .sg-row-title, .sg-tg:hover { color: var(--sg-accent); }

.serif { font-family: var(--sg-serif); }

.sg-wrap { max-width: 920px; margin: 0 auto; padding: 0 72px; }

/* Header */
.sg-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 72px; border-bottom: 1px solid var(--sg-line);
}
.sg-logo { font-family: var(--sg-serif); font-size: 22px; font-weight: 700; letter-spacing: 0.2px; }
.sg-nav { display: flex; gap: 40px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.sg-nav a.is-active { color: var(--sg-accent); }
.sg-nav a:not(.is-active) { color: var(--sg-fg-muted); }
.sg-header-right { display: flex; align-items: center; gap: 28px; }
.sg-tg { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--sg-fg); padding-bottom: 2px; }

/* Hero */
.sg-hero { padding: 60px 72px 0 72px; max-width: 920px; }
.sg-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sg-kicker-line { width: 22px; height: 1px; background: var(--sg-accent); }
.sg-kicker-text { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--sg-accent); text-transform: uppercase; }
.sg-hero h1 { font-family: var(--sg-serif); margin: 0 0 22px 0; font-size: 44px; line-height: 1.18; font-weight: 700; letter-spacing: -0.3px; }
.sg-hero p { margin: 0 0 20px 0; font-size: 17px; line-height: 1.65; color: var(--sg-fg-muted); max-width: 680px; }
.sg-meta { font-size: 13px; color: var(--sg-fg-mutedmore); font-weight: 600; }

/* Secondary list */
.sg-section-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sg-fg-mutedmore); margin-bottom: 4px; }
.sg-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  padding: 22px 0; border-top: 1px solid var(--sg-line);
}
.sg-row-inner { display: flex; align-items: baseline; gap: 18px; }
.sg-row-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--sg-accent); text-transform: uppercase; width: 74px; flex-shrink: 0; }
.sg-row-title { font-family: var(--sg-serif); margin: 0; font-size: 20px; font-weight: 500; }
.sg-row-meta { font-size: 12px; color: var(--sg-fg-mutedmore); white-space: nowrap; font-weight: 600; flex-shrink: 0; }

/* Telegram CTA */
.sg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--sg-fg); border-bottom: 1px solid var(--sg-fg); padding: 24px 0;
}
.sg-cta-title { font-family: var(--sg-serif); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.sg-cta-sub { font-size: 14px; color: var(--sg-fg-muted); }
.sg-cta-link { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--sg-accent); border-bottom: 1px solid var(--sg-accent); padding-bottom: 2px; white-space: nowrap; }

/* Category index */
.sg-catindex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-catindex a {
  padding: 20px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; text-align: center; border-right: 1px solid var(--sg-line);
}
.sg-catindex a:last-child { border-right: none; }

/* Footer */
.sg-footer {
  margin-top: 56px; border-top: 1px solid var(--sg-line); padding: 30px 72px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.sg-footer-left { display: flex; align-items: baseline; gap: 10px; }
.sg-footer-tagline { font-size: 13px; color: var(--sg-fg-mutedmore); }
.sg-footer-right { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--sg-fg-muted); font-weight: 600; flex-wrap: wrap; }
.sg-footer-copy { color: var(--sg-fg-mutedmore); font-weight: 500; }

/* Article page */
.sg-article { padding: 60px 72px 80px 72px; max-width: 760px; }
.sg-article h1 { font-family: var(--sg-serif); font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 18px 0; }
.sg-article .sg-thumb { width: 100%; height: auto; border-radius: 4px; margin: 28px 0; }
.sg-article .entry-content p { font-size: 17px; line-height: 1.75; color: var(--sg-fg); margin: 0 0 22px 0; }
.sg-article .entry-content a { color: var(--sg-accent); border-bottom: 1px solid var(--sg-accent); }

/* Archive / category listing */
.sg-archive { padding: 60px 72px 80px 72px; max-width: 920px; }
.sg-archive h1 { font-family: var(--sg-serif); font-size: 34px; font-weight: 700; margin: 0 0 36px 0; }

/* Responsive */
@media (max-width: 780px) {
  .sg-header, .sg-hero, .sg-wrap, .sg-footer, .sg-article, .sg-archive { padding-left: 24px; padding-right: 24px; }
  .sg-nav { display: none; }
  .sg-hero h1 { font-size: 30px; }
  .sg-catindex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-catindex a:nth-child(2) { border-right: none; }
  .sg-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
