/*
 * The blog (glad.abloh.dev/blog), laid out as before in the landing page's theme: its dark grey, Alliance, cream text
 * and its outlined button (home.css's .cta-link).
 * Loaded after home.css and docs.css; the tokens below are what docs.css's terminal, notes and tables read.
 */
html, body { background: #0A0A0A; }
.blog {
  --cream: #F4F1E8; --ink: #F4F1E8; --ground: #0A0A0A; --body: rgb(244 241 232 / 0.85); --muted: rgb(244 241 232 / 0.6);
  --hairline: rgb(244 241 232 / 0.15); --rule: rgb(244 241 232 / 0.3);
  --serif: "Alliance No.1", ui-sans-serif, system-ui, sans-serif; --mono: "Alliance No.1", ui-sans-serif, system-ui, sans-serif;
  box-sizing: border-box; max-width: calc(1240px + 64px); margin: 0 auto; padding: 160px 32px 128px; color: var(--cream);
  zoom: 0.85; /* the whole blog drawn 15% smaller, every size in proportion; the bar above is outside it */
}
.blog *, .blog *::before, .blog *::after { box-sizing: border-box; }
.blog :is(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
.blog-meta { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
.blog-meta > span { white-space: nowrap; }
.blog-meta > span + span::before { content: '·'; margin: 0 0.6em; }
.blog-draft { margin-right: 0.6em; padding: 1px 6px; border: 1px solid rgb(244 241 232 / 0.4); text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }
.blog-draft + span::before { content: none !important; }

/* The index: a small label and its heading, then one box per post, its square art beside the author, date, read time, title and summary. */
.blog .blog-label { font-family: "Alliance No.1", ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); }
/* The heading sits on one line on a desk and wraps narrower, as before. */
.blog .blog-heading { margin-top: 1rem; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-weight: 500; font-size: clamp(2.125rem, 3.2vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: pretty; }
@media (min-width: 1024px) { .blog .blog-heading { white-space: nowrap; } }
.blog .blog-list { list-style: none; padding: 0; margin-top: 5rem; display: grid; gap: 2rem; }
.blog-item { border: 1px solid var(--rule); background: #0A0A0A; transition: border-color 0.15s; }
/* The whole box is the link, so the whole box answers the pointer: its edge lights up with the read button. */
.blog-item:has(a:hover), .blog-item:has(a:focus-visible) { border-color: rgb(244 241 232 / 0.6); }
.blog-item a { display: block; color: inherit; text-decoration: none; }
.blog-card { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding: 1.5rem; }
.blog-card.no-art { grid-template-columns: minmax(0, 1fr); }
.blog-card img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); }
/* A card's frames (build.mjs): six squares stacked in one image, shown one at a time, six a second; only the planets and the flash change between frames, the stars and the spray drawn alike in all six; still under reduced motion. */
.blog-card .blog-card-frames { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; animation: blog-frames 1s steps(6) infinite; }
@keyframes blog-frames { to { object-position: 50% 120%; } }
@media (prefers-reduced-motion: reduce) { .blog-card .blog-card-frames { animation: none; } }
.blog-card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.blog-card h2 { font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: pretty; }
.blog-card p:not(.blog-meta) { font-size: 1.125rem; line-height: 1.6; color: rgb(244 241 232 / 0.75); }
.blog .blog-read-link { align-self: flex-start; margin-top: 0.5rem; padding: 0.7rem 1.2rem; font-size: 1.125rem; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; }
.blog-item a:hover .blog-read-link, .blog-item a:focus-visible .blog-read-link { background: var(--cream); color: #0A0A0A; }
.blog-item a:hover .cta-arrow, .blog-item a:focus-visible .cta-arrow { translate: 4px 0; }
.blog-item a:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }

/* A post: back to the blog, its meta, title and lede, the art a little wider than the text with the caption under it, then the reading column. */
.blog-read { max-width: calc(1040px + 64px); }
.blog .blog-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.blog .blog-back:hover { color: var(--cream); }
.blog .post-title { margin-top: 1.75rem; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.05; letter-spacing: -0.04em; text-wrap: pretty; }
.blog .post-lede { margin-top: 2rem; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; color: rgb(244 241 232 / 0.8); text-wrap: pretty; }
.blog .post-art { margin: 4.5rem 0 4.5rem; }
.post-art img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); }
.post-art figcaption { margin-top: 1.25rem; text-align: center; font-size: 14px; letter-spacing: 0.04em; color: rgb(244 241 232 / 0.7); }
@media (min-width: 1360px) { .blog .post-art { width: calc(100% + 200px); margin-left: -100px; }
  /* The title runs on to the art's right edge, so it wraps less. */
  .blog .post-title { margin-right: -100px; font-size: 4.5rem; text-wrap: balance; } } /* 4.5rem: two even lines, with no word left alone */

