:root {
  color-scheme: dark;
  --bg: #000;
  --text: #e8e2d6;
  --muted: #a8a095;
  --faint: #6f685f;
  --line: #24211f;
  --link: #d7a7ff;
  --link-hover: #ffd3f4;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.62;
}

.page {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.home {
  padding-top: 5rem;
}

.masthead {
  margin-bottom: 4rem;
}

.site-name,
.date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.site-note {
  max-width: 34rem;
  color: var(--muted);
  margin: 0;
}

.inline-nav {
  margin-top: 1.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.inline-nav a {
  color: var(--text);
  text-decoration: none;
}

.inline-nav a:hover,
.inline-nav a:focus {
  color: var(--link-hover);
}

h1,
h2 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

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

.top-nav {
  margin-bottom: 3.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus {
  color: var(--text);
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.dek {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 40rem;
}

.posts h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.post-list time {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
}

.post-list a:hover,
.post-list a:focus {
  color: var(--link-hover);
}

.app-entry {
  padding: 1.35rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.app-entry:first-of-type {
  margin-top: 2.25rem;
}

.app-entry p {
  color: var(--muted);
}

.app-entry h2 {
  color: var(--text);
}

.links {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  .page {
    width: min(100% - 1.4rem, var(--max));
    padding-top: 2.5rem;
  }

  .home {
    padding-top: 3.5rem;
  }

  .post-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
