/*
Theme Name: Twenty Seventeen — Южный рубеж
Theme URI: https://wordpress.org/themes/twentyseventeen/
Description: Дочерняя тема Twenty Seventeen для сайта проекта «Южный рубеж». Главная страница собирается из стандартных блоков WordPress и готовых паттернов.
Author: OpenAI
Template: twentyseventeen
Version: 1.0.0
Text Domain: yuzhny-rubezh
*/

:root {
  --yr-ink: #26332d;
  --yr-muted: #657168;
  --yr-olive: #68765a;
  --yr-olive-dark: #354638;
  --yr-sand: #e8e2d4;
  --yr-paper: #f5f3ed;
  --yr-white: #fff;
  --yr-line: #deded5;
  --yr-content: 1120px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--yr-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
  color: var(--yr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.16;
}

a { color: var(--yr-olive-dark); }
a:hover, a:focus { color: #8a6743; }

/* Header and navigation */
.site-title { letter-spacing: .035em; text-transform: uppercase; }
.site-description { color: var(--yr-muted); }
.navigation-top { border-color: var(--yr-line); }
.main-navigation a {
  color: var(--yr-ink);
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 12px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--yr-olive); }

/* Gutenberg layout */
#primary.yr-front-page-area,
#primary.yr-wide-page-area {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}
.yr-front-page-content,
.yr-wide-page-content { margin: 0; }
.yr-front-page-content > .entry-content,
.yr-wide-page-content > .entry-content { margin: 0; }
.yr-front-page-content > .entry-content > :not(.alignwide):not(.alignfull),
.yr-wide-page-content > .entry-content > :not(.alignwide):not(.alignfull) {
  max-width: var(--yr-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.yr-front-page-content .alignwide,
.yr-wide-page-content .alignwide {
  max-width: min(1200px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.yr-front-page-content .alignfull,
.yr-wide-page-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Reusable section and card styles */
.yr-section { padding: clamp(52px, 7vw, 92px) 24px; }
.yr-section--paper { background: var(--yr-paper); }
.yr-section--dark { background: var(--yr-olive-dark); color: #f8f6ef; }
.yr-section--dark h1,
.yr-section--dark h2,
.yr-section--dark h3,
.yr-section--dark h4 { color: #fff; }
.yr-section__inner { max-width: var(--yr-content); margin-left: auto; margin-right: auto; }
.yr-kicker {
  color: var(--yr-olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.yr-card {
  height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--yr-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(34, 43, 36, .055);
}
.yr-card h3 { margin-top: 0; }
.yr-hero {
  min-height: min(78vh, 780px);
  padding: clamp(72px, 11vw, 150px) 24px;
  background: #29372f;
  color: #fff;
}
.yr-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--yr-content); margin: 0 auto; }
.yr-hero h1,
.yr-hero h2,
.yr-hero h3 { color: #fff; }
.yr-hero h1 { max-width: 900px; font-size: clamp(42px, 7vw, 92px); letter-spacing: .035em; text-transform: uppercase; }
.yr-hero p { max-width: 720px; font-size: clamp(17px, 2vw, 22px); }
.yr-hero .wp-block-button__link,
.yr-button .wp-block-button__link {
  border: 1px solid #d5d0bd;
  border-radius: 2px;
  background: #68765a;
  color: #fff;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.yr-hero .wp-block-button__link:hover,
.yr-button .wp-block-button__link:hover { background: #4a5a46; color: #fff; }
.yr-gallery img { border-radius: 4px; }
.wp-block-image img { border-radius: 3px; }
.wp-block-separator { border-color: var(--yr-line); }

/* Posts and inner pages */
.single .entry-title,
.page:not(.home) .entry-title { font-size: clamp(32px, 4vw, 48px); }
.single .entry-content,
.page:not(.home) .entry-content { color: #39443d; }
.widget-area, .site-footer { background: var(--yr-paper); }
.site-footer { border-top: 1px solid var(--yr-line); }
.site-info { color: var(--yr-muted); }

@media (max-width: 767px) {
  .yr-hero { min-height: 560px; padding: 70px 20px; }
  .yr-hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .yr-section { padding: 52px 20px; }
  .yr-front-page-content .alignwide,
  .yr-wide-page-content .alignwide { max-width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
