/*
Theme Name: Ribarnik 23
Description: Лека тема за Рибарник 23, Куртово Конаре.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.0
Author: Ribarnik 23
Text Domain: ribarnik23
License: GNU General Public License v2 or later
*/
:root {
    --green: #142c22;
    --green2: #293f30;
    --gold: #b99a58;
    --cream: #f1e9d7;
    --dark: #101e17;
    --muted: #c9d0c2;
    --line: #415244;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--green); color: var(--cream); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-underline-offset: .18em; }
:where(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.15; margin: 0 0 .65em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--cream); color: var(--dark); padding: .6rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: #d4ba82; }

.section { padding: clamp(32px, 4.5vw, 58px) 0; }
.light-section { background: var(--cream); color: var(--green); }
.section-heading { text-align: center; margin-bottom: clamp(20px, 3vw, 28px); }
.section-heading .eyebrow { margin-bottom: .65em; }
.section-heading h2 { margin-bottom: .45em; }
.light-section .eyebrow { color: #6b5429; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); font-size: .85rem; }
.ornament::before, .ornament::after { content: ''; width: 65px; height: 1px; background: var(--gold); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature-card { border: 1px solid #d5c9ad; background: #f8f2e5; }
.feature-image { width: 100%; aspect-ratio: 8/5; object-fit: cover; display: block; }
.graphic-panel {
    aspect-ratio: 8/4; display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 10px; background: linear-gradient(145deg, #2c4936, #172b20); color: var(--gold);
    border: 10px solid #20382a; outline: 1px solid #b99a5850; outline-offset: -20px;
}
.graphic-panel span { font: 3.5rem var(--serif); line-height: 1; }
.graphic-panel i { width: 25%; height: 1px; background: #b99a586b; }
.graphic-panel i:nth-child(3) { width: 35%; }
.feature-body, .news-body { padding: clamp(18px, 2vw, 24px); overflow-wrap: anywhere; }
.feature-body p { color: #3f5143; }
.feature-body h3 a, .news-body h3 a { text-decoration: none; }
.feature-body h3 a:hover, .news-body h3 a:hover { text-decoration: underline; }

.news-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.news-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; background: #1b3327; border: 1px solid var(--line); }
.news-body h3 { font-size: 1.45rem; }
.post-date { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #d4ba82; }
.light-section .post-date { color: #70592e; }
.excerpt { color: var(--muted); font-size: .94rem; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: .87rem; font-weight: 650; }
.news-card .more { color: #e2c58a; }
.section-action { text-align: center; margin: 24px 0 0; }
.outline-button { display: inline-block; border: 1px solid var(--gold); padding: 10px 24px; text-decoration: none; color: inherit; }
.outline-button:hover { background: var(--gold); color: var(--dark); }
.empty { text-align: center; color: var(--muted); }

.prose { max-width: 790px; overflow-wrap: anywhere; }
.wrap.prose:has(.r23-contacts) { max-width: 1120px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.prose h2 { margin-top: 1.4em; font-size: 2rem; }
.prose img { margin-bottom: 1.2rem; }
.prose .wp-block-image img, .prose .wp-block-gallery img { margin: 0; }
.prose iframe { max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid #b8b19e; padding: .5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.pagination { margin-top: 30px; text-align: center; }
.page-numbers { display: inline-block; padding: 6px 10px; }
.page-numbers.current { background: var(--gold); color: var(--dark); }
.wp-caption { max-width: 100%; }
@media (min-width: 761px) and (max-width: 920px) {
    .news-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    .feature-grid { grid-template-columns: 1fr; gap: 18px; }
    .news-grid { gap: 18px; }
    .news-card { flex-basis: 100%; }
    .alignleft, .alignright { float: none; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
