/* hard.bargains — a plain blog. White paper, serif prose, mono numbers. */
:root {
  --paper: #ffffff;
  --ink: #111413;
  --muted: #5c6360;
  --rule: #e3e5e4;
  --rule-strong: #c7cac8;
  --accent: #156b4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 2px; }

.masthead, main, footer {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }
.masthead nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
}
.masthead nav a:hover { color: var(--ink); }

main { padding-bottom: 3rem; }

.lede { padding: 2.2rem 0 0.6rem; }
.lede h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}
.lede p { font-size: 1.1rem; margin: 0; }

.lede + section > h2 {
  font-size: 1rem;
  margin: 1.5rem 0 0;
}

.post-list { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.post-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 0; }
.post-list h2 { margin: 0.15rem 0 0.35rem; font-size: 1.4rem; line-height: 1.2; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 0; color: var(--muted); }

.date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
article { padding-top: 2rem; }
article h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.dek {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 1.6rem;
}
article h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
article blockquote {
  margin: 1.3rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule-strong);
  color: var(--muted);
}

article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.3rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
article th, article td {
  text-align: left;
  padding: 0.45rem 0.9rem 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
article thead th {
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}
article td:not(:first-child), article th:not(:first-child) { text-align: right; }
@media (max-width: 640px) {
  article table { display: block; overflow-x: auto; }
}

.data-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  padding-bottom: 2.5rem;
}
footer nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.1rem;
}
footer nav a:hover { color: var(--ink); }
