/* The blog, on top of legal.css. That file already carries the palette, the
   faces, the nav and the footer; this only adds what a post needs that a
   terms page does not. */

/* ---- the index ---- */
.post-list { list-style: none; margin: 34px 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list a {
  display: grid; gap: 5px; padding: 24px 0;
  text-decoration: none; color: inherit;
}
.post-list a:hover .pl-title { color: var(--slate); }
.pl-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}
.pl-title {
  font-family: var(--display); font-weight: 600; font-size: 1.42rem;
  line-height: 1.18; letter-spacing: -.018em; color: var(--ink);
  text-wrap: balance;
}
.pl-blurb { color: var(--ink-2); font-size: 1rem; max-width: 56ch; }
.pl-date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---- a post ---- */
.post { margin: 34px 0 0; }
.post p { font-size: 1.06rem; line-height: 1.68; margin: 0 0 17px; }
.post p strong { color: var(--ink); }
.post h2.head { margin-top: 38px; }

/* A phone screen on a page. Capped well under its natural size: these are
   taken at twice the pixel density, so the whole thing would otherwise land
   at 780px wide and tower over the paragraph it belongs to. */
.post figure {
  margin: 30px 0; display: flex; flex-direction: column; align-items: center;
}
.post figure img {
  display: block; width: 100%; max-width: 300px; height: auto;
  border-radius: 20px; border: 1px solid var(--rule);
  box-shadow: 0 2px 4px rgba(27, 42, 51, .05), 0 22px 44px -24px rgba(27, 42, 51, .3);
  background: var(--card);
}
.post figcaption {
  margin-top: 13px; font-size: 13.5px; color: var(--ink-3);
  text-align: center; max-width: 46ch; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .post figure img {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 44px -24px rgba(0, 0, 0, .85);
  }
}
:root[data-theme="dark"] .post figure img {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 44px -24px rgba(0, 0, 0, .85);
}

/* ---- the end of a post ---- */
.post-end {
  margin: 46px 0 0; padding: 26px;
  background: var(--card); border: 1px solid var(--rule);
  border-left: 3px solid var(--slate); border-radius: 4px;
}
.post-end p { margin: 0 0 14px; }
.post-end p:last-child { margin: 0; }
.cta {
  display: inline-block; text-decoration: none;
  background: var(--slate); color: var(--paper);
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
}
.cta:hover { background: var(--ink); color: var(--paper); }

/* ---- what to read next ---- */
.more-posts { margin: 46px 0 0; border-top: 1px solid var(--rule); padding-top: 24px; }
.more-posts h2 {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 14px;
}
.more-posts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.more-posts li { display: grid; gap: 3px; }
.more-posts a { font-weight: 700; text-decoration: none; color: var(--ink); }
.more-posts a:hover { color: var(--slate); }
.more-posts span { color: var(--ink-3); font-size: 14px; }

main.wrap { padding-bottom: 70px; }

@media (max-width: 620px) {
  .post figure img { max-width: 250px; }
  .pl-title { font-size: 1.26rem; }
}
