/* Blog: a centered reading column in the app's neutral chrome. The only color comes from
   the sites a post talks about (its palette strip and samples) plus the brand orange on
   small marks. Each post ends with the home page's crop-marked URL box. Builds on /print/print.css. */

.blog { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 72px; }
.blog-crumb { font-size: 14px; font-weight: 600; color: var(--brand-text); }
.blog-crumb a { color: inherit; }
.blog-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A post's palette: the colors of the sites it is about, as one strip. */
.palette { display: flex; height: 8px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.palette span { flex: 1; }

/* Index: one row per post, its palette as a tile on the left. */
.blog-index { width: min(860px, calc(100% - 48px)); }
.blog-index h1 { text-align: center; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.post-list { margin-top: 48px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 28px; padding: 24px 0; color: var(--text); }
.post-tile { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 84px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); transition: transform .2s; }
.post-list a:hover .post-tile { transform: scale(1.04); }
.post-list h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.post-list a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-list p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.post-list time { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Post head: centered over the column. */
.post-head { text-align: center; }
.post-head h1 { margin: 14px auto 0; max-width: 18ch; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.post-dek { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 20px; line-height: 1.5; text-wrap: balance; }
.post-meta { display: flex; justify-content: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.post-head .palette { width: 220px; margin: 28px auto 0; }

.post-body { margin-top: 48px; font-size: 18px; line-height: 1.68; }
.post-body > * + * { margin-top: 20px; }
.post-body h2 { margin-top: 60px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.post-body h3 { margin-top: 44px; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.post-body h2 + *, .post-body h3 + * { margin-top: 12px; }
.post-body a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-text) 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.post-body a:hover { text-decoration-color: var(--brand-text); }
.post-body strong { font-weight: 650; }
.post-body code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); font: .86em var(--mono); }
.post-body ul { padding-left: 1.3em; }
.post-body li + li { margin-top: 8px; }
.post-body li::marker { color: var(--brand-text); }
.post-body .instead b { color: var(--brand-text); font-weight: 650; }
.post-body .code-window { margin-top: 24px; }
.post-body .code-window pre { padding: 18px 20px; white-space: pre-wrap; line-height: 1.6; }

/* The short answer: a tinted note. */
.answer { padding: 22px 24px; border-radius: 12px; background: var(--brand-subtle); border: 1px solid color-mix(in srgb, var(--brand-strong) 22%, transparent); }
.answer p + p { margin-top: 10px; }

/* Steps: a real sequence, so they are numbered. */
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 48px; counter-increment: step; }
.steps li + li { margin-top: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand-text); font-size: 14px; font-weight: 650; }

/* Measured values: a spec table, as on a printer's proof sheet. */
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.spec-table th, .spec-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { padding-top: 0; color: var(--muted); font-size: 13px; font-weight: 550; }
.spec-table tbody th { font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--muted); }
.spec-table td:last-child { padding-right: 0; }
.spec-table .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 15%, transparent); }

/* Color chips: the only color on the page comes from the site being described. */
.tones { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.tones li { margin: 0 !important; }
.tone-fill { display: block; height: 72px; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.tone-name { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.tone-hex { display: block; color: var(--muted); font: 13px var(--mono); }

/* Drawn examples of each tell, drawn small, like a clipping pinned next to the text. */
.tell { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 22px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); font-family: Inter, -apple-system, sans-serif; line-height: 1.2; }
.s-grad-btn { padding: 10px 18px; border-radius: 10px; background: linear-gradient(90deg, #8B5CF6, #3B82F6); color: #fff; font-size: 15px; font-weight: 600; }
.s-grad-text { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.s-grad-text i { font-style: normal; background: linear-gradient(90deg, #8B5CF6, #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-inter { display: grid; gap: 6px; color: var(--text); text-align: left; }
.s-inter b { font-size: 22px; font-weight: 600; }
.s-inter span { font-size: 16px; }
.s-card { width: 112px; padding: 14px; border-radius: 12px; background: var(--bg); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); color: var(--text); font-size: 12px; text-align: left; }
.s-card b { display: block; margin-top: 8px; font-size: 13px; }
.s-card em { font-style: normal; font-size: 20px; }
.s-eyebrow { display: grid; gap: 6px; text-align: center; color: var(--text); }
.s-eyebrow small { color: #7C3AED; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.s-eyebrow b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.s-cream { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 4px; background: #F4F1EA; color: #1F1D1A; }
.s-cream b { font: 400 26px/1.1 Georgia, serif; letter-spacing: -.01em; }
.s-cream span { padding: 8px 14px; border-radius: 4px; background: #D97757; color: #fff; font-size: 13px; font-weight: 600; }
.s-copy { color: var(--muted); font-size: 17px; font-style: italic; }

/* Closing box: the home page's URL box with its crop marks. */
.post-try { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 24px; text-align: center; }
.post-try h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.post-try > p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.post-try .prompt-box { margin-top: 36px; max-width: none; }
.post-try .prompt-field input { font-size: 18px; }

@media (max-width: 720px) {
  .blog, .blog-index, .post-try { width: calc(100% - 32px); }
  .blog { padding-top: 40px; }
  .post-list a { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .post-tile { height: 72px; }
  .post-list h2 { font-size: 19px; }
  .post-body { font-size: 17px; }
  .post-dek { font-size: 18px; }
  .spec-table { font-size: 14px; }
  .spec-table tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .post-tile { transition: none; } }

/* Font posters: a little wider than the text column. */
.post-body .post-figure { margin: 28px -60px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface-2); }
.post-tile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .post-body .post-figure { margin-inline: 0; } }
.post-cover { margin: 40px -60px 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--surface-2); }
.post-cover + .post-body { margin-top: 40px; }
@media (max-width: 900px) { .post-cover { margin-inline: 0; } }
