/* Blog pages, plus the "From the blog" strip and "More apps" cards on the home pages. Loads after home.css. */
:root {
    --read: oklch(0.89 0.018 45);          /* long-form body text: warmer and brighter than --muted */
    --ember-wash: oklch(0.68 0.19 42 / .1);
    --ember-edge: oklch(0.68 0.19 42 / .38);
    --peach-wash: oklch(0.88 0.07 60 / .06);
    --peach-edge: oklch(0.88 0.07 60 / .18);
    --measure: 680px;
    --wide: 1080px;
    --gutter: clamp(20px, 5vw, 64px);
}

/* reading pages: one glow at the top and one at the foot, calm in between */
.blog .page {
    background:
        radial-gradient(70% 900px at 15% 0, rgba(234, 88, 12, .34), transparent 70%),
        radial-gradient(60% 900px at 100% 100%, rgba(234, 88, 12, .26), transparent 70%),
        var(--bg);
}
.blog main { position: relative; z-index: 1; }

/* nav: Blog link and a small language picker */
.nav nav { align-items: center; }
.nav nav a[aria-current] { color: var(--peach); }
.lang-pick { position: relative; }
.lang-pick summary {
    list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick[open] summary, .lang-pick summary:hover { border-color: var(--ember-edge); }
.lang-pick ul {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
    width: max-content; min-width: 168px; max-width: calc(100vw - 24px); max-height: min(70vh, 420px); overflow-y: auto;
    text-align: left; background: rgba(26, 16, 12, .96); border: 1px solid var(--peach-edge); border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lang-pick ul { background: rgba(26, 16, 12, .62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
.nav .lang-pick li a, .lang-pick li a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--text); font-size: 14px; line-height: 1.35; white-space: nowrap; }
.lang-pick li a:hover, .lang-pick li a:focus-visible { background: var(--ember-wash); text-decoration: none; }
.lang-pick li a[aria-current] { color: var(--peach); font-weight: 800; background: var(--peach-wash); }

/* back to top */
.to-top {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20;
    width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
    color: var(--text); background: rgba(26, 16, 12, .85); border: 1px solid var(--peach-edge); border-radius: 50%;
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .8);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, border-color .2s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .to-top { background: rgba(26, 16, 12, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { border-color: var(--ember-edge); color: var(--peach); }
@media (max-width: 640px) { .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; transform: none; } }

/* ---------- post ---------- */
.post { padding: clamp(36px, 6vw, 88px) var(--gutter) 0; }
.post-head, .answer, .cover, .post-body, .get { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); padding: 10px 0; }
.crumbs a:hover { color: var(--text); }
.crumbs span:last-child { padding: 10px 0; color: var(--peach); font-weight: 800; }
.post-head h1 {
    margin-top: 18px; max-width: 15ch; color: var(--text); font-weight: 800;
    font-size: clamp(42px, 3.4vw + 18px, 68px); line-height: .96; letter-spacing: -.05em; text-wrap: balance;
}
.post-head h1 em, .blog-head h1 em, .get h2 em { font-style: normal; color: var(--ember); }
html:not([lang="en"]) .post-head h1 { max-width: 18ch; hyphens: auto; overflow-wrap: break-word; }
html[lang="ja"] .post-head h1, html[lang="ko"] .post-head h1, html[lang="zh-Hans"] .post-head h1 { letter-spacing: -.02em; line-height: 1.08; max-width: 14em; }
.byline { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px 16px; margin-top: 34px; font-size: 15px; line-height: 1.4; }
.byline b { color: var(--text); font-weight: 800; }
.byline .meta { justify-self: start; padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 23%; box-shadow: 0 0 0 1px var(--line); }
.byline a { color: inherit; }
.byline a:hover b { color: var(--peach); }

/* about: the headline beside a lit Burn icon, the same glow the covers give it */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px clamp(32px, 6vw, 96px); }
.about-lede { margin-top: 28px; max-width: 30em; color: var(--read); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; }
.about-icon { width: clamp(120px, 15vw, 200px); height: auto; border-radius: 23%; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) rgba(251, 113, 56, .14), 0 40px 120px -10px rgba(251, 113, 56, .75); }
.about .post-body { margin-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 640px) {
    .about-head { grid-template-columns: minmax(0, 1fr); }
    .about-icon { grid-row: 1; width: 96px; margin-top: 8px; }
}

