/* Match the homepage paper color, with a quiet surface for long reading. */
html:has(.article-main) {
  --muted: #575950;
  --accent: #38553e;
  --line: #deddd5;
  background: #fcfaf6 url('/images/hero-noise.png') repeat;
  background-size: 100px 100px;
}
.article-main { max-width: 760px; margin: 0 auto; padding: 68px 0 80px; }
.article-header { margin-bottom: 42px; }
.article-header .eyebrow { display: inline-block; margin-bottom: 25px; }
.article-header h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -1.2px; text-wrap: balance; }
.article-deck { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 24px 0; }
.article-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.article-body { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.8; }
.article-body p { margin: 0 0 25px; }
.article-body .article-lead { font-size: 23px; line-height: 1.6; }
.article-body h2 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 26px; line-height: 1.3; letter-spacing: -.7px; margin: 48px 0 20px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-body blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 28px 0; color: #50544e; font-style: italic; }
.article-body p code { font-size: .8em; background: #f5f5f2; padding: 2px 5px; }
.deck-figure { margin: 32px 0; container-type: inline-size; }
.deck-figure iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 1px solid var(--line); background: #fafaf8; }
.deck-figure figcaption { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.code-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; }
.code-toolbar > span:first-child { flex: 1; min-width: 180px; }
.code-toolbar button { font: inherit; padding: 6px 12px; background: white; border: 1px solid #cccfc7; border-radius: 4px; color: var(--ink); cursor: pointer; }
.code-toolbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skill-code { margin: 0; padding: 24px; border: 1px solid var(--line); background: #f8f8f5; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 2; }
.post-preview { padding: 28px 0 10px; }
.post-preview h3 { font-size: 28px; margin: 12px 0; }
.post-preview p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 15px; }
.post-preview .post-meta { font-size: 11px; }
@media(max-width: 760px) { .article-main { padding-top: 44px; } .article-body { font-size: 18px; } .article-body .article-lead { font-size: 21px; } .article-body h2 { font-size: 24px; } .article-deck { font-size: 17px; } .skill-code { padding: 16px; font-size: 11px; } .deck-figure iframe { aspect-ratio: 16/9; } }

@media(max-width:600px),(hover:none){.deck-figure iframe{aspect-ratio:auto;height:calc(100cqw * .5625 + 52px);border:0;outline:1px solid var(--line);}.deck-figure figcaption a{display:inline-flex;align-items:center;min-height:44px;}}
@container (max-width:600px){.deck-figure iframe{aspect-ratio:auto;height:calc(100cqw * .5625 + 52px);border:0;outline:1px solid var(--line);}}

.skill-code:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.print-figure { margin: 32px 0; }
.print-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.print-figure figcaption { margin-top: 12px; font: 12px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--muted); }

.article-cover { margin: 0 0 40px; }
.article-cover img { display: block; width: 100%; height: auto; }
.article-feedback { margin: 56px 0 0; padding: 28px 24px 16px; border: 1px solid var(--line); text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.article-feedback p { margin: 0 0 12px; }
.like-button { min-width: 112px; padding: 11px 18px; border: 1px solid currentColor; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.like-button:hover:not(:disabled) { background: #f8f8f5; }
.like-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.like-button:disabled { cursor: default; opacity: .72; }
.like-status { min-height: 1.5em; color: var(--muted); font-size: 13px; }
.post-preview { display: flow-root; }
.post-thumbnail { float: right; width: 180px; margin: 14px 0 20px 24px; }
.post-thumbnail img { display: block; width: 100%; height: auto; }
@media(max-width:600px) { .post-thumbnail { width: 110px; margin-left: 16px; } }
