body {
  max-width: 1180px;
  margin: auto;
  padding: 1em;
  line-height: 1.5;
  color: #222;
}

/* header and footer areas */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  background: #fff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2em;
  padding: 0.75em 0;
}
.page-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 2.75em;
  align-items: start;
}
.left-pane {
  position: sticky;
  top: 1em;
  padding-top: 0.5em;
  text-align: left;
}
.content-pane {
  max-width: 760px;
  min-width: 0;
}
.site-title {
  color: #111;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.site-brand p {
  margin: 0.2em 0 0;
  color: #666;
  font-size: 0.92em;
}
.menu {
  margin: 0;
  padding: 0;
}
.menu li {
  display: inline-block;
  margin: 0 0 0 0.25em;
}
.article-meta, .menu a {
  display: inline-block;
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}
.menu { text-align: right; }
.article-meta, footer { text-align: center; }
.avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 0.75em;
  text-decoration: none;
}
.author-card h2 {
  margin: 0 0 0.25em;
  font-size: 1.35em;
}
.author-card h2 a {
  color: inherit;
  text-decoration: none;
}
.author-card p {
  margin: 0.15em 0;
  color: #555;
}
.author-card .role {
  font-size: 0.95em;
  white-space: nowrap;
}
.author-card .tagline {
  color: #777;
  font-size: 0.9em;
}
.search-box { margin: 1em 0; }
.search-box input {
  width: 100%; box-sizing: border-box;
  padding: 0.45em 0.6em;
  border: 1px solid #ccc; border-radius: 4px;
  font-size: 0.9em; font-family: inherit;
  background: #fafafa;
}
.search-box input:focus { outline: none; border-color: #888; background: #fff; }
#search-results { margin-top: 0.35em; }
#search-results div {
  padding: 0.25em 0;
}
#search-results a {
  padding: 0.3em 0.4em;
  font-size: 0.9em; line-height: 1.35;
  text-decoration: none; color: #333;
  display: block; border-radius: 3px;
}
#search-results a:hover { background: #eee; }
.search-none { display: block; padding: 0.25em 0.4em; font-size: 0.85em; color: #999; }
.profile-links {
  margin: 0.75em 0;
  padding: 0;
  color: #555;
  font-size: 0.95em;
  list-style: none;
}
.profile-links li {
  margin: 0.2em 0;
}
.profile-links a {
  color: inherit;
}
.post-header {
  margin: 0 0 1.75em;
}
.post-header h1 {
  margin: 0 0 0.35em;
  font-size: 2.15em;
  font-weight: 700;
  line-height: 1.15;
}
.post-meta {
  margin: 0;
  color: #555;
  font-size: 0.95em;
}
.post-meta a {
  color: inherit;
  margin-left: 0.35em;
}
.post-index {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}
.post-index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5em;
  margin: 0.55em 0;
}
.post-index a {
  min-width: 0;
}
.post-index .date {
  flex: 0 0 auto;
  color: #666;
  font-size: 0.95em;
  white-space: nowrap;
}
.title { font-size: 1.1em; }
footer a { text-decoration: none; }
hr {
  border-style: dashed;
  color: #ddd;
}

/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code { background: none; }

/* misc elements */
img, iframe, video { max-width: 100%; }
main { hyphens: auto; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1em;
  }
  .page-shell {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .left-pane {
    position: static;
    text-align: left;
  }
  .menu { text-align: left; }
  .menu li {
    margin: 0.2em 0.1em 0.2em 0;
  }
  .post-index li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1em;
  }
  .avatar {
    margin: 0 0 0.75em;
    width: 54px;
    height: 54px;
    font-size: 1.5em;
  }
  .author-card .role {
    white-space: normal;
  }
}
