/*
Theme Name: Старая Вятка
Theme URI: https://urklad.ru/
Author: OpenAI for urklad.ru
Description: Авторская редакционная тема для краеведческого сайта «Старая Вятка»: архивные материалы, путешествия, карты, монеты и находки.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stara-vyatka
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --paper: #eee7d7;
  --paper-light: #f8f3e9;
  --ink: #19221c;
  --forest: #26392d;
  --forest-soft: #3f5645;
  --rust: #9d4b32;
  --gold: #b89451;
  --line: rgba(25, 34, 28, .19);
  --muted: #6d7068;
  --shadow: 0 22px 60px rgba(24, 31, 25, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 148, 81, .16), transparent 28rem),
    linear-gradient(rgba(91, 69, 39, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 6px, auto;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
  z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px;
  clip: auto !important; color: #fff; background: var(--rust); outline: 2px solid #fff;
}
[hidden] { display: none !important; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 15px; color: var(--rust); font-size: 11px;
  font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.is-gold { color: #d8b36b; }

/* Header */
.site-header {
  position: relative; z-index: 20; border-top: 4px solid var(--rust); border-bottom: 1px solid var(--line);
  background: rgba(238, 231, 215, .95); backdrop-filter: blur(14px);
}
.header-main { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.header-kicker { color: var(--muted); font-size: 12px; line-height: 1.5; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark, .custom-logo-link { width: 64px; height: 74px; flex: 0 0 auto; display: grid; place-items: center; filter: drop-shadow(0 4px 5px rgba(25, 34, 28, .16)); }
.brand-crest, .custom-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: block; }
.brand-title { display: block; font-family: var(--serif); font-size: 30px; line-height: .95; letter-spacing: -.03em; }
.brand-subtitle { display: block; max-width: 260px; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.round-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: .25s ease;
}
.round-btn:hover, .round-btn:focus-visible { color: var(--paper-light); background: var(--forest); border-color: var(--forest); outline: none; transform: translateY(-2px); }
.round-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-btn { display: none; }
.desktop-nav { border-top: 1px solid var(--line); }
.nav-row { min-height: 57px; display: flex; justify-content: center; align-items: center; }
.nav-row .menu { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 3vw, 42px); margin: 0; padding: 0; list-style: none; }
.nav-row li { position: relative; }
.nav-row a { position: relative; display: block; padding: 20px 0; text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-row > .menu > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 11px; height: 2px; background: var(--rust); transition: right .25s ease; }
.nav-row a:hover::after, .nav-row a:focus-visible::after, .nav-row .current-menu-item > a::after { right: 0; }
.nav-row .sub-menu {
  position: absolute; z-index: 5; left: -20px; top: 100%; min-width: 250px; margin: 0; padding: 10px 20px;
  list-style: none; visibility: hidden; opacity: 0; transform: translateY(8px); color: var(--paper-light); background: var(--forest); box-shadow: var(--shadow); transition: .2s ease;
}
.nav-row li:hover > .sub-menu, .nav-row li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-row .sub-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 11px; }

/* Search and mobile navigation */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 8vh 20px 30px;
  visibility: hidden; opacity: 0; background: rgba(18, 27, 20, .82); backdrop-filter: blur(16px); transition: .3s ease;
}
.search-overlay.is-open { visibility: visible; opacity: 1; }
.search-panel { width: min(820px, 100%); padding: clamp(28px, 5vw, 56px); background: var(--paper-light); box-shadow: 0 40px 100px rgba(0,0,0,.3); transform: translateY(-18px); transition: transform .3s ease; }
.search-overlay.is-open .search-panel { transform: translateY(0); }
.search-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-panel h2 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 500; }
.close-btn { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 21px; }
.search-form { display: flex; align-items: flex-end; gap: 14px; width: 100%; }
.search-panel .search-form { margin-top: 28px; }
.search-field {
  width: 100%; min-width: 0; padding: 17px 2px; border: 0; border-bottom: 2px solid var(--forest); outline: none;
  color: var(--ink); background: transparent; font-family: var(--serif); font-size: clamp(22px, 4vw, 34px);
}
.search-field:focus { border-bottom-color: var(--rust); }
.search-submit, .archive-go {
  flex: 0 0 auto; padding: 16px 22px; border: 1px solid var(--rust); color: var(--paper-light); background: var(--rust); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.search-hint { margin: 18px 0 0; color: var(--muted); font-family: var(--serif); font-size: 14px; }
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 110; width: min(410px, 92vw); padding: 24px 30px;
  color: var(--paper-light); background: var(--forest); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: -30px 0 70px rgba(0,0,0,.28);
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 105; visibility: hidden; opacity: 0; background: rgba(15,21,16,.58); transition: .3s ease; }
.drawer-backdrop.is-open { visibility: visible; opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.18); }
.drawer-brand { font-family: var(--serif); font-size: 27px; }
.mobile-drawer .close-btn { color: #fff; border-color: rgba(255,255,255,.25); }
.drawer-links .menu { display: grid; margin: 25px 0 0; padding: 0; list-style: none; }
.drawer-links a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: 21px; text-decoration: none; }
.drawer-links .sub-menu { margin: 0; padding-left: 18px; list-style: none; }
.drawer-links .sub-menu a { color: rgba(255,255,255,.72); font-size: 17px; }
.drawer-note { position: absolute; left: 30px; right: 30px; bottom: 28px; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.5; }

