* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #000;
  color: #ccc;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  text-rendering: optimizeSpeed;
}

body {
  padding: 1rem;
}

@media (min-width: 480px) {
  body {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  body {
    padding: 3rem;
  }
}

a {
  color: #ccc;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.shell {
  max-width: 768px;
  margin: 0 auto;
}

.profile,
.section-grid {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  column-gap: 1.25rem;
  margin: 1.25rem auto;
  padding: 0;
}

.profile h2,
.section-grid h2,
.section-path {
  color: #888;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.section-path a {
  color: inherit;
}

.section-path a:hover {
  color: #fff;
}

.intro {
  color: #ccc;
  line-height: 1.35;
}

.intro strong {
  color: #fff;
}

.profile-copy p + p {
  margin-top: 0.375rem;
}

.darker {
  color: #666;
}

.handle,
.tagline,
.post-meta,
.empty {
  color: #888;
}

.tagline {
  margin-top: 0.375rem;
  font-style: italic;
}

.link-list,
.post-list {
  list-style: none;
}

.link-list li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
  font-size: 0.875rem;
}

.link-list span:first-child {
  color: #555;
}

.post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1rem;
  padding: 0.125rem 0;
}

.post-list time {
  color: #555;
  font-size: 0.875rem;
}

.post-list p {
  grid-column: 1 / -1;
  color: #888;
  font-size: 0.875rem;
  line-height: 1.25;
}

.page-post .post-shell {
  max-width: 980px;
}

.post-frame {
  display: grid;
  grid-template-columns: 17rem minmax(0, 68ch);
  column-gap: 2.5rem;
  align-items: start;
}

.post-rail {
  position: sticky;
  top: 3rem;
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: right;
}

.post-path {
  margin-bottom: 0.75rem;
}

.post-rail h1 {
  color: #ddd;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-rail dl {
  display: grid;
  gap: 0.125rem;
}

.post-rail dt {
  color: #444;
}

.post-rail dd {
  color: #888;
  margin-bottom: 0.75rem;
}

.post-document {
  min-width: 0;
}

.post-content h1 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.post-content h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.post-content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.post-content h2::before,
.post-content h3::before {
  color: #555;
}

.post-content h2::before {
  content: ":: ";
}

.post-content h3::before {
  content: "-- ";
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.post-content > p:first-child {
  color: #ddd;
}

.post-content a {
  border-bottom: 1px dotted #555;
}

.post-content a:hover {
  border-bottom-color: #fff;
}

.post-content blockquote {
  border-left: 1px solid #444;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #888;
}

.post-content code {
  background: #111;
  color: #ddd;
  padding: 0.125rem 0.375rem;
  font-family: "Courier New", Courier, monospace;
}

.post-content h1 code,
.post-content h2 code,
.post-content h3 code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content pre {
  background: #050505;
  border-left: 2px solid #333;
  border-top: 1px solid #222;
  padding: 1rem 1rem 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1rem 1.25rem;
}

.post-content li {
  margin-bottom: 0.375rem;
  padding-left: 0.25rem;
  line-height: 1.55;
}

.post-content li::marker {
  color: #555;
}

@media (max-width: 560px) {
  .profile,
  .section-grid,
  .post-frame,
  .post-list li,
  .post-meta {
    grid-template-columns: 1fr;
  }

  .link-list li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .profile h2,
  .section-grid h2,
  .post-path,
  .post-rail {
    text-align: left;
  }

  .section-path {
    white-space: normal;
  }

  .post-rail {
    position: static;
    margin-bottom: 1.5rem;
  }
}
