/* Собрано из шаблонов — tools/extract_template_styles.php */


/* --- template/ledger/header.php --- */
.theme-ledger .ledger-masthead {
  background: #f7f0e6;
  border-bottom: 3px double #1a1a1a;
  padding: 28px 20px 20px;
}
.ledger-mast-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.ledger-tagline {
  margin: 0 0 8px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b5344;
}
.ledger-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 700;
  color: #1a1410;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: inline-block;
}
.ledger-logo:hover { color: #8b1538; }
.ledger-rule {
  max-width: 180px;
  height: 4px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #8b1538 35%, #c9a227 50%, #8b1538 65%, transparent);
}
.ledger-nav-bar {
  background: #1a1410;
  position: sticky;
  top: 0;
  z-index: 150;
}
.ledger-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.ledger-nav-btn {
  display: none;
  width: 100%;
  background: transparent;
  border: none;
  color: #f7f0e6;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  padding: 14px 8px;
  cursor: pointer;
  text-align: left;
}
.ledger-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
}
.ledger-nav-list a {
  display: block;
  padding: 14px 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8dcc8;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.ledger-nav-list a:hover {
  color: #fff;
  border-bottom-color: #c9a227;
}

@media (min-width: 821px) {
  .ledger-nav-list > li.menu-item-has-children {
    position: relative;
  }

  .ledger-nav-list .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #1a1410;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 200;
  }

  .ledger-nav-list .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 2px;
  }

  .ledger-nav-list li.menu-item-has-children:hover > .sub-menu,
  .ledger-nav-list li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  .ledger-nav-list .sub-menu li {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ledger-nav-list .sub-menu li:last-child {
    border-bottom: none;
  }

  .ledger-nav-list .sub-menu a {
    padding: 10px 14px;
  }
}

.ledger-nav-empty { color: #a89880; font-size: 0.8rem; padding: 14px 0; display: block; }

@media (max-width: 820px) {
  .ledger-nav-btn { display: block; }
  .ledger-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
    gap: 0;
  }
  .ledger-nav-list.is-open { display: flex; }
  .ledger-nav-list li { border-top: 1px solid rgba(255,255,255,0.08); }
  .ledger-nav-list a { padding: 14px 4px; }

  .ledger-nav-list .sub-menu {
    display: block;
    position: static;
    margin: 0;
    padding: 0 0 0 12px;
    list-style: none;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .ledger-nav-list .sub-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ledger-nav-list .sub-menu a {
    padding: 12px 4px;
    font-size: 0.75rem;
  }
}

/* --- template/ledger/footer.php --- */
.ledger-footer--rich {
  margin-top: 72px;
  background: linear-gradient(180deg, #ede4d6 0%, #e8dcc8 100%);
  border-top: 3px double #1a1410;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  position: relative;
}
.ledger-footer-rule {
  height: 3px;
  background: linear-gradient(90deg, transparent, #8b1538 20%, #c9a227 50%, #8b1538 80%, transparent);
  opacity: 0.95;
}
.ledger-footer-ornament {
  text-align: center;
  font-size: 11px;
  color: #8b1538;
  letter-spacing: 0.5em;
  margin: -8px 0 0;
  position: relative;
  z-index: 1;
}
.ledger-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
.ledger-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: 18px;
}
.ledger-footer__mast {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1410;
  letter-spacing: 0.02em;
}
.ledger-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
}
.ledger-footer__menu a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c4a3d;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ledger-footer__menu a:hover {
  color: #8b1538;
  border-bottom-color: #c9a227;
}
.ledger-footer__contacts-band {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #fffef9;
  border: 1px solid #1a1410;
  box-shadow: 6px 6px 0 rgba(201, 162, 39, 0.35);
}
.ledger-footer__contacts .cms-foot-contact__strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.ledger-footer__contacts .cms-foot-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed rgba(26, 20, 16, 0.35);
  background: rgba(255, 254, 249, 0.95);
}
.ledger-footer__contacts .cms-foot-contact__glyph {
  color: #8b1538;
  font-size: 0.95rem;
}
.ledger-footer__contacts .cms-foot-contact__link {
  color: #3d342c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ledger-footer__contacts .cms-foot-contact__link:hover {
  color: #8b1538;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ledger-footer__ledger-line {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #1a1410,
    #1a1410 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.35;
  margin-bottom: 20px;
}
.ledger-footer__copy {
  margin: 0;
  font-size: 0.92rem;
  color: #4a3f36;
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 720px;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .ledger-footer__menu {
    justify-content: flex-start;
  }
}

