/*
Theme Name: Modern News
Theme URI: https://example.com/modern-news
Author: Grok Theme
Author URI: https://x.ai
Description: Современный новостной шаблон WordPress с двухколоночной раскладкой. Контент слева, сайдбар справа. Совместим с WordPress 6.x+ / 7.1 и PHP 8.4.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-news
Tags: news, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --color-primary: #3394d9;
  --color-primary-dark: #092f70;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9fa;
  --color-text: #1a1a1a;
  --color-text-muted: #747c88;
  --color-border: #e5e7eb;
  --font-sans: "Carlito", "Calibri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Carlito", "Calibri", Georgia, "Times New Roman", serif;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
  --container: 1200px;
  --sidebar-width: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-title a {
  color: var(--color-primary-dark);
}

.site-title a:hover {
  color: var(--color-primary);
}

.site-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.main-navigation ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 400;
  color: var(--color-text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary-dark);
}

.site-content {
  flex: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2.5rem;
  align-items: start;
}

.primary {
  min-width: 0;
}

.secondary {
  position: sticky;
  top: 5.5rem;
}

/* ==========================================================================
   Posts & Content
   ========================================================================== */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.entry {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.entry:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.entry-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.entry-thumbnail img,
.entry-thumbnail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.entry:hover .entry-thumbnail img,
.entry:hover .entry-thumbnail__img {
  transform: scale(1.04);
}

.entry-thumbnail__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e8eef5 0%, #d0d8e4 100%);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.entry-thumbnail__placeholder svg {
  opacity: 0.5;
}

/* Section header (Последние новости) */
.section-header {
  margin: 2.5rem 0 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin: 0;
}

.entry-body {
  padding: 1.5rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.entry-meta a {
  color: var(--color-text-muted);
}

.entry-meta a:hover {
  color: var(--color-primary);
}

.entry-category a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.entry-category a:hover {
  background: var(--color-primary-dark);
}

.entry-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-title a {
  color: var(--color-primary-dark);
}

.entry-title a:hover {
  color: var(--color-primary);
}

.entry-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.read-more:hover {
  gap: 0.5rem;
}

/* ==========================================================================
   Single post — same spacing rhythm as home & category pages
   ========================================================================== */
.primary.site-main {
  /* same horizontal/vertical breathing room as posts-grid on home/archive */
  padding: 0;
}

.single-entry {
  max-width: 100%;
  /* subtle card feel matching .entry on home */
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 1.75rem 2.25rem 2rem;
}

.single-entry .entry-header {
  margin-bottom: 1.5rem;
}

.single-entry .entry-title {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.single-entry .entry-meta {
  margin-bottom: 0;
}

.single-entry .entry-meta--single {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.single-entry .entry-meta--single .entry-category {
  margin: 0;
}

.single-entry .entry-meta--single .entry-category a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.single-entry .entry-meta--single .entry-category a:hover {
  background: var(--color-primary-dark);
}

.single-entry .entry-meta__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.single-entry .entry-thumbnail {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
}

.single-entry .entry-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-entry .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.single-entry .entry-content > *:first-child {
  margin-top: 0;
}

.single-entry .entry-content p {
  margin-bottom: 1.5rem;
}

.single-entry .entry-content h2,
.single-entry .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-entry .entry-content img {
  border-radius: var(--radius);
  margin: 1.75rem 0;
  max-width: 100%;
  height: auto;
}

.single-entry .entry-content ul,
.single-entry .entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.single-entry .entry-content ul {
  list-style: disc;
}

.single-entry .entry-content ol {
  list-style: decimal;
}

.single-entry .entry-content li {
  margin-bottom: 0.4rem;
}

.single-entry .entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.single-entry .entry-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Page header on archives/categories — same top spacing */
.page-header {
  margin-bottom: 2rem;
}

.page-header .page-title {
  margin-bottom: 0.5rem;
}

/* Responsive single padding */
@media (max-width: 768px) {
  .single-entry {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .single-entry .entry-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Random posts (Случайные материалы)
   ========================================================================== */
.random-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.random-posts__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.random-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.random-posts__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.random-posts__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.random-posts__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.random-posts__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.random-posts__item:hover .random-posts__img {
  transform: scale(1.05);
}

.random-posts__placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eef5 0%, #d0d8e4 100%);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.random-posts__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.random-posts__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.random-posts__cat a {
  color: var(--color-primary);
}

.random-posts__cat a:hover {
  color: var(--color-primary-dark);
}

.random-posts__item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.random-posts__item-title a {
  color: var(--color-primary-dark);
}

.random-posts__item-title a:hover {
  color: var(--color-primary);
}

.random-posts__excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .random-posts__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .random-posts__grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 400;
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.widget {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget_search .search-field {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.widget_search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(51, 148, 217, 0.15);
}

.widget_search .search-submit {
  padding: 0.65rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.widget_search .search-submit:hover {
  background: var(--color-primary-dark);
}

/* Recent posts, categories, archives */
.widget ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget ul li a {
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.widget ul li a:hover {
  color: var(--color-primary);
}

.widget ul li .post-date,
.widget ul li .count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #c5d0e0;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-info {
  font-size: 0.875rem;
}

.site-info a {
  color: #fff;
}

.site-info a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comment-list {
  margin-bottom: 2rem;
}

.comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-author {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.comment-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.comment-content {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  .secondary {
    position: static;
    order: 2;
  }

  .primary {
    order: 1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .site-logo {
    width: 44px;
    height: 44px;
  }

  h1 { font-size: 1.75rem; }
  .entry-title { font-size: 1.25rem; }
  .single-entry .entry-title { font-size: 1.75rem; }

  .site-content {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   Hero Grid (inspired by otrem.ru)
   ========================================================================== */
.hero-grid {
  margin-bottom: 2.5rem;
}

.hero-grid__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* Featured card */
.hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  min-height: 380px;
  box-shadow: var(--shadow);
}

.hero-featured__link {
  display: block;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

.hero-featured__media {
  position: absolute;
  inset: 0;
}

.hero-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured:hover .hero-featured__img {
  transform: scale(1.05);
}

.hero-featured__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eef5 0%, #d0d8e4 100%);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.hero-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 47, 112, 0.92) 0%,
    rgba(9, 47, 112, 0.55) 40%,
    rgba(9, 47, 112, 0.15) 70%,
    transparent 100%
  );
}

.hero-featured__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1.5rem;
  z-index: 2;
}

.hero-featured__badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.hero-featured__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Side list */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-side__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  flex: 1;
  min-height: 0;
}

.hero-side__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hero-side__link {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-side__thumb {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.hero-side__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-side__item:hover .hero-side__thumb img {
  transform: scale(1.06);
}

.hero-side__placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef5;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-side__body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.hero-side__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}

.hero-side__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side__item:hover .hero-side__title {
  color: var(--color-primary);
}

.hero-side__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-grid__inner {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    min-height: 320px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-featured__title {
    font-size: 1.25rem;
  }

  .hero-side__link {
    grid-template-columns: 80px 1fr;
  }
}

/* Accessibility */
.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 {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