.post-body p, .post-body li { font-size: 1.1875rem; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.post-body p { margin: 0 0 1.6rem; }
.post-body ul, .post-body ol:not(.b-refs ol) { margin: 0 0 1.6rem; padding-left: 1.25rem; }
.post-body a { color: var(--cream); text-underline-offset: 3px; }
.post-body b { font-weight: 500; color: var(--cream); }
.post-body code { font-size: 0.92em; background: rgb(244 241 232 / 0.08); padding: 1px 5px; color: var(--cream); white-space: nowrap; }
.post-body h2 { display: flex; gap: 0.9rem; align-items: baseline; margin: 5.5rem 0 1.75rem; padding-top: 2rem; border-top: 1px solid var(--rule); font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; scroll-margin-top: 96px; }
.post-body h2 .n { font-family: "Alliance No.1", ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0.12em; color: rgb(244 241 232 / 0.55); }
.post-body sup { font-size: 0.65em; line-height: 0; }
.post-body sup a { text-decoration: none; padding: 0 1px; }
.post-body .term { margin: 1rem 0 2.25rem; }
.blog .term { --muted: #A7B8AC; --hairline: rgb(244 241 232 / 0.14); --rule: rgb(244 241 232 / 0.24);
  zoom: 1.17647; max-width: 680px; } /* the docs' own terminal, colour for colour and size for size: undoes the blog's 0.85 zoom, and as wide as the docs' column */
.post-body .note { margin: 0 0 1.5rem; border-left-color: var(--cream); }

/* A results table: the readout's labelled lines, fitting the column at every width. */
.post-body .harness { display: table; width: 100%; margin: 1.5rem 0 2rem; border-collapse: collapse; table-layout: auto; }
.post-body .harness th { padding: 0 12px 10px 0; text-align: left; font-family: "Alliance No.1", ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(244 241 232 / 0.55); white-space: normal; vertical-align: bottom; }
.post-body .harness td { padding: 0.9rem 12px 0.9rem 0; border-top: 1px solid var(--hairline); font-size: 1.05rem; line-height: 1.35; color: var(--body); white-space: normal; vertical-align: top; }
.post-body .harness td:not(:first-child) { font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-body .harness td b { font-weight: 500; }
.post-body .harness th:first-child, .post-body .harness td:first-child { width: 40%; }

/* The sign-up box a post ends on: dark, the post's art behind it on the right, the line and the button on the left. */
.post-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; margin: 6rem 0 1rem; padding: 4.5rem 2rem 2.5rem; border: 1px solid var(--rule);
  background: linear-gradient(90deg, #0A0A0A 44%, rgb(10 10 10 / 0) 82%), #0A0A0A var(--art, none) calc(100% + 300px) 50% / auto 230% no-repeat; }
.post-body .post-cta-line { margin: 0; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; color: var(--cream); }
.post-cta .cta-link { align-self: flex-start; font-size: 1.25rem; font-family: "Alliance No.2", ui-sans-serif, system-ui, sans-serif; }

/* The references: small, after everything. */
.b-refs { margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.b-refs .s-label { font-family: "Alliance No.1", ui-sans-serif, system-ui, sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(244 241 232 / 0.55); }
.b-refs ol { margin: 0.9rem 0 0; padding-left: 1.25rem; }
.post-body .b-refs li { margin: 0 0 0.8rem; font-size: 15px; line-height: 1.55; color: rgb(244 241 232 / 0.7); }
.post-body .b-refs li:target { color: var(--cream); }


@media (max-width: 760px) {
  /* A phone reads the blog at full size: the desk's 0.85 zoom would take the text under 16px. */
  .blog { padding: 96px 20px 80px; zoom: 1; }
  .blog .term { zoom: 1; }
  .blog-meta { font-size: 13px; }
  .blog .blog-heading { font-size: 2rem; }
  .blog .blog-list { margin-top: 3rem; }
  .blog .blog-read-link { min-height: 44px; }
  .blog .blog-back { margin-bottom: 0.75rem; }
  .blog .post-title { font-size: 2.375rem; }
  .post-art figcaption { font-size: 13px; }
  .post-body h2 { margin-top: 3.75rem; font-size: 1.5rem; }
  .post-body .b-refs li { overflow-wrap: anywhere; }
  .blog .term-cap button:not(.l-show) { width: 44px; height: 44px; margin: -9px -14px -9px 0; }
  .blog-card { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 0.75rem 0.75rem 1.5rem; }
  .blog-card-text { gap: 1.25rem; }
  .blog-card img { max-width: 420px; }
  .blog .post-art { margin: 3rem 0 3rem; }
  .post-body p, .post-body li { font-size: 1.0625rem; }
  .post-body .harness td:not(:first-child) { font-size: 1.05rem; }
  .post-body .harness th, .post-body .harness td { padding-right: 10px; }
  .post-body .harness th { font-size: 11px; letter-spacing: 0.08em; }
  .post-cta { align-items: stretch; gap: 1.25rem; padding: 9.25rem 1.25rem 1.25rem; text-align: center;
    background: linear-gradient(0deg, #0A0A0A 34%, rgb(10 10 10 / 0) 60%), #0A0A0A var(--art, none) 50% -22px / 125% auto no-repeat; }
  .post-body .post-cta-line { font-size: 1.75rem; }
  .post-cta .cta-link { align-self: stretch; justify-content: center; }
}
/* The narrowest phone: the card's author, date and read time stay on one line inside the box. */
@media (max-width: 340px) { .blog-meta { font-size: 12px; letter-spacing: 0.02em; } }
