/* wadnotes.cz — hand-rolled stylesheet, no framework */

:root {
  --bg: #14120f;
  --bg-card: #1c1916;
  --ink: #ddd6cb;
  --ink-dim: #8d8478;
  --rule: #2e2922;
  --accent: #c8783c;
  --accent-soft: #e0a066;
  --link: #a9c08a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
}

/* --- header --- */

header.top {
  border-bottom: 2px solid var(--rule);
  margin-bottom: 2.2rem;
  padding: 2.2rem 0 1.1rem;
}

.logo {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.logo span { color: var(--accent); }

.tagline {
  color: var(--ink-dim);
  font-size: 0.85rem;
  font-family: "Courier New", Courier, monospace;
  margin: 0.35rem 0 1.1rem;
}

nav a {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-decoration: none;
  margin-right: 1.3rem;
  border-bottom: 1px dotted transparent;
}

nav a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

/* --- post list --- */

.entry {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
}

.entry:last-child { border-bottom: none; }

.entry h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.22rem;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { color: var(--accent-soft); }

.meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}

.entry p { margin: 0 0 0.6rem; }

.more {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--link);
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* --- article --- */

article h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

article h3 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.02rem;
  margin: 2rem 0 0.5rem;
  color: var(--accent-soft);
}

article p { margin: 0 0 1.05rem; }

article ul { padding-left: 1.2rem; }
article li { margin-bottom: 0.4rem; }

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

figure {
  margin: 1.8rem 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 0.6rem;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

figcaption {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--ink-dim);
  padding-top: 0.55rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-dim);
  font-style: italic;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.1em 0.35em;
  border: 1px solid var(--rule);
}

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

.back {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 2rem;
}

/* --- footer --- */

footer {
  border-top: 2px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--ink-dim);
}

/* --- 404 --- */

.big404 {
  font-family: "Courier New", Courier, monospace;
  font-size: 4.5rem;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.05em;
}

@media (max-width: 30rem) {
  body { font-size: 15px; }
  .logo { font-size: 1.5rem; }
  article h1 { font-size: 1.35rem; }
  .big404 { font-size: 3rem; }
}