/* Home hero */
.home-hero { position: relative; padding: 54px 0 72px; overflow: hidden; }
.home-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px;
  border: 1px solid rgba(157,75,50,.22); border-radius: 50%; box-shadow: 0 0 0 35px rgba(157,75,50,.04), 0 0 0 70px rgba(157,75,50,.035); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .82fr; min-height: 570px; box-shadow: var(--shadow); }
.hero-image { position: relative; display: block; min-height: 570px; overflow: hidden; background: var(--forest); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) sepia(.08) contrast(1.03); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hero-grid:hover .hero-image img { transform: scale(1.035); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, rgba(20,30,23,.26)), linear-gradient(0deg, rgba(13,24,17,.32), transparent 45%); pointer-events: none; }
.hero-image-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 30% 45%, rgba(216,179,107,.3), transparent 18%), repeating-radial-gradient(ellipse at 35% 50%, transparent 0 28px, rgba(255,255,255,.07) 29px 30px), var(--forest); }
.issue-tag {
  position: absolute; left: 24px; top: 24px; z-index: 2; max-width: calc(100% - 48px); padding: 11px 13px;
  color: var(--paper-light); background: rgba(25,34,28,.86); border: 1px solid rgba(255,255,255,.25);
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.issue-tag a { text-decoration: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 76px); background: var(--paper-light); }
.hero-copy::before { content: ""; position: absolute; left: -16px; top: 64px; width: 32px; height: 32px; background: var(--paper-light); transform: rotate(45deg); }
.hero-copy h1 { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 72px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.hero-deck { margin: 28px 0 0; color: #4c514b; font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.hero-deck p { margin: 0; }
.story-meta, .card-meta, .single-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.story-link { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: 34px; color: var(--forest); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.story-link span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--paper-light); background: var(--rust); border-radius: 50%; transition: transform .25s ease; }
.story-link:hover span { transform: translateX(5px); }

/* Topics */
.topic-rail { border-block: 1px solid var(--line); background: rgba(248,243,233,.48); }
.topic-row { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.topic-row::-webkit-scrollbar { display: none; }
.topic-label { flex: 0 0 auto; display: flex; align-items: center; padding-right: 32px; color: var(--rust); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.topic-link { flex: 0 0 auto; min-height: 72px; display: flex; align-items: center; gap: 9px; padding: 0 24px; border-left: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 720; transition: .25s ease; }
.topic-link sup { color: var(--rust); font-size: 9px; }
.topic-link:hover, .topic-link:focus-visible, .topic-link.is-active { color: var(--paper-light); background: var(--forest); outline: none; }
.topic-link:hover sup { color: #d8b36b; }

/* Story grids */
.stories { padding: 104px 0 120px; }
.popular-stories { padding: 64px 0 78px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.section-number { display: inline-block; margin-right: 13px; color: var(--rust); font-family: var(--sans); font-size: 13px; font-weight: 800; vertical-align: top; letter-spacing: .06em; }
.section-note { max-width: 300px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.6; text-align: right; }
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 42px 24px; }
.article-card { grid-column: span 4; min-width: 0; }
.article-card.is-wide { grid-column: span 8; display: grid; grid-template-columns: 1.14fr .86fr; color: var(--paper-light); background: var(--forest); }
.card-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #d4c9b4; }
.is-wide .card-image { min-height: 430px; aspect-ratio: auto; }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) sepia(.08); transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.article-card:hover .card-image img { transform: scale(1.04); filter: saturate(.93); }
.card-image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(25,34,28,.5); background: repeating-radial-gradient(ellipse at 25% 80%, transparent 0 25px, rgba(25,34,28,.08) 26px 27px), #d7ceb9; }
.card-image-fallback b { font-family: var(--serif); font-size: 54px; font-weight: 500; }
.card-number { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 7px 9px; color: var(--paper-light); background: rgba(25,34,28,.82); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.card-body { padding-top: 20px; }
.is-wide .card-body { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.card-category { margin: 0 0 12px; color: var(--rust); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.card-category a { text-decoration: none; }
.is-wide .card-category { color: #d8b36b; }
.card-title { margin: 0; font-family: var(--serif); font-size: clamp(25px, 2.25vw, 35px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.card-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .35s ease; }
.card-title a:hover, .card-title a:focus-visible { background-size: 100% 1px; }
.card-excerpt { margin: 16px 0 0; color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.65; }
.card-excerpt p { margin: 0; }
.is-wide .card-excerpt { color: rgba(248,243,233,.7); }
.card-meta { margin-top: 18px; }
.is-wide .card-meta { color: rgba(248,243,233,.54); }
.load-row { display: flex; justify-content: center; margin-top: 62px; }
.load-more {
  min-width: 230px; padding: 17px 25px; border: 1px solid var(--forest); background: transparent; cursor: pointer;
  font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; transition: .25s ease;
}
.load-more:hover, .load-more:focus-visible { color: var(--paper-light); background: var(--forest); outline: none; }

/* Archive showcase */
.archive-showcase { position: relative; padding: 100px 0; color: var(--paper-light); background: var(--forest); overflow: hidden; }
.archive-showcase::before { content: ""; position: absolute; width: 620px; height: 620px; right: -100px; bottom: -290px; opacity: .32; border: 1px solid #d8b36b; border-radius: 50%; box-shadow: 0 0 0 42px rgba(216,179,107,.07), 0 0 0 84px rgba(216,179,107,.045); }
.archive-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; align-items: start; }
.archive-title { max-width: 520px; margin: 0; font-family: var(--serif); font-size: clamp(46px, 6vw, 82px); font-weight: 500; line-height: .94; letter-spacing: -.05em; }
.archive-copy { max-width: 420px; margin: 25px 0 0; color: rgba(248,243,233,.68); font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.archive-year { display: flex; gap: 12px; margin-top: 32px; }
.archive-year select { min-width: 190px; padding: 14px 42px 14px 16px; color: var(--paper-light); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); cursor: pointer; }
.archive-year option { color: var(--ink); }
.archive-list { border-top: 1px solid rgba(255,255,255,.18); }
.archive-link { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(248,243,233,.86); text-decoration: none; transition: .25s ease; }
.archive-link:hover { padding-left: 14px; color: #fff; background: rgba(255,255,255,.04); }
.archive-link span { font-family: var(--serif); font-size: 20px; }
.archive-link b { color: #d8b36b; font-size: 11px; letter-spacing: .1em; }

/* Archive/search listings */
.listing-page { min-height: 60vh; padding: 86px 0 110px; }
.listing-header { max-width: 900px; margin-bottom: 56px; }
.listing-header h1, .page-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 500; line-height: .96; letter-spacing: -.05em; }
.listing-header > p:last-child, .archive-description { max-width: 680px; margin-top: 22px; color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.archive-description p { margin: 0; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 25px; }
.listing-grid .article-card { grid-column: auto; }
.listing-search { max-width: 760px; margin-top: 30px; }
.listing-search .search-field { font-size: 24px; }
.navigation.pagination { margin-top: 70px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; font-size: 12px; font-weight: 750; }
.page-numbers.current, .page-numbers:hover { color: var(--paper-light); background: var(--forest); border-color: var(--forest); }
.page-numbers.prev, .page-numbers.next { width: auto; }
.empty-state { padding: 50px; border: 1px solid var(--line); background: rgba(248,243,233,.5); text-align: center; }
.empty-state h2 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 500; }

/* Single post */
.single-page { padding: 72px 0 0; }
.single-header { max-width: 1100px; text-align: center; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-bottom: 38px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span[aria-current="page"] { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-category { color: var(--rust); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.single-category a { text-decoration: none; }
.single-header h1 { max-width: 1040px; margin: 20px auto 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.single-meta { justify-content: center; margin-top: 30px; }
.single-hero { max-width: 1320px; margin-top: 56px; }
.single-hero img { width: 100%; max-height: 760px; object-fit: cover; }
.single-hero figcaption { padding-top: 9px; color: var(--muted); font-size: 11px; text-align: right; }
.single-layout { display: grid; grid-template-columns: minmax(0, 780px) 230px; justify-content: center; gap: 90px; padding-top: 70px; padding-bottom: 100px; }
.entry-content { font-family: var(--serif); font-size: 19px; line-height: 1.8; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1040px; margin-left: 50%; transform: translateX(-50%); width: min(1040px, calc(100vw - 40px)); }
.entry-content > .alignfull { max-width: none; margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.entry-content h2 { margin-top: 2.2em; font-size: clamp(32px, 4vw, 49px); line-height: 1.05; letter-spacing: -.035em; }
.entry-content h3 { margin-top: 2em; font-size: 30px; }
.entry-content a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em auto; padding: 24px 30px; border-left: 4px solid var(--rust); color: #3f453e; background: rgba(248,243,233,.72); font-size: 20px; }
.entry-content img { height: auto; }
.entry-content figcaption { color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.5; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.legacy-slider { position: relative; margin-top: 2em; margin-bottom: 2em; font-family: var(--sans); touch-action: pan-y; }
.legacy-slider__viewport { overflow: hidden; border: 1px solid var(--line); background: #19231b; box-shadow: 0 18px 46px rgba(36, 41, 34, .14); }
.legacy-slider__track { display: flex; align-items: center; transition: transform .45s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.legacy-slider__slide { display: grid; flex: 0 0 100%; place-items: center; min-width: 0; margin: 0; background: #19231b; }
.entry-content .legacy-slider__slide img { display: block; width: 100%; height: auto; max-height: min(68vh, 620px); object-fit: contain; }
.legacy-slider__arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; background: rgba(23, 34, 25, .78); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); cursor: pointer; font-size: 22px; line-height: 1; transform: translateY(-50%); transition: background-color .2s ease, transform .2s ease; }
.legacy-slider__arrow:hover, .legacy-slider__arrow:focus-visible { background: var(--rust); transform: translateY(-50%) scale(1.05); }
.legacy-slider__arrow--prev { left: 16px; }
.legacy-slider__arrow--next { right: 16px; }
.legacy-slider__dots { display: flex; justify-content: center; gap: 9px; padding-top: 16px; }
.legacy-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #b8b2a5; cursor: pointer; transition: width .2s ease, border-radius .2s ease, background-color .2s ease; }
.legacy-slider__dots button.is-active { width: 28px; border-radius: 99px; background: var(--rust); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; }
.post-tags a { padding: 7px 10px; color: var(--forest); border: 1px solid var(--line); text-decoration: none; }
.article-aside { position: sticky; top: 28px; align-self: start; padding-top: 10px; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.aside-stamp { width: 160px; height: 160px; display: grid; place-content: center; margin-bottom: 24px; border: 1px solid var(--rust); border-radius: 50%; color: var(--rust); text-align: center; transform: rotate(-4deg); }
.aside-stamp span { font-size: 39px; line-height: 1; }
.aside-stamp b { margin-top: 7px; font-family: var(--sans); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.related-posts { padding: 90px 0; background: var(--paper-light); }
.comments-section { max-width: 900px; padding-top: 80px; padding-bottom: 100px; }
.comments-title, .comment-reply-title { font-family: var(--serif); font-size: 36px; font-weight: 500; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .comment { margin-top: 25px; padding: 24px; background: rgba(248,243,233,.65); border: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 8px 0 14px; color: var(--muted); font-size: 11px; }
.comment-form label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--paper-light); }
.comment-form .submit { padding: 14px 21px; border: 0; color: #fff; background: var(--rust); cursor: pointer; font-weight: 750; }

/* Pages and 404 */
.page-view { padding: 85px 0 110px; }
.standard-page { max-width: 1000px; }
.page-header { margin-bottom: 50px; }
.page-featured { margin-bottom: 55px; }
.standard-page .entry-content { max-width: 760px; margin-inline: auto; }
.not-found-page { min-height: 66vh; display: grid; align-items: center; padding: 80px 0; }
.not-found-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.not-found-code { margin: 0; color: var(--rust); font-family: var(--serif); font-size: clamp(140px, 22vw, 300px); line-height: .7; opacity: .22; }
.not-found-inner h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 86px); font-weight: 500; line-height: .95; letter-spacing: -.05em; }
.not-found-inner > div > p { max-width: 600px; color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.not-found-search { max-width: 650px; margin: 28px 0; }
.not-found-search .search-field { font-size: 22px; }
.button-link { display: inline-block; padding: 15px 20px; color: #fff; background: var(--forest); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Footer */
.site-footer { padding: 56px 0 36px; color: rgba(248,243,233,.64); background: #172219; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { color: var(--paper-light); font-family: var(--serif); font-size: 34px; }
.footer-about { max-width: 440px; margin-top: 16px; font-family: var(--serif); font-size: 14px; line-height: 1.65; }
.footer-heading { margin: 0 0 15px; color: #d8b36b; font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-links, .site-footer .menu { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .site-footer .menu a { font-size: 13px; text-decoration: none; }
.footer-links a:hover, .site-footer .menu a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 26px; font-size: 10px; line-height: 1.6; }
.footer-bottom p { max-width: 820px; margin: 0; }
.footer-legal { max-width: 860px; }
.footer-disclaimer { margin-top: 10px !important; color: rgba(248,243,233,.52); }
.crest-credit { text-align: right; }
.crest-credit a { text-decoration: none; }
.footer-counter { display: flex; justify-content: flex-end; min-height: 31px; margin-top: 22px; }
.footer-counter img { display: block; width: auto; max-width: 100%; height: auto; }

/* WordPress utility classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: 12px; }
.sticky { outline: 1px solid var(--gold); outline-offset: 6px; }
.bypostauthor { border-left-color: var(--rust) !important; }

@media (max-width: 1040px) {
  .header-main { grid-template-columns: auto 1fr; min-height: 88px; }
  .header-kicker, .desktop-nav { display: none; }
  .brand { grid-column: 1; }
  .header-actions { grid-column: 2; }
  .menu-btn { display: grid; }
  .home-hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 52vw; }
  .hero-copy { padding: 48px; }
  .hero-copy::before { left: 60px; top: -16px; }
  .article-card, .article-card.is-wide { grid-column: span 6; display: block; }
  .is-wide .card-image { min-height: 0; aspect-ratio: 16 / 10; }
  .is-wide .card-body { padding: 30px; }
  .archive-inner { grid-template-columns: 1fr; gap: 55px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .single-layout { grid-template-columns: minmax(0, 760px); }
  .article-aside { display: none; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1240px); }
  .header-main { min-height: 78px; }
  .brand-mark, .custom-logo-link { width: 48px; height: 56px; }
  .brand-title { font-size: 23px; }
  .brand-subtitle { display: none; }
  .round-btn { width: 42px; height: 42px; }
  .home-hero { padding: 20px 0 52px; }
  .hero-grid { min-height: 0; }
  .hero-image { min-height: 310px; }
  .hero-copy { padding: 38px 26px 42px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-deck { margin-top: 21px; font-size: 16px; }
  .topic-label { display: none; }
  .topic-link { min-height: 60px; padding-inline: 17px; }
  .stories { padding: 75px 0 84px; }
  .popular-stories { padding: 48px 0 62px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-note { margin-top: 18px; text-align: left; }
  .article-grid, .listing-grid { display: block; }
  .article-card, .article-card.is-wide { margin-bottom: 42px; }
  .is-wide .card-body { padding: 26px; }
  .archive-showcase { padding: 76px 0; }
  .archive-title { font-size: 54px; }
  .archive-year { flex-direction: column; }
  .archive-year select { width: 100%; }
  .archive-link { grid-template-columns: 1fr; gap: 7px; }
  .listing-page { padding: 65px 0 85px; }
  .listing-header h1, .page-header h1 { font-size: 49px; }
  .single-page { padding-top: 50px; }
  .single-header h1 { font-size: 47px; }
  .breadcrumbs { justify-content: flex-start; text-align: left; }
  .single-hero { width: 100%; }
  .single-layout { padding-top: 48px; padding-bottom: 75px; }
  .entry-content { font-size: 18px; line-height: 1.72; }
  .entry-content > .alignwide { width: calc(100vw - 28px); }
  .legacy-slider__arrow { width: 42px; height: 42px; font-size: 19px; }
  .legacy-slider__arrow--prev { left: 10px; }
  .legacy-slider__arrow--next { right: 10px; }
  .related-posts { padding: 65px 0; }
  .not-found-inner { grid-template-columns: 1fr; gap: 25px; }
  .not-found-code { font-size: 150px; }
  .footer-top { grid-template-columns: 1fr; gap: 35px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 14px; text-align: left; }
  .footer-counter { justify-content: flex-start; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-submit { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
