/*
Theme Name: Wordtime Twenty
Description: Стартовая тема Wordtime CMS — тёмная шапка, светлая лента
Version: 1.0.5
*/
:root {
  --deep: #0c2e36;
  --deep2: #071b21;
  --teal: #0e9384;
  --amber: #f0b429;
  --paper: #f4f7f7;
  --line: #e2eaea;
  --txt: #1d3339;
  --mut: #64808a;
  --disp: "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--txt); font: 16px/1.65 var(--body); }
a { color: var(--teal); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* шапка */
.hdr { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--teal); }
.hdr-in { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { color: #fff; text-decoration: none; font-family: var(--disp); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand .mark { display: grid; place-items: center; width: 32px; height: 32px; background: linear-gradient(150deg, #10424d, #0b2f38); border: 1px solid #1d5160; border-radius: 9px; color: var(--amber); }
.nav { display: flex; gap: 18px; margin-left: 8px; flex-wrap: wrap; }
.nav a { color: #a9cbd2; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: color .15s; }
.nav a:hover { color: #fff; }
.srch { margin-left: auto; }
.srch input { padding: 8px 13px; border-radius: 8px; border: 1px solid #1f5663; background: var(--deep2); color: #fff; font-size: 13.5px; width: 170px; outline: none; transition: border-color .15s, width .2s; }
.srch input:focus { border-color: var(--teal); width: 210px; }

/* лента */
.body { padding: 34px 20px 70px; }
.list-h { font-family: var(--disp); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; margin: 4px 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(12, 46, 54, .35); }
.card img, .card .ph { width: 100%; height: 160px; object-fit: cover; display: grid; place-items: center; color: rgba(255,255,255,.75); background: linear-gradient(140deg, #0d3039, #134450); }
.card-b { padding: 17px 19px 19px; display: block; }
.cat { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { margin: 7px 0 8px; font-family: var(--disp); font-weight: 700; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--mut); font-size: 14px; }
.card .date { display: block; margin-top: 13px; font-size: 12.5px; font-weight: 700; color: #93aab1; }
.note { color: var(--mut); }

/* запись */
.post { max-width: 760px; }
.post h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 8px; }
.post .cover { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.post .content { font-size: 16.5px; line-height: 1.8; }
.comments { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 26px; }
.comments h2 { font-family: var(--disp); font-weight: 700; font-size: 19px; }
.cm { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 17px; margin: 12px 0; }
.cm p { margin: 7px 0 0; }
.muted { color: var(--mut); font-size: 13px; }
.cmform input[type=text], .cmform input[type=email], .cmform textarea { width: 100%; font: 500 14.5px var(--body); border: 1px solid #cfdde0; border-radius: 10px; padding: 10px 13px; outline: none; margin-top: 10px; background: #fff; }
.cmform textarea { resize: vertical; }
.cmrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--body); padding: 0 18px; height: 41px; border-radius: 10px; border: 0; background: var(--teal); color: #fff; cursor: pointer; margin-top: 12px; transition: .15s; }
.btn:hover { background: #0b7a6e; }

/* запись + сайдбар с виджетами */
.post-cols { display: grid; grid-template-columns: 1fr 270px; gap: 34px; margin-top: 12px; }
.post-side .widget { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.widget-title { font-family: var(--disp); font-weight: 700; font-size: 13.5px; margin: 0 0 10px; }
.widget-list { margin: 0; padding-left: 0; list-style: none; }
.widget-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--txt); text-decoration: none; font-weight: 500; }
.widget-list a:hover { color: var(--teal); }
.widget-text p { font-size: 13.5px; color: var(--mut); margin: 4px 0; }
.widget-search { display: flex; gap: 6px; }
.widget-search input { flex: 1; border: 1px solid #cfdde0; border-radius: 8px; padding: 8px 11px; font-size: 13.5px; outline: none; }
.widget-search button { border: 0; background: var(--teal); color: #fff; border-radius: 8px; width: 38px; cursor: pointer; }

/* подвал */
.ftr { background: var(--deep); color: #9fc0c5; padding: 30px 0 22px; font-size: 13.5px; margin-top: 44px; }
.ftr a { color: #7fd6c8; }
.ftr-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.ftr .widget { margin-bottom: 10px; }
.ftr .widget-title { color: #fff; font-size: 13px; }
.ftr .widget-list li { border-color: #174753; }
.ftr .widget-list a { color: #a9cbd2; }
.ftr .widget-list a:hover { color: #fff; }
.ftr .widget-text p { color: #8fb4ba; }
@media (max-width: 900px) { .post-cols { grid-template-columns: 1fr; } .ftr-cols { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hdr-in { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; } .srch { margin-left: 0; width: 100%; } .srch input { width: 100%; } .cmrow { grid-template-columns: 1fr; } }
