/* Site chrome for standalone article pages (/articles/*.html).
   The popup reader skips this file: its <link> carries data-page-only. */
html body.wu-page {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #f8f7fb;
    color: #211d2b;
    font: 400 17px/1.75 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.wu-page .wu-header, .wu-page .wu-header *, .wu-page .wu-next, .wu-page .wu-next *, .wu-page .wu-related, .wu-page .wu-related *, .wu-page .wu-footer, .wu-page .wu-footer * { box-sizing: border-box; }

.wu-page .wu-header {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0;
    padding: 0;
    background: rgba(248, 247, 251, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e1ec;
    color: #211d2b;
    text-align: left;
}
.wu-page .wu-inner { display: flex; align-items: center; gap: 28px; max-width: 1120px; margin: 0 auto; padding: 12px 20px; }
.wu-page .wu-brand { display: inline-flex; align-items: center; gap: 10px; color: #211d2b; font: 800 20px/1 'Manrope', 'Inter', sans-serif; letter-spacing: -.02em; text-decoration: none; }
.wu-page .wu-brand img { display: block; width: 34px; height: 34px; margin: 0; border-radius: 0; }
.wu-page .wu-dot { color: #ef805a; }
.wu-page .wu-nav { display: flex; gap: 24px; margin: 0 0 0 auto; padding: 0; }
.wu-page .wu-nav a { color: #211d2b; font-size: 15px; font-weight: 500; text-decoration: none; }
.wu-page .wu-nav a:hover { color: #6338db; }
.wu-page .wu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #6338db;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.wu-page .wu-button:hover { background: #4c24b8; }

.wu-page .wu-article { max-width: 800px; margin: 0 auto; padding: 48px 20px 16px; color: #211d2b; overflow-wrap: anywhere; }
/* Some posts put a <time> in <head>; the parser moves it to the top of <body>. */
body.wu-page > time { display: none; }

/* Baseline typography for posts without their own styles. :where() keeps it
   below any rule a post defines for itself. */
:where(.wu-article) :where(h1) { margin: 0 0 1rem; font: 800 clamp(2rem, 5vw, 2.75rem)/1.15 'Manrope', 'Inter', sans-serif; letter-spacing: -.025em; }
:where(.wu-article) :where(h2) { margin: 2.5rem 0 .75rem; font: 750 1.5rem/1.3 'Manrope', 'Inter', sans-serif; letter-spacing: -.015em; }
:where(.wu-article) :where(h3) { margin: 2rem 0 .5rem; font: 700 1.2rem/1.35 'Manrope', 'Inter', sans-serif; }
:where(.wu-article) :where(h4) { margin: 1.5rem 0 .5rem; }
:where(.wu-article) :where(p, ul, ol) { margin: 0 0 1.15rem; }
:where(.wu-article) :where(ul, ol) { padding-left: 1.5rem; }
:where(.wu-article) :where(li) { margin-bottom: .4rem; }
:where(.wu-article) :where(a) { color: #6338db; text-decoration: underline; text-underline-offset: 3px; }
:where(.wu-article) :where(img) { max-width: 100%; height: auto; border-radius: 10px; }
:where(.wu-article) :where(figure) { margin: 1.5rem 0; }
:where(.wu-article) :where(hr) { margin: 2rem 0; border: 0; border-top: 1px solid #e5e1ec; }
:where(.wu-article) :where(blockquote) { margin: 1.5rem 0; padding: 10px 18px; border-left: 3px solid #ef805a; background: #ef805a0d; border-radius: 0 8px 8px 0; color: #696471; font-style: italic; }
:where(.wu-article) :where(pre) { max-width: 100%; margin: 1.25rem 0; padding: 1.1rem; overflow-x: auto; background: #1a1a2e; color: #e0e0e0; border-radius: 10px; font: .875rem/1.6 'JetBrains Mono', 'Fira Code', monospace; tab-size: 4; }
:where(.wu-article) :where(code) { padding: 2px 5px; background: #6338db0d; color: #4c24b8; border-radius: 4px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .85em; }
:where(.wu-article) :where(pre code) { padding: 0; background: none; color: inherit; font: inherit; }
:where(.wu-article) :where(table) { display: block; width: 100%; max-width: 100%; margin: 1.25rem 0; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
:where(.wu-article) :where(th, td) { padding: 8px 12px; border-bottom: 1px solid #e5e1ec; text-align: left; }
:where(.wu-article) :where(.article-meta) { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 1rem; font-size: .9rem; opacity: .8; }
:where(.wu-article) :where(.tags) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
:where(.wu-article) :where(.tag) { padding: 3px 10px; background: #6338db14; border-radius: 999px; color: #4c24b8; font-size: .78rem; font-weight: 600; }
:where(.wu-article) :where(.subtitle, .lead) { font-size: 1.15rem; opacity: .8; }

.wu-page .wu-related { max-width: 760px; margin: 40px auto 0; padding: 0 20px; }
.wu-page .wu-related .wu-eyebrow { margin: 0 0 12px; color: #696471; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.wu-page .wu-related ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e1ec; }
.wu-page .wu-related li { margin: 0; border-bottom: 1px solid #e5e1ec; }
.wu-page .wu-related a { display: block; padding: 14px 0; color: #211d2b; font: 700 1.05rem/1.4 'Manrope', 'Inter', sans-serif; text-decoration: none; }
.wu-page .wu-related a:hover { color: #6338db; }

.wu-page .wu-next {
    max-width: 760px;
    margin: 32px auto 64px;
    padding: 36px 32px;
    background: #211d2b;
    border-radius: 20px;
    color: #f8f7fb;
    text-align: left;
}
.wu-page .wu-next .wu-eyebrow { margin: 0 0 10px; color: #c3aaff; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.wu-page .wu-next h2 { margin: 0 0 8px; color: #fff; font: 800 clamp(1.5rem, 4vw, 2rem)/1.2 'Manrope', 'Inter', sans-serif; letter-spacing: -.02em; }
.wu-page .wu-next p { margin: 0 0 22px; color: #d9d4e3; }
.wu-page .wu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.wu-page .wu-actions .wu-more { color: #fff; font-weight: 600; text-decoration: none; }
.wu-page .wu-actions .wu-more:hover { text-decoration: underline; }

.wu-page .wu-footer { margin: 0; padding: 0; border-top: 1px solid #e5e1ec; color: #696471; font-size: 14px; line-height: 1.6; text-align: left; }
.wu-page .wu-footer .wu-inner { flex-wrap: wrap; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.wu-page .wu-footer p { margin: 0; }
.wu-page .wu-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wu-page .wu-footer a { color: #696471; text-decoration: none; }
.wu-page .wu-footer a:hover { color: #6338db; }

.wu-page :focus-visible { outline: 3px solid #6338db; outline-offset: 3px; }

@media (max-width: 720px) {
    html body.wu-page { font-size: 16px; }
    .wu-page .wu-nav { display: none; }
    .wu-page .wu-header .wu-button { margin-left: auto; padding: 9px 14px; font-size: 13px; }
    .wu-page .wu-article { padding-top: 32px; }
    .wu-page .wu-next { margin: 24px 12px 48px; padding: 28px 22px; }
}
@media print {
    .wu-page .wu-header, .wu-page .wu-related, .wu-page .wu-next, .wu-page .wu-footer { display: none; }
}
