/* nerdowski devlog — zero gradientow, zero cieni, zero ozdobnikow */

* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0a;
  --fg: #e8e4d8;
  --dim: #7d7a70;
  --accent: #e8e4d8;
  --accent2: #a6a296;
  --rule: #2b2a26;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0 auto;
  max-width: 760px;
  padding: 2rem 1rem 4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--fg);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

header {
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.banner {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  white-space: pre;
  overflow-x: auto;
}

.meta-row {
  color: var(--dim);
  font-size: 13px;
}

.meta-row .sep {
  margin: 0 0.5rem;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.lang-switch button.active {
  color: var(--accent2);
  text-decoration: underline;
}

.post {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.post:first-child {
  padding-top: 0;
}

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

.post .more {
  margin: 0;
}

.post .more a {
  color: var(--dim);
  font-size: 13px;
}

.back {
  margin: 0 0 1.5rem;
}

.back a {
  color: var(--dim);
  font-size: 13px;
}

.post-meta {
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 0.4rem;
}

.post-meta .date::before {
  content: "[";
}

.post-meta .date::after {
  content: "]";
}

.tag {
  color: var(--accent2);
  margin-left: 0.4rem;
}

.post h2 {
  color: var(--fg);
  font-size: 16px;
  margin: 0 0 0.6rem;
}

.post h2::before {
  color: var(--accent);
  content: "# ";
}

.post h3,
.post h4 {
  color: var(--fg);
  font-size: 15px;
  margin: 1.4rem 0 0.6rem;
}

.post h3::before {
  color: var(--accent);
  content: "## ";
}

.post h4::before {
  color: var(--dim);
  content: "### ";
}

.post figure {
  margin: 0 0 1rem;
}

.post figure img {
  border: 1px solid var(--rule);
  display: block;
  height: auto;
  max-width: 100%;
}

.post figcaption {
  color: var(--dim);
  font-size: 12px;
  margin-top: 0.35rem;
}

.post p {
  margin: 0 0 0.8rem;
}

.post ul {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.post li {
  margin-bottom: 0.2rem;
}

.post li::marker {
  color: var(--accent);
}

.post code {
  background: #191816;
  border: 1px solid var(--rule);
  color: var(--fg);
  padding: 0.05rem 0.3rem;
}

.post strong {
  color: var(--fg);
  font-weight: bold;
}

footer {
  border-top: 1px dashed var(--rule);
  color: var(--dim);
  font-size: 12px;
  margin-top: 2rem;
  padding-top: 1rem;
}
