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

body {
  font-family: Georgia, serif;
  background: #fff;
  color: #111;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Shared breadcrumb header: wecreatethis.com / blog / section */
header {
  margin-bottom: 40px;
}

header nav {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #888;
}

header nav a {
  color: #111;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

header nav span[aria-current] {
  color: #111;
}

#loading {
  color: #888;
  font-size: 0.95rem;
}

/* Section page */

#section-title {
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 8px;
}

.section-head {
  margin-bottom: 40px;
}

#sort-toggle {
  display: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: #888;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

#sort-toggle:hover {
  color: #111;
}

#subsections {
  display: none;
  list-style: none;
  margin-bottom: 40px;
}

#subsections li {
  margin-bottom: 12px;
}

#subsections a {
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
}

#subsections a:hover {
  text-decoration: underline;
}

.post-entry {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e0e0e0;
  scroll-margin-top: 24px;
}

.post-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-meta {
  margin-bottom: 32px;
}

.post-meta h2 {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-meta .meta-line {
  font-size: 0.85rem;
  color: #888;
}

/* Rendered markdown, shared by posts and the home page */

.md-content {
  line-height: 1.8;
  font-size: 1rem;
}

.md-content.post-placeholder {
  color: #888;
}

.md-content h1 {
  font-size: 1.3rem;
  font-weight: normal;
  margin: 0 0 16px;
}

.md-content h2 {
  font-size: 1.15rem;
  font-weight: normal;
  margin: 36px 0 12px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.md-content h2:first-child {
  margin-top: 0;
}

.md-content h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 24px 0 8px;
}

.md-content p {
  margin-bottom: 16px;
}

.md-content a {
  color: #111;
}

.md-content ul {
  margin: 0 0 16px 24px;
}

.md-content li {
  margin-bottom: 8px;
}

.md-content blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #e0e0e0;
  color: #555;
}

.md-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */

.md-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.md-content p code,
.md-content li code {
  background: #f2f2ef;
  padding: 1px 5px;
  border-radius: 3px;
}

.md-content pre {
  background: #f6f6f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  line-height: 1.6;
}

.md-content pre code {
  font-size: 0.85rem;
  background: none;
  padding: 0;
}

.tok-c { color: #999; font-style: italic; }
.tok-s { color: #59763d; }
.tok-n { color: #9a5b2b; }
.tok-k { color: #245c8f; }

/* Home page markdown tweaks: link lists without bullets */

#home-content ul {
  list-style: none;
  margin-left: 0;
}

#home-content li {
  margin-bottom: 12px;
}

#home-content a {
  font-size: 1.1rem;
  text-decoration: none;
}

#home-content a:hover {
  text-decoration: underline;
}

#home-content p {
  color: #444;
}
