/* blog.nice2mitya.com – dark charcoal + orange, typographic, mobile-first */
:root {
  --bg: #121212;
  --bg-raise: #1b1b1d;
  --text: #e8e6e3;
  --muted: #97938d;
  --accent: #ff7a1a;
  --accent-dim: #cc5f10;
  --line: #2a2a2d;
  --maxw: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ff9750; text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; flex-wrap: wrap; }
.site-title { color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.site-title:hover { color: var(--text); text-decoration: none; }
.site-title .plus { color: var(--accent); }
.site-title .subtitle { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.site-nav { display: flex; gap: 18px; font-size: 14.5px; }
.site-nav a { color: var(--muted); }
.site-nav a:first-child { color: var(--accent); font-weight: 600; }
.site-nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 44px 0 10px; }
.hero h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; max-width: 56ch; }

/* index cards */
.cards { padding: 28px 0 8px; display: grid; gap: 34px; }
.card { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.card:last-child { border-bottom: none; }
.card-image img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.card-body h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 6px 0 8px; }
.card-body h2 a { color: var(--text); }
.card-body h2 a:hover { color: var(--accent); text-decoration: none; }
.card-image { margin-bottom: 14px; display: block; }
.card-excerpt { color: var(--muted); margin: 0; font-size: 15.5px; }
.post-date { color: var(--muted); font-size: 13px; text-transform: lowercase; letter-spacing: 0.02em; margin: 0 0 4px; }

/* pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 40px; font-size: 15px; }
.page-num { color: var(--muted); }

/* post */
.post { padding: 40px 0 30px; }
.post h1 { font-size: 30px; line-height: 1.22; letter-spacing: -0.02em; margin: 4px 0 18px; }
.post-cover { margin: 0 0 26px; }
.post-cover img { border-radius: 12px; }
.post-body p { margin: 0 0 1.15em; }
.about-blog { margin: 2.2em 0 0; padding: 1em 1.2em; border: 1px solid var(--border, #2a2a2a); border-radius: 10px; font-size: 0.92em; color: var(--muted, #9a9a9a); }
.about-blog a { border-bottom: 1px solid var(--accent-dim); }
.post-body a { border-bottom: 1px solid var(--accent-dim); }
.post-body a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.aieo { margin: 34px 0 0; background: var(--bg-raise); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 22px; }
.aieo h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.aieo ul { margin: 0; padding-left: 18px; }
.aieo li { margin-bottom: 6px; font-size: 15.5px; }
.post-source { color: var(--muted); font-size: 14px; margin-top: 26px; }
.back-link { margin-top: 30px; }

/* 404 */
.not-found { padding: 70px 0; text-align: center; }
.btn { display: inline-block; background: var(--accent); color: #121212; font-weight: 700; padding: 10px 22px; border-radius: 8px; }
.btn:hover { background: #ff9750; color: #121212; text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { padding: 22px 20px 34px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); margin-right: 16px; }
.footer-inner a:last-child { margin-right: 0; }
.footer-inner a:hover { color: var(--accent); }

@media (min-width: 700px) {
  body { font-size: 17.5px; }
  .hero h1 { font-size: 38px; }
  .post h1 { font-size: 36px; }
}
