/*
Theme Name: Quadnews
Description: Minimal news theme for quadnews.ru
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap&subset=cyrillic,cyrillic-ext');
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #111111;
  color: #ECECEC;
  line-height: 1.55;
  font-size: 13px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  text-decoration: underline;
  transition: 0.3s;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}
h1 {
  font-size: 36px;
  font-weight: 700;
}
h2 {
  font-size: 15px;
}
.container {
  max-width: 848px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  padding: 0;
  border-bottom: 1px solid #2A2A2A;
}
.site-header__inner {
  display: flex;
  gap: 24px;
  min-height: 64px;
  align-items: center;
}
.site-header__inner h1.site-logo {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.site-header__inner a.site-logo,
.site-header__inner h1.site-logo a {
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  color: inherit;
}
.site-header__inner a.site-logo:hover,
.site-header__inner h1.site-logo a:hover {
  text-decoration: none;
}
.site-header__inner .site-tagline {
  font-size: 11px;
  color: #888888;
  text-transform: uppercase;
}
.site-main {
  padding: 16px 0 48px;
}
.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feed-item {
  display: flex;
  flex-direction: column;
}
.feed-item__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.feed-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-item__date {
  color: #4CAF50;
  margin-bottom: 8px;
}
.feed-item__title {
  margin-bottom: 8px;
}
.feed-item__title a {
  text-decoration: none;
}
.feed-item__title a:hover {
  opacity: 0.8;
}
.feed-item__excerpt {
  font-size: 0.88rem;
  color: #888888;
  line-height: 1.55;
}
.pagination {
  grid-column: 1 / -1;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.pagination ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 0.88rem;
  color: #888888;
  border-radius: 4px;
  transition: color 0.15s;
}
.pagination .page-numbers.current {
  color: #ECECEC;
  font-weight: 700;
}
.pagination a.page-numbers:hover {
  color: #ECECEC;
}
.post {
  width: 100%;
}
.post__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}
.post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post__date {
  color: #4CAF50;
  margin-bottom: 16px;
  display: inline-block;
}
.post__title {
  display: inline-block;
  margin-bottom: 20px;
}
.post__content {
  line-height: 1.68;
  font-size: 16px;
}
.post__content p {
  margin-bottom: 16px;
}
.post__content p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: #888888;
  padding-bottom: 32px;
  border-bottom: 1px solid #2A2A2A;
  margin-bottom: 32px;
}
.post__content .wp-block-embed {
  margin: 32px 0;
}
.post__content .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #2A2A2A;
  background: #0E0E0E;
}
.post__content .wp-block-embed.quadnews-embed-dynamic-ratio .wp-block-embed__wrapper {
  aspect-ratio: var(--quadnews-embed-ratio);
}
.post__content .wp-block-embed.quadnews-embed-dynamic-ratio .wp-block-embed__wrapper::before {
  content: none;
}
.post__content .wp-block-embed.quadnews-embed-dynamic-ratio iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}
.post__content .wp-block-embed iframe {
  display: block;
  width: 100%;
}
.post__content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  border-radius: inherit;
}
.post__content .wp-block-embed figcaption {
  margin-top: 12px;
  color: #888888;
  font-size: 14px;
}
.related-posts {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #2A2A2A;
}
.related-posts__title {
  margin-bottom: 24px;
}
.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 0.85rem;
  color: #888888;
  transition: color 0.15s;
}
.back-link:hover {
  color: #ECECEC;
}
.no-posts {
  color: #888888;
}
@media (max-width: 768px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .feed {
    grid-template-columns: 1fr;
  }
}
