/* In-depth writing: a sheet of dark paper with newsprint rules. */

[data-theme="blog"] {
  --accent: #e8a33d;
}

.post[data-theme="blog"],
.ed-article {
  --surface: #1d1914;
  --line: #4d4538;
  --muted: #b5a995;
  border: 1px solid var(--line);
  background: #27221b;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.4);
}

/* In a feed */

.post[data-theme="blog"] {
  display: block;
  margin: 1.25rem 0;
  padding: 1.5rem 1.75rem 1.35rem;
}

.post[data-theme="blog"] .prose { font: 1.1875rem/1.7 var(--serif); }

.ed-title { margin: 0; font-size: 2.125rem; font-weight: 500; line-height: 1.12; }
.ed-title a { color: var(--text); text-decoration: none; }
.ed-title a:hover { color: var(--accent); }

.ed-dateline {
  margin: 0.75rem 0 1.1rem;
  padding: 0.3rem 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.ed-dateline a { color: inherit; text-decoration: none; }
.ed-dateline a:hover { color: var(--text); }

.ed-cover img {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

/* As a page */

.ed-article { padding: 2.75rem clamp(1.1rem, 9%, 5rem) 2.5rem; }

.ed-head {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 4px double var(--line);
  text-align: center;
}
.ed-head h1 { margin: 0; font-size: 3.25rem; font-weight: 500; line-height: 1.08; }
.ed-head .ed-dateline { margin: 1.1rem 0 0; }

.ed-article .prose { font: 1.25rem/1.8 var(--serif); }
.ed-article .prose > p { margin-bottom: 1.15em; }
.ed-article .prose blockquote { font-style: italic; }
.ed-article .prose img,
.ed-article .prose video,
.ed-article .callout { border-radius: 0; }

.ed-article .post-tags {
  margin-top: 1.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 40rem) {
  .post[data-theme="blog"] { padding: 1.15rem 1.1rem; }
  .ed-title { font-size: 1.75rem; }
  .ed-article { padding-block: 1.5rem; }
  .ed-head h1 { font-size: 2.25rem; }
  .ed-article .prose { font-size: 1.125rem; line-height: 1.75; }
}