/* --- template/ledger/home.php --- */
body.theme-ledger {
  margin: 0;
  min-height: 100vh;
  background: #f7f0e6 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1410' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #1a1410;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lg-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 22px 72px;
}
.lg-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 56px;
  border: 2px solid #1a1410;
  box-shadow:
    14px 14px 0 rgba(139, 21, 56, 0.2),
    0 28px 56px rgba(26, 20, 16, 0.09);
  background: #fffef9;
  overflow: hidden;
}
.lg-hero a {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 900px) {
  .lg-hero a { grid-template-columns: 1fr; }
}
.lg-hero-img {
  position: relative;
  min-height: 300px;
}
@media (min-width: 901px) {
  .lg-hero-img {
    min-height: 420px;
  }
}
.lg-hero-img img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.lg-hero a:hover .lg-hero-img img {
  transform: scale(1.04);
}
.lg-hero-cap {
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #1a1410;
  background: linear-gradient(180deg, #fffef9 0%, #faf6ee 100%);
}
@media (max-width: 900px) {
  .lg-hero-cap { border-left: none; border-top: 1px solid #1a1410; }
}
.lg-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b1538;
  font-weight: 700;
  margin-bottom: 14px;
}
.lg-hero h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.05rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a1410;
}
.lg-section {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 22px;
  border-bottom: 2px solid #1a1410;
  padding-bottom: 10px;
}
.lg-section h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}
.lg-section span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b5344;
  font-weight: 600;
}
.lg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 52px;
}
.lg-card {
  background: #fffef9;
  border: 1px solid rgba(26, 20, 16, 0.25);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.lg-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 #c9a227;
}
.lg-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid rgba(26,20,16,0.15);
}
.lg-card h3 {
  margin: 0;
  padding: 16px 18px 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 600;
}
.lg-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.lg-spot {
  display: flex;
  flex-direction: column;
  border: 1px solid #1a1410;
  background: #fffef9;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.lg-spot:hover { box-shadow: 10px 10px 0 rgba(139, 21, 56, 0.15); }
.lg-spot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.lg-spot-cap {
  padding: 20px 22px 24px;
  border-top: 3px solid #8b1538;
  flex: 1;
}
.lg-spot-cap em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a227;
  font-weight: 700;
  margin-bottom: 10px;
}
.lg-spot-cap h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.22;
}
.theme-ledger .cms-home-top-stories {
  margin-bottom: 24px;
}
.theme-ledger .cms-home-top-stories__inner {
  padding: 14px 16px;
  background: #fffef9;
  border: 1px solid #1a1410;
  box-shadow: 6px 6px 0 rgba(201, 162, 39, 0.2);
}
.theme-ledger .cms-home-top-stories__label {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8b1538;
}
.theme-ledger .cms-home-top-stories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.theme-ledger .cms-home-top-stories__item {
  flex: 1 1 160px;
  min-width: 0;
}
.theme-ledger .cms-home-top-stories__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  text-decoration: none;
  color: #1a1410;
  background: #fff;
  border: 1px dashed rgba(26, 20, 16, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-ledger .cms-home-top-stories__link:hover {
  border-style: solid;
  border-color: #8b1538;
  box-shadow: 4px 4px 0 rgba(139, 21, 56, 0.12);
}
.theme-ledger .cms-home-top-stories__thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #1a1410;
}
.theme-ledger .cms-home-top-stories__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-ledger .cms-home-top-stories__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
@media (max-width: 768px) {
  .theme-ledger .cms-home-top-stories__inner {
    padding: 10px 10px 12px;
    box-shadow: 4px 4px 0 rgba(201, 162, 39, 0.2);
  }
  .theme-ledger .cms-home-top-stories__label {
    font-size: 0.82rem;
    margin: 0 0 8px;
  }
  .theme-ledger .cms-home-top-stories__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
    padding: 0;
    margin: 0;
    scrollbar-width: auto;
  }
  .theme-ledger .cms-home-top-stories__item {
    flex: none;
    width: 100%;
    max-width: none;
    scroll-snap-align: none;
  }
  .theme-ledger .cms-home-top-stories__link {
    min-height: 54px;
    padding: 7px 10px;
  }
  .theme-ledger .cms-home-top-stories__thumb {
    width: 48px;
    height: 48px;
  }
  .theme-ledger .cms-home-top-stories__title {
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

/* --- template/ledger/article.php --- */
body.theme-ledger {
  margin: 0;
  background: #f7f0e6;
  color: #1a1410;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.75;
}
.theme-ledger main {
  max-width: 720px;
  margin: 36px auto 40px;
  padding: clamp(32px, 5vw, 52px);
  background: #fffef9;
  border: 1px solid #1a1410;
  box-shadow: 10px 10px 0 rgba(201, 162, 39, 0.25);
}
.post h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #1a1410;
}
.meta {
  font-size: 0.92rem;
  color: #5c4d42;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(26, 20, 16, 0.35);
}
.meta a {
  color: #8b1538;
  text-decoration: none;
  font-weight: 600;
}
.meta a:hover { text-decoration: underline; }
.content { font-size: 1.06rem; color: #2c241c; }
.content p { margin-bottom: 1.5em; }
.post .content p:empty { min-height: 1.4em; }
.content img {
  max-width: 100%;
  border-radius: 2px;
  margin: 24px auto;
  display: block;
  border: 1px solid rgba(26,20,16,0.2);
}
.content h2, .content h3 {
  margin-top: 1.6em;
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a1410;
}
.content blockquote {
  border-left: 4px solid #8b1538;
  margin: 1.5em 0;
  padding: 12px 0 12px 22px;
  font-style: italic;
  color: #4a3f36;
  background: linear-gradient(90deg, rgba(139,21,56,0.06), transparent);
}
.content a { color: #8b1538; font-weight: 500; }
.post-image { margin: 28px 0; text-align: center; }
.post-image img {
  max-width: 100%;
  border: 1px solid #1a1410;
  box-shadow: 6px 6px 0 rgba(26, 20, 16, 0.08);
}
.related-articles {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 20px;
}
.related-articles h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
  color: #1a1410;
}
.related-articles h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #8b1538, #c9a227);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.related-list article {
  background: #fffef9;
  border: 1px solid rgba(26,20,16,0.25);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-list article:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(139, 21, 56, 0.12);
}
.related-list img { width: 100%; height: 172px; object-fit: cover; border-bottom: 1px solid rgba(26,20,16,0.12); }
.related-list h3 { margin: 0; padding: 14px 16px 20px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.related-list a { color: #1a1410; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; }
.related-list a:hover { color: #8b1538; }
@media (max-width: 768px) {
  .theme-ledger main { margin: 20px 14px 32px; }
  .related-list { grid-template-columns: 1fr; }
}

/* --- template/ledger/category.php --- */
body.theme-ledger {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background: #f7f0e6;
    margin: 0;
    padding: 0;
    color: #1a1410;
}
.theme-ledger h1 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 36px 18px 28px;
    color: #1a1410;
}
.page-content {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 26px 30px;
    background: #fffef9;
    border: 1px solid rgba(26, 20, 16, 0.35);
    line-height: 1.75;
    color: #2c241c;
    font-size: 1.04rem;
    word-wrap: break-word;
    box-shadow: 6px 6px 0 rgba(139, 21, 56, 0.06);
}
.page-content p { margin: 0 0 1.1em; }
.page-content h2, .page-content h3, .page-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    color: #1a1410;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
}
.page-content h2 { font-size: 1.5rem; border-left: 4px solid #8b1538; padding-left: 12px; }
.page-content ul, .page-content ol { margin: 1em 0 1em 1.5em; }
.page-content a { color: #8b1538; text-decoration: none; font-weight: 500; }
.page-content a:hover { text-decoration: underline; }
.page-content img { display: block; max-width: 100%; margin: 18px auto; border: 1px solid rgba(26,20,16,0.2); }
.page-content blockquote {
    margin: 1.2em 0;
    padding: 1em 1.2em;
    border-left: 4px solid #c9a227;
    background: rgba(201, 162, 39, 0.08);
    font-style: italic;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.page-content th, .page-content td { border: 1px solid rgba(26,20,16,0.25); padding: 10px; }
.page-content th { background: rgba(139, 21, 56, 0.08); font-weight: 600; }
.le-cat-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    padding: 0 20px;
    list-style: none;
    margin: 0 auto 36px;
    max-width: 1120px;
}
.le-cat-feed > li {
    background: #fffef9;
    border: 1px solid rgba(26, 20, 16, 0.28);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.le-cat-feed > li:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(201, 162, 39, 0.35);
}
.le-cat-feed > li img {
    width: 100%;
    height: 176px;
    object-fit: cover;
    border-bottom: 1px solid rgba(26,20,16,0.1);
}
.le-cat-feed > li a { text-decoration: none; color: inherit; }
.le-cat-feed strong { font-size: 1.06rem; color: #1a1410; display: block; margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; }
.le-cat-feed small { color: #5c4d42; font-size: 0.85rem; }
.post-content { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 56px;
}
.pagination a {
    background: #fffef9;
    border: 1px solid #1a1410;
    padding: 8px 16px;
    color: #1a1410;
    text-decoration: none;
    font-weight: 600;
}
.pagination a:hover { background: #8b1538; color: #fff; border-color: #8b1538; }
.pagination a[style*="font-weight:bold"] {
    background: #1a1410;
    color: #f7f0e6;
    font-weight: 600 !important;
}
@media (max-width: 768px) {
    .page-content { padding: 18px; }
}

/* --- template/ledger/page.php --- */
body.theme-ledger {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    margin: 0;
    background: #f7f0e6;
    color: #1a1410;
    line-height: 1.65;
  }
  .theme-ledger h1 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    margin: 44px 22px 22px;
    color: #1a1410;
  }
  .theme-ledger main {
    max-width: 840px;
    margin: 0 auto 72px;
    background: #fffef9;
    border: 1px solid #1a1410;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 10px 10px 0 rgba(201, 162, 39, 0.22);
  }
  .theme-ledger main p { margin: 1.12em 0; font-size: 1.05rem; color: #2c241c; }
  .theme-ledger main img { max-width: 100%; margin: 22px auto; display: block; border: 1px solid rgba(26,20,16,0.2); }
  .theme-ledger main a { color: #8b1538; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(139,21,56,0.3); }
  .theme-ledger main a:hover { color: #c9a227; border-color: rgba(201,162,39,0.5); }
  .theme-ledger blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    border-left: 4px solid #8b1538;
    background: rgba(139, 21, 56, 0.04);
    font-style: italic;
    color: #4a3f36;
  }
  @media (max-width: 700px) {
    .theme-ledger main { margin-left: 14px; margin-right: 14px; padding: 22px; }
  }

/* --- template/ledger/author.php --- */
body.theme-ledger {
      font-family: 'Source Sans 3', system-ui, sans-serif;
      background: #f7f0e6;
      color: #1a1410;
      margin: 0;
      line-height: 1.6;
    }
    .ledger-author-title {
      font-family: 'Playfair Display', Georgia, serif;
      text-align: center;
      margin: 40px 20px 14px;
      font-size: clamp(1.85rem, 4vw, 2.65rem);
      font-weight: 700;
      color: #1a1410;
    }
    .author-desc {
      max-width: 720px;
      margin: 4px auto 40px;
      text-align: center;
      font-size: 1.02rem;
      color: #5c4d42;
      padding: 0 20px;
    }
    .theme-ledger main {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 20px 72px;
    }
    .articles {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
      padding: 0;
      margin: 0;
    }
    .article-card {
      background: #fffef9;
      border: 1px solid rgba(26, 20, 16, 0.3);
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      flex-direction: column;
    }
    .article-card:hover {
      transform: translate(-4px, -4px);
      box-shadow: 10px 10px 0 rgba(139, 21, 56, 0.12);
    }
    .preview { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #ede4d6; }
    .preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
    .article-card:hover .preview img { transform: scale(1.04); }
    .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
    .card-body h3 { margin: 0 0 10px; font-size: 1.22rem; font-family: 'Playfair Display', Georgia, serif; }
    .card-body h3 a { text-decoration: none; color: #1a1410; }
    .card-body h3 a:hover { color: #8b1538; }
    .excerpt { font-size: 0.95rem; color: #4a3f36; flex-grow: 1; margin-bottom: 14px; }
    .read-more { align-self: flex-start; text-decoration: none; color: #8b1538; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; }
    .read-more:hover { color: #c9a227; }
    .theme-ledger main > p { text-align: center; color: #6b5344; }


/* --- 404 --- */
/* Страница 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Inter", system-ui, sans-serif;
  text-align: center;
  background: #fafafa;
  color: #111;
  margin: 0;
}
.page-404__hero {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 280px;
  background: #e5e7eb center/contain no-repeat;
  margin-bottom: 20px;
  border-radius: 12px;
}
.page-404__hero h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.page-404__lead {
  margin: 0 0 16px;
  max-width: 420px;
  line-height: 1.5;
}
.page-404__btn {
  display: inline-block;
  padding: 12px 28px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.page-404__btn:hover {
  background: #15803d;
}
