/* ollieseo.com/blog: the list and the article page, on top of home.css. The
   article body is the content API's body_html (.blog-prose, .blog-sources).
   Every cover sits in the same 16:10 plate; an article without a cover gets
   its title set in that frame, so the grid never goes ragged. */

/* The list */
.blog {
  padding-top: 96px;
  padding-bottom: 32px;
}
.plate {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(28, 28, 27, 0.06);
  pointer-events: none;
}
.lp .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate-type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 28px;
}
.lp .plate-type .logo {
  width: auto;
  height: 18px;
  object-fit: contain;
  object-position: left center;
}
.plate-type b {
  max-width: 15ch;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
.feature-post .plate-type b {
  font-size: 40px;
}
.post-text {
  display: grid;
  gap: 10px;
  align-content: start;
}
.entry-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feature-post .post-text {
  gap: 16px;
}
.feature-post .entry-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.feature-post .body {
  max-width: 44ch;
}
.grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 112px;
}
.blog .grid-head {
  padding-top: 96px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.blog .feature-post + .grid,
.blog h1 + .grid {
  margin-top: 64px;
}
.tile {
  display: grid;
  gap: 18px;
  align-content: start;
}
.lp .tile:hover .entry-title,
.lp .feature-post:hover .entry-title {
  color: var(--accent);
}
.pager {
  display: flex;
  justify-content: space-between;
  padding-top: 56px;
}
.lp .pager a:hover {
  color: var(--accent);
}

/* The article: centred head, wide plate, narrow reading column */
.post-head {
  display: grid;
  gap: 20px;
  justify-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 96px;
  text-align: center;
}
.post-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.post-head .lead {
  max-width: 50ch;
}
.lp .post-meta a {
  color: var(--slate);
}
.lp .post-meta a:hover {
  color: var(--ink);
}
.post-cover {
  max-width: 1000px;
  margin: 56px auto 0;
  border-radius: 24px;
}
.post {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.blog-prose {
  margin-top: 64px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.blog-prose > :first-child {
  margin-top: 0;
}
.blog-prose h2 {
  margin: 56px 0 16px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.blog-prose h3 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.blog-prose p,
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 20px;
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 24px;
}
.blog-prose li + li {
  margin-top: 8px;
}
.blog-prose strong {
  font-weight: 500;
}
.lp .blog-prose a {
  color: var(--accent);
}
.blog-prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ink);
}
.blog-prose blockquote p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.blog-prose cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--slate);
}
.blog-prose pre {
  margin: 0 0 24px;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.6;
}
.blog-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.blog-table-scroll {
  margin: 32px 0;
  overflow-x: auto;
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.blog-prose caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--slate);
}
.blog-prose th,
.blog-prose td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.blog-prose thead th {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}
.blog-prose tbody th {
  font-weight: 500;
}
.blog-figure {
  margin: 40px 0;
}
.lp .blog-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--card);
}
.blog-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--slate);
}
.blog-citation-ref {
  font-size: 0.7em;
  line-height: 0;
}
.lp .blog-citation-ref a {
  color: var(--slate);
}

.blog-sources {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.blog-sources h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}
.blog-sources ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.blog-sources a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
}
.blog-source-number {
  color: var(--soft);
}
.blog-source-text {
  display: grid;
  gap: 2px;
}
.blog-source-site {
  font-size: 13px;
  color: var(--slate);
}
.blog-sources svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--soft);
}
.lp .blog-sources a:hover .blog-source-title {
  color: var(--accent);
}


/* Closing card, light: copy left, the app running off the right edge */
.end-wrap {
  padding-top: 112px;
}
.end-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 32px;
  padding-left: 64px;
  border-radius: 40px;
  background: var(--card);
  overflow: hidden;
}
.end-copy {
  display: grid;
  gap: 28px;
  justify-items: start;
  align-self: center;
  padding-block: 64px;
}
.end-note {
  margin: -12px 0 0;
}
.end-card .shot {
  width: 124%;
  margin-top: 64px;
  border-radius: 14px 0 0 0;
}

@container lp (max-width: 980px) {
  .feature-post {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .end-card {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 40px;
  }
  .end-copy {
    padding-bottom: 0;
  }
}
@container lp (max-width: 620px) {
  .blog,
  .post-head {
    padding-top: 48px;
  }
  .feature-post,
  .blog .feature-post + .grid,
  .blog h1 + .grid {
    margin-top: 40px;
  }
  .feature-post .entry-title {
    font-size: 28px;
  }
  .feature-post .plate-type b {
    font-size: 26px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .grid-head,
  .blog .grid-head,
  .end-wrap {
    padding-top: 80px;
  }
  .post-cover {
    margin-top: 40px;
    border-radius: 20px;
  }
  .blog-prose {
    margin-top: 40px;
    font-size: 16px;
  }
  .blog-prose h2 {
    margin-top: 44px;
    font-size: 24px;
  }
  .end-card {
    padding-left: 28px;
    border-radius: 28px;
  }
  .end-copy {
    padding: 40px 28px 0 0;
  }
  .end-card .shot {
    margin-top: 40px;
  }
}
