/* -- The blog ------- */
/* Long-form reading, on the landing page's palette and typefaces. The measure is narrow on
   purpose: an article is read, not scanned, and a line of prose past about 70 characters is
   measurably harder to follow back to the start of the next one. */

/* Unbounded is the brand voice and it carries a landing page beautifully — in headings, in
   short lines, in things people glance at. An article is none of those: it is two thousand words
   read in sequence, and a display face makes that work. So headings keep Unbounded and the prose
   drops to the reader's own system face, which is already on their machine and costs no request. */
.blog-page {
  line-height: 1.75;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
}

/* The landing page sets `p { margin: 0 }` because every block there positions itself. An article
   is the opposite: paragraphs are the structure, and without space between them the text becomes
   one grey slab. */
.blog-page article p,
.blog-page .blog-lead,
.blog-page blockquote p,
.blog-page .blog-cta p {
  margin-block: 0 18px;
}

.blog-page article p:last-child {
  margin-bottom: 0;
}

.blog-shell {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

/* -- Chrome ------- */

.blog-top {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.blog-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 16px;
}

.blog-home {
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.blog-languages {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.blog-languages a {
  color: var(--muted);
  text-decoration: none;
}

.blog-languages a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-block: 28px;
  background: var(--paper);
}

.blog-foot .blog-shell {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.blog-foot a {
  color: var(--muted);
}

/* -- The article ------- */

.blog-page main {
  padding-top: 8px;
}

.blog-kicker {
  margin: 28px 0 0;
  font-size: 0.9rem;
}

.blog-kicker a {
  color: var(--forest);
}

.blog-page h1 {
  font-family: var(--brand-font);
  font-size: clamp(1.75rem, 5.2vw, 2.6rem);
  line-height: 1.2;
  margin: 12px 0 14px;
}

.blog-page h2 {
  font-family: var(--brand-font);
  font-size: clamp(1.3rem, 3.4vw, 1.65rem);
  line-height: 1.3;
  margin: 44px 0 12px;
}

.blog-page h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 30px 0 8px;
}

.blog-meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.blog-lead {
  font-size: 1.1rem;
  color: #2a4a3b;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.blog-page article p,
.blog-page article li {
  overflow-wrap: break-word;
}

.blog-page article ul,
.blog-page article ol {
  padding-left: 22px;
}

.blog-page article li {
  margin-block: 6px;
}

.blog-page article a {
  color: var(--forest);
  text-underline-offset: 3px;
}

.blog-page code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

.blog-page blockquote {
  margin: 26px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--mint);
  color: #2a4a3b;
}

.blog-page hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* A table of tense markers is wider than the measure on a phone, so it scrolls rather than
   squeezing the words into one letter per line. */
.blog-table {
  overflow-x: auto;
  margin: 24px 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}

.blog-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.96rem;
}

.blog-table th,
.blog-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.blog-table th {
  font-family: var(--brand-font);
  font-weight: 600;
  background: var(--ivory);
}

.blog-table tr:last-child td {
  border-bottom: 0;
}

/* -- The way out ------- */
/* Every article ends where the site wants the reader to go. It is the same offer the landing
   page makes, in the language the article is written in. */

.blog-cta {
  margin: 52px 0 0;
  padding: 30px 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--mint);
  box-shadow: 5px 6px 0 rgb(22 55 43 / 35%);
}

.blog-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
}

.blog-cta p {
  margin: 0 0 18px;
}

.blog-cta-button {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
}

/* -- The index ------- */

.blog-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 18px;
}

.blog-card a {
  display: block;
  padding: 24px 26px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 5px 0 rgb(22 55 43 / 22%);
}

.blog-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.blog-card p {
  margin: 0;
}

.blog-card .blog-meta {
  margin: 12px 0 0;
}

.blog-languages-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
}

.blog-languages-list a {
  display: block;
  padding: 18px 22px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
}
