/* Blog, About and Privacy pages, plus the links added to the home page. Builds on site.css. */

.page-head { padding: 22px 0 8px; }
.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.mini-brand {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink-soft);
  text-decoration: none;
}
.mini-brand b { font-size: 32px; color: var(--ink); }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
.site-nav a:hover { color: var(--ink); }
.masthead .site-nav { margin-top: 12px; }

/* ---------- long-form text ---------- */
.prose { max-width: 720px; padding-top: 20px; }
.prose-wide { max-width: none; }
.prose h1 {
  margin: 0 0 8px;
  font-family: var(--font-hand);
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.1;
}
.prose h2 {
  margin: 36px 0 8px;
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.15;
}
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a:not(.button) { text-underline-offset: 3px; }
.intro { font-size: 19px; color: var(--ink-soft); }
.crumbs, .post-meta { color: var(--ink-faint); font-size: 15px; }
.crumbs { margin-bottom: 6px !important; }

.post-cover {
  margin: 20px 0 14px;
  border: 2.5px solid var(--line);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  box-shadow: 5px 6px 0 var(--shadow);
  overflow: hidden;
  background: var(--accent, var(--pencil));
}
.post-cover img { display: block; width: 100%; height: auto; }

.post-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px !important; }
.button {
  display: inline-block;
  padding: 3px 18px 1px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 23px;
  color: #1d1b19;
  text-decoration: none;
  background: var(--accent, var(--pencil));
  border: 2px solid var(--line);
  border-radius: 10px 14px 9px 12px;
  box-shadow: 3px 3px 0 var(--shadow);
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }

.prose .tags { padding: 0; margin: 14px 0 22px; }
.prose .tags li { margin: 0; }

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 12px 0 18px;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--paper-2);
}
.prose th, .prose td {
  padding: 7px 12px;
  text-align: left;
  vertical-align: top;
  border: 1.5px solid var(--ink-faint);
}
.prose th { font-weight: 700; }

.log { list-style: none; padding-left: 0 !important; }
.log time { display: block; font-size: 14px; color: var(--ink-faint); }

/* ---------- blog index ---------- */
.post-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.post-card {
  background: var(--paper-2);
  border: 2.5px solid var(--line);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  box-shadow: 5px 6px 0 var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 var(--shadow); }
.post-card a { display: block; height: 100%; text-decoration: none; }
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 2.5px solid var(--line);
  background: var(--accent, var(--pencil));
}
.post-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.post-card-body time { font-size: 14px; color: var(--ink-faint); }
.post-card-body strong { font-family: var(--font-hand); font-size: 25px; line-height: 1.15; }
.post-card-body span { font-size: 16px; color: var(--ink-soft); }

/* ---------- home page additions ---------- */
.card:has(.card-post) { display: flex; flex-direction: column; }
.card:has(.card-post) .card-link { flex: 1; height: auto; }
.card-post {
  padding: 0 18px 14px;
  font-size: 15px;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
.card-post:hover { color: var(--ink); }

.home-about { margin-top: 44px; }
.home-about h2 { margin: 0 0 6px; font-family: var(--font-hand); font-size: 30px; }
.home-about p { max-width: 42em; margin: 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover, .button:hover { transition: none; transform: none; }
}
