/* k.belykh — one stylesheet, no framework */

:root {
  --paper: #faf8f4;
  --ink: #23262b;
  --muted: #6b6f76;
  --line: #e4e0d8;
  --accent: #0f5d5d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 38rem;
  margin: 2.5rem auto 0;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
}

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

main {
  max-width: 38rem;
  margin: 0 auto;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.25;
}

h1 { font-size: 1.85rem; margin: 2.2rem 0 .9rem; }
h2 { font-size: 1.25rem; margin: 2.4rem 0 .7rem; }

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

code {
  font: .9em ui-monospace, "Cascadia Code", Consolas, monospace;
  background: #efece5;
  padding: .1em .35em;
  border-radius: 4px;
}

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

ul.notes li {
  margin: 0 0 1rem;
  padding-left: 4.6rem;
  position: relative;
}

ul.notes .date {
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: .85rem;
}

footer {
  max-width: 38rem;
  margin: 3.5rem auto 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 560px) {
  ul.notes li { padding-left: 0; }
  ul.notes .date { position: static; display: block; }
}
