:root {
  --ink: #1a2330;
  --muted: #5a6675;
  --line: #cfd8e3;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --brand: #0a6ea8;
  --brand-dark: #085480;
  --accent: #c45c26;
  --mast: #0c3d5c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.55 Verdana, Geneva, sans-serif;
}

a { color: var(--brand-dark); }
a:hover { color: var(--accent); }

.mast {
  background: var(--mast);
  color: #e8f1f7;
  border-bottom: 4px solid var(--accent);
}

.mast-inner {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-name {
  margin: 0;
  font: 800 34px/1 "Arial Black", Impact, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-name a {
  color: #fff;
  text-decoration: none;
}

.site-tag {
  margin: 6px 0 0;
  font: 13px/1.3 Verdana, Geneva, sans-serif;
  color: #9eb8cc;
  max-width: 36ch;
}

.cats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.cats nav {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cats a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.cats a:hover {
  background: #eef4f9;
  color: var(--brand);
}

.layout {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 40px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}

.lead {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  padding: 18px 20px 14px;
  margin: 0 0 18px;
}

.lead h1 {
  margin: 0 0 8px;
  font: 700 28px/1.2 Georgia, "Times New Roman", serif;
  color: var(--mast);
}

.lead p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 16px 18px 12px;
}

.post:first-of-type {
  border-top: 1px solid var(--line);
}

.post .meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post h2 {
  margin: 0 0 8px;
  font: 700 20px/1.3 Georgia, "Times New Roman", serif;
}

.post h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post h2 a:hover { color: var(--brand); }

.post .excerpt {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14.5px;
}

.post .more {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.widget {
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 0 0 14px;
}

.widget h3 {
  margin: 0;
  padding: 10px 12px;
  background: var(--mast);
  color: #fff;
  font: 700 13px/1.2 Verdana, Geneva, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.widget ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.widget li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
  color: var(--ink);
}

.widget li:last-child a { border-bottom: 0; }
.widget li a:hover { background: #eef4f9; color: var(--brand); }

.widget p {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}

.article-body {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 22px 8px;
  margin: 0 0 16px;
}

.article-body h2 {
  margin: 0 0 10px;
  font: 700 24px/1.25 Georgia, "Times New Roman", serif;
  color: var(--mast);
}

.article-body .byline {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body p { margin: 0 0 14px; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 14px;
  background: #eef4f9;
  border: 1px solid var(--line);
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input, select, button {
  font: 14px/1.3 Verdana, Geneva, sans-serif;
  color: var(--ink);
}

input, select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

button {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

button:hover { background: var(--brand-dark); }

#result {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff8f2;
  border-left: 3px solid var(--accent);
  font-size: 14px;
}

.site-foot {
  border-top: 1px solid var(--line);
  background: #e8eef4;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.site-foot .inner {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.feed .post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}

.feed .thumb {
  display: block;
}

.feed .thumb img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.article-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  margin: 0 0 14px;
  border: 1px solid var(--line);
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .site-name { font-size: 28px; }
  .lead h1 { font-size: 24px; }
  form { grid-template-columns: 1fr; }
  .cats a { border-right: 0; }
  .feed .post { grid-template-columns: 96px 1fr; gap: 10px; }
  .feed .thumb img { width: 96px; height: 64px; }
}
