:root {
  --text: #22292f;
  --muted: #5a6570;
  --bg: #fbfbf9;
  --accent: #146c94;
  --border: #e2e2df;
}

* { box-sizing: border-box; }

body {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 12rem;
  font-family: system-ui, sans-serif;
}

.sidebar h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li { border-top: 1px solid var(--border); }
.sidebar li:last-child { border-bottom: 1px solid var(--border); }

.sidebar a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.sidebar a:hover { color: var(--accent); }

main { min-width: 0; flex: 1; }

@media (max-width: 40rem) {
  .layout { flex-direction: column; }
  .sidebar { flex-basis: auto; width: 100%; }
}

h1, h2, h3 {
  font-family: system-ui, sans-serif;
  line-height: 1.25;
}

h1 { font-size: 1.75rem; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }

a { color: var(--accent); }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 calc(50% - 50vw) 2rem;
  background: #000;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img { display: block; }

.search {
  display: flex;
  gap: 0.4rem;
}

.search input {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  width: 12rem;
}

.search input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.search button {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  cursor: pointer;
}

.search button:hover { background: var(--accent); border-color: var(--accent); }

nav {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

nav a { color: var(--muted); }
nav a:hover { color: var(--accent); }

footer nav { margin-bottom: 0.5rem; }

.article-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.article-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.article-list li:first-child { padding-top: 0; }

.article-list a {
  font-family: system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.article-list a:hover { color: var(--accent); }

.article-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  font-family: system-ui, sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
}

article p { margin: 1rem 0; }

img { max-width: 100%; }

figure { margin: 1.5rem 0; }

figcaption {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: system-ui, sans-serif;
  background: #f1f4f5;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
