/*
Theme Name: Washington News
Theme URI: https://a1313804.ru/
Author: PolitTech DS
Description: Классическая газетная тема в духе Washington Post: строгая типографика, белый фон, черные правила и красный акцент. Для новостного табло о технологиях избирательных кампаний.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: washington-news
Tags: news, newspaper, editorial, custom-menu, featured-images, right-sidebar, two-columns
*/

:root {
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #666666;
  --rule: #d9d9d9;
  --rule-dark: #111111;
  --paper: #ffffff;
  --wash: #f4f2ee;
  --accent: #c41230;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: Arial, Helvetica, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

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

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
  background: #fff; color: var(--ink); left: 8px; padding: 10px 14px;
  position: fixed; top: 8px; z-index: 100000; clip: auto; clip-path: none;
  height: auto; width: auto;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top utility bar */
.topbar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar a { color: var(--ink-soft); }
.topbar .topbar-right { display: flex; gap: 16px; align-items: center; }

/* Masthead */
.masthead {
  text-align: center;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--rule);
}
.masthead .site-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.masthead .site-title a { color: var(--ink); }
.masthead .site-title a:hover { color: var(--ink); }
.masthead .site-description {
  margin: 10px auto 0;
  max-width: 760px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead .custom-logo { margin: 0 auto; max-height: 92px; width: auto; }

/* Navigation */
.main-nav {
  background: var(--ink);
  color: #fff;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 13px 13px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  background: #fff;
  color: var(--ink);
}
.nav-search { display: flex; align-items: center; }
.nav-search input[type="search"] {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 9px;
  font-family: var(--sans);
  font-size: 12px;
  width: 180px;
}
.nav-search input::placeholder { color: #bbb; }
.nav-search button {
  background: transparent; border: 1px solid #555; border-left: 0; color: #fff;
  padding: 6px 10px; cursor: pointer; font-family: var(--sans); font-size: 12px;
}
.nav-search button:hover { background: #fff; color: var(--ink); }

/* Breaking strip */
.breaking {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.breaking .container {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  overflow: hidden;
}
.breaking .label {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.breaking .headline {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layout */
.site-main { flex: 1 0 auto; padding: 26px 0 40px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 7px;
  margin: 34px 0 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.01em;
}
.section-head .more {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 26px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 26px;
}
.hero-lead .thumb { margin-bottom: 14px; }
.hero-lead .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-lead h1, .hero-lead h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.hero-lead .dek { font-size: 17px; color: var(--ink-soft); margin: 0 0 12px; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side .side-story {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.hero-side .side-story:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side .thumb img { width: 96px; height: 72px; object-fit: cover; }
.hero-side h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.hero-side .meta { font-size: 11px; }

/* Most read */
.most-read {
  border: 1px solid var(--rule);
  padding: 16px;
  background: var(--wash);
}
.most-read h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 7px;
}
.most-read ol {
  list-style: none;
  counter-reset: read;
  margin: 0;
  padding: 0;
}
.most-read li {
  counter-increment: read;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.3;
}
.most-read li:last-child { border-bottom: 0; }
.most-read li::before {
  content: counter(read);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* Category label */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.meta a { color: var(--muted); }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.story-card { border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
.story-card .thumb { margin-bottom: 10px; }
.story-card .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 4px 0 7px;
}
.story-card .dek { font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; }

.thumb.placeholder {
  background: var(--wash);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  aspect-ratio: 3 / 2;
}
.hero-lead .thumb.placeholder { aspect-ratio: 16 / 9; }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.article {
  max-width: 820px;
}
.article-header { border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 22px; }
.article-header h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 6px 0 12px;
}
.article-header .dek { font-size: 19px; color: var(--ink-soft); margin: 0 0 14px; }
.article-header .meta { font-size: 12px; }
.article-hero { margin: 0 0 22px; }
.article-hero img { width: 100%; }
.article-hero figcaption { font-family: var(--sans); font-size: 11px; color: var(--muted); padding-top: 6px; }

.entry-content { font-size: 19px; line-height: 1.65; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 {
  font-size: 27px;
  line-height: 1.15;
  margin: 1.6em 0 .5em;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .45em; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--accent);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.25em; padding: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { margin: 1.2em auto; }
.entry-content strong { font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; margin: 1.2em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 8px; text-align: left; }
.entry-content iframe { max-width: 100%; }

.article-tags { margin-top: 26px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.article-tags a { margin-right: 8px; }

.related { margin-top: 36px; border-top: 3px solid var(--ink); padding-top: 16px; }

/* Sidebar */
.sidebar { font-size: 15px; }
.widget { margin-bottom: 28px; }
.widget-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 7px;
  margin: 0 0 12px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.widget li:last-child { border-bottom: 0; }
.widget a { font-family: var(--serif); font-size: 15px; }
.widget_tag_cloud a {
  display: inline-block; border: 1px solid var(--rule); padding: 3px 7px;
  margin: 0 4px 4px 0; font-family: var(--sans); font-size: 11px !important;
}

/* Archive / search */
.archive-head { border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 22px; }
.archive-head h1 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.archive-head .meta { margin-top: 6px; }

.pagination {
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
}
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  border: 1px solid var(--rule); padding: 5px 10px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Forms */
input[type="search"], input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--rule); padding: 8px 10px; font-family: var(--sans);
  font-size: 14px; max-width: 100%;
}
button, input[type="submit"] {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 8px 14px; font-family: var(--sans); font-size: 13px; cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 4px solid var(--ink);
  background: var(--paper);
  padding: 30px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
}
.footer-brand .site-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; max-width: 420px; }
.footer-col h3 {
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 10px; border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-col li { padding: 5px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; font-family: var(--sans); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .main-nav .container { flex-direction: column; align-items: stretch; }
  .main-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .nav-search { padding: 8px 0; }
  .nav-search input[type="search"] { width: 100%; }
  .breaking .headline { white-space: normal; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .entry-content { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .masthead { padding: 18px 0 14px; }
}
