/*
Theme Name: ModernPaper
Theme URI: http://example.com/
Description: Modern, fast, SEO-optimized lightweight theme — ModernPaper (by Олег)
Author: Олег
Author URI: #
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: modernpaper
Tags: modern, responsive, seo, lightweight, two-columns
*/

@charset "utf-8";

/* ---- Цветовая палитра ---- */
:root{
  --site-width: 1220px;
  --content-width: 780px;
  --sidebar-width: 380px;

  --primary-dark: #1e2a38;     /* основной фон / меню / футер */
  --primary-accent: #2e8b79;   /* акцент (ссылки, кнопки) */
  --secondary-accent: #e67e22; /* вторичный акцент (hover/детали) */

  --muted: rgba(0,0,0,0.54);
  --bg-page: #f8f9fa;

  --heading-size: 34px;
  --base-size: 20px;
  --line-height: 1.65;
  --radius: 10px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size:var(--base-size);
  line-height:var(--line-height);
  color:#222;
  margin:0;
  background:var(--bg-page);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary-accent);text-decoration:none}
a:hover{color:var(--secondary-accent);text-decoration:underline}

/* Page container */
#page{max-width:var(--site-width);margin:0 auto}

/* Header: одна полоса с диагональным разделителем */
header#branding{
  padding:0;
  margin:0 0 8px 0;
}
.header-stripe{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:110px;
  color:#fff;
  background: linear-gradient(135deg, var(--primary-dark) 50%, var(--primary-accent) 50%);
  border-radius: 8px;
  overflow:hidden;
  box-shadow: 0 4px 14px rgba(10,10,10,0.06);
  padding:0 20px;
}
.header-stripe .site-title{
  font-size:calc(var(--heading-size) + 6px);
  font-weight:800;
  margin:0;
  color:#ffffff;
  letter-spacing:-0.02em;
}
.header-stripe .site-desc{
  font-size:20px;
  font-weight:600;
  margin:0;
  color:rgba(255,255,255,0.95);
  text-align:right;
}

/* Main navigation under header */
#site-navigation{
  background: var(--primary-dark);
  color:#fff;
  padding:10px 18px;
  border-radius:6px;
  margin-top:12px;
}
.main-menu{
  display:flex;
  gap:20px;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}
.main-menu li a{
  color:#ffffff;
  font-weight:700;
  font-size:19px;
  padding:8px 10px;
  border-radius:6px;
}
.main-menu li a:hover{
  background: var(--primary-accent);
  color:#fff;
}

/* Layout */
#main{display:flex;gap:32px;padding:26px 0;align-items:flex-start}
#primary{flex:1;max-width:var(--content-width)}
#secondary{width:var(--sidebar-width)}
#secondary .widget-area{position:sticky;top:24px}

/* Post cards */
.post-card{
  display:flex;
  gap:18px;
  padding:18px;
  border-radius:10px;
  background:#fff;
  margin-bottom:18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  align-items:flex-start;
}
.post-card .thumb{
  flex:0 0 280px;
  height:170px;
  background-size:cover;
  background-position:center;
  border-radius:8px;
}
.post-card .thumb.no-thumb{ background-image: url('images/placeholder.png'); }
.post-card .post-body{flex:1}
.post-card h2{font-size:24px;margin:0 0 8px}
.post-card .meta{font-size:15px;color:var(--muted);margin-bottom:12px}
.post-card .excerpt{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:19px; /* увеличен */
  color:#333;
  line-height:1.55;
}

/* Pagination */
.pagination{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:24px 0}
.pagination a, .pagination span{
  display:inline-block;padding:10px 14px;border-radius:6px;
  border:1px solid rgba(0,0,0,0.06);text-decoration:none;color:#111;font-weight:700;
}
.pagination .current{background:var(--primary-accent);color:#fff;border-color:transparent}

/* Single post */
.entry-title{font-size:38px;margin:6px 0 12px}
.entry-meta{color:var(--muted);font-size:16px;margin-bottom:16px}
.entry-content{font-size:20px;line-height:1.8}
.entry-content img{max-width:100%;height:auto;border-radius:6px}

/* Post navigation */
.post-nav{display:flex;justify-content:space-between;margin:18px 0;font-weight:700}

/* Footer */
footer#colophon{
  padding:24px;
  margin-top:30px;
  background: var(--primary-dark);
  color:#fff;
  border-radius:8px;
}
footer#colophon .site-info p{
  margin:0;
  font-size:18px; /* увеличен */
  color:rgba(255,255,255,0.95);
}
footer#colophon .site-info a{color:var(--primary-accent)}
footer#colophon .site-info a:hover{color:var(--secondary-accent)}

/* Sidebar */
.widget-area .widget{background:#fff;padding:12px;border-radius:8px;margin-bottom:16px}
.widget-area ul{list-style:none;margin:0;padding:0}
.widget-area ul li{margin:0}
.widget-area ul li a{
  display:block;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.06);
  text-decoration:none;
  color:#111;
  font-weight:700;
  margin-bottom:8px;
  transition:transform .08s ease, background .12s ease;
}
.widget-area ul li:nth-child(odd) a{background: rgba(30,42,56,0.04)}
.widget-area ul li:nth-child(even) a{background: rgba(30,42,56,0.08)}
.widget-area ul li a:hover{background:var(--primary-accent);color:#fff;transform:translateY(-1px)}

/* Responsive */
@media (max-width:980px){
  :root{--site-width:940px;--content-width:680px;--sidebar-width:300px}
  #main{padding:18px;gap:18px}
}
@media (max-width:760px){
  #main{flex-direction:column;padding:12px}
  .post-card{flex-direction:column}
  .post-card .thumb{width:100%;height:260px}
  .header-stripe{height:120px;padding:16px}
  .header-stripe .site-title{font-size:28px}
  #site-navigation .main-menu{flex-wrap:wrap;gap:10px}
}
