/*
Theme Name: Север рядом · 51
Description: Одноколоночные статьи и новостная лента Мурманской области.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: sever-ryadom
*/

:root { color-scheme: light; --paper: #f7f8f6; --ink: #17292e; --muted: #4b6269; --line: #cbd9d7; --green: #0c584e; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid #19705f; outline-offset: 4px; }
.site-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #193840; color: #fff; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: inherit; text-decoration: none; font-size: clamp(20px, 4vw, 25px); font-weight: 780; letter-spacing: -.035em; }
.site-nav { display: flex; gap: clamp(12px, 4vw, 28px); align-items: center; }
.site-nav a { color: #e6f4f0; font-size: .9rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.site-header a:focus-visible { outline-color: #b7e9da; }
.main-content { flex: 1; padding-block: clamp(38px, 7vw, 84px); }
.section-header { border-bottom: 1px solid var(--line); margin-bottom: 28px; padding-bottom: 24px; }
.section-header h1, .story h1 { margin: 0; font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.empty-state { color: var(--muted); margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 32px 28px; }
.news-card { min-width: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover h2 { color: var(--green); text-decoration: underline; }
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dce8e7; margin-bottom: 14px; border-radius: 6px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-date, .story-header time { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.news-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.news-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 16px; }
.reading-width { max-width: 720px; margin-inline: auto; }
.story-header { margin-bottom: 28px; }
.story-cover { margin: 0 auto 34px; max-width: 900px; }
.story-cover img { width: 100%; height: auto; display: block; border-radius: 6px; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); padding-block: 22px; font-size: .875rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 10px; z-index: 99; clip: auto; background: #fff; }
@media (max-width: 480px) { .site-shell { width: calc(100% - 32px); } .header-inner { min-height: 64px; } }