.answer {
    margin-top: 34px; padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px); border-radius: 24px;
    background: var(--ember-wash); border: 1px solid var(--ember-edge);
}
.answer p:not(.note-label) { max-width: 44em; color: var(--text); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; }
.note-label { color: var(--peach) !important; font-size: 13px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }

.cover { margin-top: clamp(28px, 4vw, 48px); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(18px, 2.4vw, 32px); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(0, 0, 0, .9); }

/* body: TOC rail on wide screens, one 680px column for reading */
.post-body { display: grid; grid-template-columns: minmax(0, var(--measure)); justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 1180px) {
    .post-body:has(.toc) { grid-template-columns: 230px minmax(0, var(--measure)); justify-content: space-between; column-gap: 64px; }
    .toc { position: sticky; top: 96px; align-self: start; }
}
.toc { margin-bottom: 36px; border-top: 2px solid var(--ember); padding-top: 14px; }
.toc summary { list-style: none; cursor: pointer; color: var(--text); font-weight: 800; font-size: 15px; padding: 6px 0; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--ember); font-size: 22px; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; counter-reset: t; margin-top: 8px; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 2.2em 1fr; font-size: 15px; line-height: 1.35; }
.toc li::before { content: counter(t, decimal-leading-zero); color: var(--ember); font-weight: 800; font-size: 13px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.toc a { display: block; padding: 8px 0; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }

.prose > * + * { margin-top: 20px; }
.prose p, .prose li { color: var(--read); font-size: 18px; line-height: 1.72; }
.prose a { color: var(--ember); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--peach); }
.prose strong { color: var(--text); font-weight: 800; }
.prose h2 { margin-top: clamp(56px, 7vw, 84px); color: var(--text); font-size: clamp(28px, .8vw + 24px, 36px); line-height: 1.12; letter-spacing: -.035em; scroll-margin-top: 90px; text-wrap: balance; }
.prose h3 { margin-top: 40px; color: var(--text); font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h2 + ol { margin-top: 14px; }
.prose ul { padding-left: 1.2em; list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li + li, .prose ol > li + li { margin-top: 10px; }
.prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--ember); transform: rotate(45deg); }
.disclosure { font-size: 15px !important; color: var(--muted) !important; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sources { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px !important; line-height: 1.6 !important; color: var(--muted) !important; }
.sources a { color: var(--muted); }

/* numbered steps: big ember numerals in a gutter */
.prose ol.steps { list-style: none; counter-reset: s; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); }
.steps > li + li { margin-top: 0 !important; }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 16px; color: var(--ember); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* inline app name with its real icon */
.app { display: inline-flex; align-items: center; gap: .4em; vertical-align: middle; white-space: nowrap; }
.app-ic { display: inline-block; flex: none; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.prose h3 .app-ic { width: 36px; height: 36px; }
.prose h3 .app { gap: 12px; }

/* "pick by" list: app on the left, reason on the right */
.prose ul.picks { padding: 0; border-top: 1px solid var(--line); }
.picks > li { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.picks > li::before { display: none; }
.picks .app span { color: var(--text); font-weight: 800; }
.picks > li > .app + .app { margin-left: -8px; }
.picks > li > span:last-child { line-height: 1.5; }
.picks > li:has(.app + .app) { grid-template-columns: auto auto 1fr; }
.picks > li:has(.app + .app) > span:last-child { grid-column: 3; }

/* callouts and verdicts: tinted panels, full hairline border */
.callout { padding: 22px 26px; border-radius: 22px; background: var(--peach-wash); border: 1px solid var(--peach-edge); }
.callout p + p { margin-top: 10px; }
.callout p:not(.note-label) { font-size: 17px; }
.verdict { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; background: var(--ember-wash); border: 1px solid var(--ember-edge); }
.verdict .app-ic { width: 44px; height: 44px; }
.verdict p:not(.note-label) { font-size: 17px; line-height: 1.6; color: var(--text); }
.verdict + .verdict { margin-top: 12px; }

/* figures: App Store frames, sized like a phone, captions set beside them */
.shot, .shots { margin: 40px 0 !important; }
.shot { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: end; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots figcaption { grid-column: 1 / -1; }
.shot-img img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -34px rgba(0, 0, 0, .9); background: #120A08; }
figcaption { color: var(--muted); font-size: 15px; line-height: 1.5; padding-top: 12px; border-top: 2px solid var(--ember); max-width: 30em; }
.shot figcaption { align-self: end; }
@media (min-width: 900px) { .shots { margin-left: -60px !important; margin-right: -60px !important; } }
.ui img { border-radius: 22px; }

/* comparison tables: a table on wide screens, one block per row on phones */
.cmp-wrap { margin: 28px 0 !important; border-radius: 22px; border: 1px solid var(--line); background: rgba(26, 16, 12, .9); overflow: hidden; }
@media (min-width: 900px) { .cmp-wrap:has(th:nth-child(5)) { margin-left: -120px !important; margin-right: -120px !important; } }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmp th { color: var(--peach); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 210, 168, .04); }
.cmp td:first-child { color: var(--text); font-weight: 800; }
.cmp tr:last-child td { border-bottom: 0; }
@media (min-width: 701px) { .cmp td:nth-child(5) { white-space: nowrap; } }
.cmp .app-ic { width: 26px; height: 26px; }
@media (max-width: 700px) {
    .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; }
    .cmp tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .cmp tr:last-child { border-bottom: 0; }
    .cmp td { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 5px 0; border: 0; font-size: 15px; }
    .cmp td::before { content: attr(data-label); color: var(--peach); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
    .cmp td:first-child { display: block; padding-bottom: 8px; font-size: 18px; }
    .cmp td:first-child::before { display: none; }
    .cmp .app-ic { width: 32px; height: 32px; }
}

/* FAQ in posts: the home page accordion without the frosted glass */
.prose .faq { margin-top: 18px; gap: 10px; }
.prose .faq details { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(26, 16, 12, .9); }
.prose .faq h3 { margin: 0; font-size: 18px; }
.prose .faq p { font-size: 17px; }

/* the App Store block: the one place the page goes fully ember */
.get {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 32px;
    margin-top: clamp(64px, 8vw, 110px); padding: clamp(24px, 4vw, 44px); border-radius: 32px;
    background: var(--ember); color: var(--coal);
}
.get > img { width: 96px; height: 96px; border-radius: 23%; box-shadow: 0 18px 40px -14px rgba(60, 12, 0, .8); }
.get h2 { color: var(--coal); font-size: clamp(34px, 1.6vw + 20px, 46px); line-height: .95; letter-spacing: -.05em; }
.get h2 em { color: #FFF4EC !important; }
.get p { margin-top: 10px; color: #3A1405; font-size: 17px; font-weight: 700; }
.get .badge img { width: 150px; height: 50px; }
.get .badge:focus-visible { outline-color: var(--coal); }

/* related posts */
.related { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.related h2, .more-head h2, .from-head h2 { color: var(--text); font-size: clamp(30px, 1.2vw + 20px, 40px); letter-spacing: -.045em; line-height: 1; }
.related ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }

/* shared post card bits (index, related, home strip) */
.posts li, .related li, .from-blog li { position: relative; }
.posts a, .related a, .from-blog li a { display: block; color: var(--text); }
.posts a:hover, .related a:hover, .from-blog li a:hover { text-decoration: none; }
.posts img, .related img, .from-blog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .posts a:hover img, .related a:hover img, .from-blog li a:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ember-edge), 0 30px 50px -30px rgba(251, 113, 56, .5); }
    .posts a:hover :is(h2, h3), .related a:hover h3, .from-blog li a:hover h3 { color: var(--peach); }
}
.kind { display: block; margin-top: 18px; color: var(--peach); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.posts :is(h2, h3), .related h3, .from-blog h3 { margin-top: 8px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; font-size: 22px; transition: color 200ms var(--ease-out); text-wrap: balance; }
.posts li > p, .related li > p, .from-blog li > p { margin-top: 10px; font-size: 16px; line-height: 1.55; }
p.meta { margin-top: 12px; color: var(--muted); font-size: 14px !important; font-variant-numeric: tabular-nums; }
.related li > p:not(.meta) { display: none; }

/* ---------- blog index ---------- */
.blog-index { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--gutter) 0; }
.blog-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.blog-head h1 { color: var(--text); font-size: clamp(56px, 4.4vw + 24px, 92px); line-height: .9; letter-spacing: -.06em; }
.blog-head h1 em { display: block; }
.blog-head p { color: #EADFD9; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; padding-bottom: 8px; }
html[lang="ja"] .blog-head h1, html[lang="ko"] .blog-head h1, html[lang="zh-Hans"] .blog-head h1 { font-size: clamp(44px, 3vw + 20px, 72px); line-height: 1.05; letter-spacing: -.03em; }

.posts { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
.posts .p-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; column-gap: 40px; align-items: end; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.posts .p-lead a { display: contents; }
.posts .p-lead img { grid-column: 1; grid-row: 1 / span 4; border-radius: 26px; }
.posts .p-lead .kind, .posts .p-lead :is(h2, h3), .posts .p-lead > p { grid-column: 2; }
.posts .p-lead .kind { margin-top: 0; }
.posts .p-lead :is(h2, h3) { font-size: clamp(32px, 1.2vw + 22px, 40px); letter-spacing: -.045em; line-height: 1; }
.posts .p-lead > p:not(.meta) { font-size: 18px; color: #EADFD9; }
.posts .p-mid { grid-column: span 6; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.posts .p-mid :is(h2, h3) { font-size: clamp(24px, 2.4vw, 32px); }
.posts .p-row { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 6fr 3fr; column-gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.posts .p-row a { display: contents; }
.posts .p-row img { grid-column: 3; grid-row: 1 / span 3; border-radius: 16px; }
.posts .p-row .kind { grid-column: 1; grid-row: 1; margin-top: 4px; }
.posts .p-row :is(h2, h3) { grid-column: 2; grid-row: 1; margin-top: 0; font-size: clamp(22px, 2.2vw, 28px); }
.posts .p-row > p:not(.meta) { grid-column: 2; grid-row: 2; }
.posts .p-row > p.meta { grid-column: 1; grid-row: 2; margin-top: 4px; }
.get-index { margin-left: 0; margin-right: 0; max-width: none; }

/* ---------- home: From the blog ---------- */
.from-blog, .more-apps { position: relative; z-index: 1; max-width: calc(1220px); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.from-head, .more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.from-head a { color: var(--peach); font-weight: 800; font-size: 16px; padding: 12px 0; }
.from-blog ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; margin-top: 28px; }
.from-blog .p-lead { grid-column: span 2; grid-row: span 2; }
.from-blog .p-lead h3 { font-size: clamp(26px, 1.4vw + 12px, 32px); letter-spacing: -.045em; line-height: 1.02; }
.from-blog .p-lead img { border-radius: 26px; }
.from-blog .p-small h3 { font-size: 18px; }
.from-blog .p-small > p:not(.meta) { display: none; }
.from-blog .p-small .kind { margin-top: 14px; }

/* ---------- More apps: each card washed in its own icon colour, like Burn's Coming Up cards ---------- */
.more-head p { max-width: 30em; font-size: 16px; }
.more-head p a { font-weight: 700; }
.more-apps { padding-bottom: clamp(64px, 8vw, 110px); }
.more-apps ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.more-apps li {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; column-gap: 18px; padding: 28px;
    border-radius: 22px; border: 1px solid color-mix(in oklab, var(--tint) 30%, transparent);
    background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 30%, #0B0706), color-mix(in oklab, var(--tint) 9%, #0B0706));
    transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.more-apps li img { margin-bottom: 18px; width: 88px; height: 88px; border-radius: 23%; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9); }
.more-apps h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.more-apps h3 a { color: var(--text); }
.more-apps h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.more-apps h3 a:hover { text-decoration: none; }
.more-apps h3 a:focus-visible { outline: none; }
.more-apps h3 a:focus-visible::after { outline: 3px solid var(--peach); outline-offset: 3px; }
.more-apps li p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #E8DCD6; }
.more-apps .tag { justify-self: start; margin-top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 7, 6, .5); color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.more-apps li:hover, .more-apps li:focus-within { border-color: color-mix(in oklab, var(--tint) 70%, transparent); }
@media (hover: hover) and (pointer: fine) { .more-apps li:hover { transform: translateY(-3px); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .blog-head { grid-template-columns: 1fr; }
    .posts .p-lead { grid-template-columns: 1fr; }
    .posts .p-lead img, .posts .p-lead .kind, .posts .p-lead :is(h2, h3), .posts .p-lead > p { grid-column: 1; grid-row: auto; }
    .posts .p-lead .kind { margin-top: 18px; }
    .posts .p-row { grid-template-columns: 1fr 200px; }
    .posts .p-row img { grid-column: 2; grid-row: 1 / span 4; }
    .posts .p-row .kind, .posts .p-row :is(h2, h3), .posts .p-row > p, .posts .p-row > p.meta { grid-column: 1; grid-row: auto; }
    .related ul { grid-template-columns: 1fr 1fr; }
    .from-blog ul { grid-template-columns: 1fr 1fr; }
    .more-apps ul { grid-template-columns: 1fr; }
    .more-apps li { grid-template-columns: 88px 1fr; grid-template-rows: auto 1fr auto; }
    .more-apps li img { grid-row: 1 / span 3; margin: 0; }
    .get { grid-template-columns: auto 1fr; }
    .get .badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
    .nav nav { gap: 14px; }
    .nav nav a { font-size: 14px; }
    .post-head h1 { font-size: clamp(38px, 11.4vw, 56px); }
    .byline { grid-template-columns: auto 1fr; }
    .byline .meta { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
    .byline .meta br { display: none; }
    .byline .meta time::after { content: " · "; }
    .prose p, .prose li { font-size: 17px; }
    .shot { grid-template-columns: 1fr; justify-items: center; }
    .shot .shot-img { width: min(72%, 280px); }
    .shot figcaption { justify-self: stretch; }
    .shots { gap: 12px; }
    .shot-img img { border-radius: 18px; }
    .picks > li, .picks > li:has(.app + .app) { grid-template-columns: 1fr; }
    .picks > li > span:last-child, .picks > li:has(.app + .app) > span:last-child { grid-column: 1; }
    .picks > li:has(.app + .app) > .app + .app { margin-left: 0; }
    .picks > li:has(.app + .app) { grid-template-columns: auto 1fr; }
    .picks > li:has(.app + .app) > span:last-child { grid-column: 1 / -1; }
    .callout, .verdict { padding: 18px; }
    .get { grid-template-columns: 1fr; border-radius: 26px; }
    .get > img { width: 80px; height: 80px; }
    .related ul { grid-template-columns: 1fr; gap: 0; }
    .related li { display: grid; grid-template-columns: 120px 1fr; column-gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
    .related li a { display: contents; }
    .related img { grid-row: 1 / span 3; border-radius: 12px; }
    .related .kind { margin-top: 0; }
    .related h3 { font-size: 18px; margin-top: 4px; }
    .related p.meta { margin-top: 6px; }
    .blog-head h1 { font-size: 17vw; }
    .posts { column-gap: 0; }
    .posts .p-mid { grid-column: 1 / -1; }
    .posts .p-row { grid-template-columns: 1fr 110px; column-gap: 16px; padding: 22px 0; }
    .posts .p-row img { border-radius: 12px; grid-row: 1 / span 2; }
    .posts .p-row > p:not(.meta) { grid-column: 1 / -1; }
    /* home strip becomes a swipeable row */
    .from-blog ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 16px; margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
    .from-blog ul::-webkit-scrollbar { display: none; }
    .from-blog li { flex: 0 0 78%; scroll-snap-align: start; }
    .from-blog .p-lead h3 { font-size: 24px; }
    .from-blog .p-small h3 { font-size: 20px; }
    .more-apps ul { grid-template-columns: 1fr; }
    .more-apps li { grid-template-columns: 64px 1fr; padding: 18px; }
    .more-apps li img { width: 64px; height: 64px; }
    .more-apps h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .posts img, .related img, .from-blog img, .more-apps li { transition: none; }
}

/* tap targets: 44px tall on touch (audit, 28 Oct). Also fixes the home page nav and footer, which load this file. */
.nav nav a { display: inline-block; padding: 12px 0; }
.nav .brand { padding: 4px 0; }
.lang-pick summary { height: 44px; }
@media (pointer: coarse) { .nav .lang-pick li a { padding: 10px 12px; } }
.crumbs a, .crumbs span:last-child { padding: 12px 0; }
.toc a { padding: 12px 0; }
.foot nav { gap: 0 22px; }
.foot nav a, .foot .langs a { display: inline-block; padding: 12px 0; }
.skip { padding: 12px 16px; }
.toc summary { padding: 11px 0; }

/* CJK line breaking: Japanese breaks at phrase boundaries, Korean between words (it uses spaces), Chinese anywhere */
html[lang="ja"] :is(h1, h2, h3, .nav a) { word-break: auto-phrase; }
html[lang="ko"] :is(h1, h2, h3) { word-break: keep-all; }
.nav nav a { white-space: nowrap; }
@media (max-width: 960px) { .blog-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .nav nav { gap: 12px; } .nav nav a { font-size: 13px; } .nav .brand span { font-size: 21px; } }
@media (max-width: 960px) { .posts .p-row > p:not(.meta) { grid-row: auto; } }

/* Free tools (calculator, printable sheets): inputs in the site's colours, one row per item, stacks on phones */
.tool { margin: 28px 0 !important; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(26, 16, 12, .9); }
.tool-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) 44px; gap: 10px; align-items: end; margin: 0 0 12px !important; }
.tool label span { display: block; margin-bottom: 6px; color: var(--peach); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tool input, .tool select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 220, 200, .22); background: var(--bg); color: var(--text); font: inherit; font-size: 17px; }
.tool input:focus-visible, .tool select:focus-visible, .tool-btn:focus-visible, .tool-row .x:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.tool-row .x { width: 44px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 6px 0 0 !important; }
.tool-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ember); color: #1A0E0A; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.tool-btn.ghost { background: none; color: var(--text); border: 1px solid rgba(255, 220, 200, .3); }
.tool-inline { margin-left: auto; min-width: 130px; }
.tool-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0 !important; }
.tool-out div { padding: 14px 16px; border-radius: 16px; background: rgba(251, 113, 56, .1); }
.tool-out span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-out b { display: block; margin-top: 4px; color: var(--text); font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tool-rank { margin: 14px 0 0 !important; padding-left: 22px; color: var(--muted); font-size: 15px; }
.tool-rank b { color: var(--text); }
.tool-note { margin: 12px 0 0 !important; color: var(--muted); font-size: 14px; }
.sheet { margin: 18px 0 0 !important; padding: 22px; border-radius: 14px; background: #FFFDF9; color: #1A0E0A; overflow-x: auto; }
.prose .sheet h2 { margin: 0 0 6px; color: #1A0E0A; font-size: 22px; }
.prose .sheet p { margin: 0 0 12px; color: #3B2A24; font-size: 14px; }
.sheet table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
.sheet th, .sheet td { height: 28px; padding: 4px 6px; border: 1px solid #3B2A24; text-align: left; }
.sheet th { background: #F3E6DC; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.prose .sheet .sheet-foot { margin: 10px 0 0; font-size: 11px; }
/* Subscription audit: presets, a row per subscription with a "barely use it" flag, file actions, statement reader */
.tool-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin: 0 0 10px !important; }
.prose .tool-sub { margin: 0; color: var(--peach); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prose .tool-note { font-size: 15px; }
.prose a.tool-btn { color: #1A0E0A; text-decoration: none; }
.prose a.tool-btn.ghost { color: var(--text); }
.prose a.tool-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.tool-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px !important; }
.preset { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 220, 200, .28); background: rgba(251, 113, 56, .08); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.preset:hover { border-color: var(--ember); }
.preset:focus-visible, .flag input:focus-visible, .stmt-list input:focus-visible, .tool textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.file-btn:focus-within { outline: 2px solid var(--ember); outline-offset: 2px; }
.tool-rows { margin-top: 18px !important; }
.tool-row.audit-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.2fr) 44px; grid-template-areas: "n p k c x" "f f f f f"; row-gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-row.audit-row > .f-n { grid-area: n; } .tool-row.audit-row > .f-p { grid-area: p; } .tool-row.audit-row > .f-k { grid-area: k; } .tool-row.audit-row > .f-c { grid-area: c; } .tool-row.audit-row > .x { grid-area: x; }
.row-foot { grid-area: f; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.tool .flag { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.tool .flag input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--ember); }
.tool .flag span { display: inline; margin: 0; color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.row-foot .hint { color: var(--muted); font-size: 13px; }
.audit-row:has(.cut:checked) .f-n input { border-color: var(--ember); }
.tool-out .save { background: rgba(251, 113, 56, .2); }
.tool-out .save b { color: var(--ember); }
.prose .tool-sum { margin: 14px 0 0; color: var(--text); font-size: 17px; font-weight: 700; }
.tool-rank .is-cut, .tool-rank .is-cut b { color: var(--amber); }
.tag-cut { padding: 2px 8px; border-radius: 999px; background: rgba(251, 113, 56, .18); color: var(--ember); font-size: 12px; font-weight: 800; }
.tool-files { margin-top: 16px !important; }
.tool-btn.danger { color: var(--amber); border-color: rgba(251, 113, 56, .45); }
.tool label.file-btn { position: relative; cursor: pointer; }
.tool input.sr { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.tool textarea { width: 100%; min-height: 150px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 220, 200, .22); background: var(--bg); color: var(--text); font: 14px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }
#stmt > label span { display: block; margin-bottom: 6px; color: var(--peach); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stmt-out { margin: 14px 0 0 !important; color: var(--text); }
.stmt-list { margin: 8px 0 12px !important; padding: 0; }
.prose .stmt-list li { margin: 0; padding: 0; }
.prose .stmt-list li::before { display: none; }
.stmt-list label { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--text); font-size: 16px; cursor: pointer; }
.stmt-list input { width: 22px; height: 22px; accent-color: var(--ember); flex: none; }
.sheet-preview table + table { margin-top: 14px; }
.sheet-preview table:first-of-type { width: auto; min-width: 0; }
.sheet-preview tr.hot td, .sheet-preview td.hot { color: #C2410C; font-weight: 700; }
.sheet-preview td.calc { background: #F3E6DC; }
.sheet-preview thead th { background: #FB7138; color: #1A0E0A; }
@media (max-width: 640px) {
    .tool { padding: 16px; }
    .tool-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .tool-row label:first-child { grid-column: 1 / -1; }
    .tool-out { grid-template-columns: 1fr; }
    .tool-inline { margin-left: 0; width: 100%; }
    .tool-row.audit-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; grid-template-areas: "n n n x" "p k c c" "f f f f"; }
    .tool-files .tool-btn { flex: 1 1 45%; justify-content: center; }
    .tool-top .tool-inline { order: -1; }
}

/* App Store download buttons in posts (hero under the answer, mid-article) */
.dl-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 18px 11px 12px; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 10px 30px -10px var(--ember-edge); }
.dl-btn img { border-radius: 7px; }
.dl-btn:hover { text-decoration: none; filter: brightness(1.08); }
.prose .dl-btn { color: #fff; text-decoration: none; }
.dl-mid { margin: 32px 0; padding: 18px 20px; border-radius: 18px; background: var(--ember-wash); border: 1px solid var(--ember-edge); }
.dl-mid p { margin: 0; }
