@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
  --bg: #c8c0b0;
  --bg-panel: #d8d0c0;
  --bg-panel-alt: #cec6b6;
  --border: #a09880;
  --border-light: #8a8270;
  --text: #2a2820;
  --text-dim: #6a6458;
  --text-bright: #1a1810;
  --accent: #2a2820;
  --accent-dim: #4a4438;
  --link: #1a1810;
  --link-visited: #4a4438;
  --link-hover: #000;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

nav {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 8px 12px;
  margin-bottom: 0;
  display: flex;
  gap: 4px;
}

nav a {
  color: var(--text-bright);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid transparent;
}

nav a:hover,
nav a:focus {
  background: var(--border);
  border-color: var(--border-light);
  color: var(--link-hover);
}

nav a:visited {
  color: var(--text-bright);
}

.banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  filter: grayscale(60%) contrast(1.1) sepia(30%) brightness(0.9);
}

.content {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg-panel);
  padding: 24px;
}

h1 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 24px 0 10px 0;
}

h3 {
  font-size: 12px;
  color: var(--text-bright);
  margin: 20px 0 8px 0;
}

p {
  margin: 0 0 12px 0;
}

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

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: var(--link-hover);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

ul {
  padding-left: 1.5em;
  margin: 0 0 12px 0;
}

li {
  margin-bottom: 4px;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel-alt);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.post-list li:hover {
  border-color: var(--border-light);
  background: var(--bg-panel);
}

.post-list a {
  text-decoration: none;
}

.post-list time,
.post-list .desc {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
}

footer {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg-panel-alt);
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-dim);
}

footer a {
  color: var(--text-dim);
}

article time {
  color: var(--text-dim);
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
}

article h1 {
  margin-bottom: 4px;
}

article img {
  max-width: 100%;
  height: auto;
}

pre {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}

code {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent);
}

pre code {
  color: var(--text);
}

blockquote {
  border-left: 2px solid var(--accent-dim);
  margin: 0 0 12px 0;
  padding: 4px 12px;
  color: var(--text-dim);
}

strong {
  color: var(--text-bright);
}

.links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.links-row a {
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 12px;
  }

  .banner {
    height: 160px;
  }

  .post-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
