/* ============================================================
   Frame blog — shared stylesheet
   ============================================================
   ONE file for every blog page, in every locale. Article HTML
   carries content only; nothing here may be duplicated inline.

   Layout: sticky anchor-TOC left / body centre / quick-answer +
   internal links right. Both margins carry real, crawlable HTML.

   Hard rules (see .claude/skills/frame-blog/SKILL.md):
   - The TOC must be complete in the HTML. JS may decorate it,
     never build it: GPTBot/ClaudeBot/PerplexityBot read raw HTML
     and do not execute JS, and Google mines in-page anchors for
     "Jump to" sitelinks.
   - Body text ≥ 4.5:1 contrast; house target 7:1.
   - --amber is 3.39:1 on paper: ACCENT ONLY, never text.
   ============================================================ */

:root {
    /* --- Light surface. Inverted from the product's dark theme:
       the app background #1E1814 becomes the blog's text colour. --- */
    --paper:      #FAF7F2;   /* page background — warm off-white, never #FFF */
    --surface:    #F2EBE0;   /* cards, callouts, table zebra */
    --surface-2:  #EDE4D6;   /* nested / hover surface */

    --ink:        #1E1814;   /* body text — 16.43:1 on paper */
    --ink-70:     #5A4F45;   /*  7.45:1 — meta, captions, secondary */
    --ink-55:     #7A6E62;   /*  4.64:1 — AA floor, labels ≥14px only */

    --amber:      #C4722E;   /* 3.39:1 — ACCENT ONLY. Never body text. */
    --amber-ink:  #9A5420;   /* 5.36:1 — links, always underlined */
    --amber-wash: rgba(196,114,46,.10);
    --brown:      #4A2C17;   /* 11.81:1 — display accents */

    --rule:       rgba(30,24,20,.12);
    --rule-soft:  rgba(30,24,20,.07);

    /* Dark inversion — CTA bands, footer. Keeps the brand thread. */
    --dark:       #1E1814;
    --cream:      #F0E0C8;
    --cream-70:   rgba(240,224,200,.72);

    --radius:     14px;
    --radius-sm:  10px;

    /* Measure. 65–70ch at 19px is the legibility constant. */
    --measure:    680px;
    --wide:       1040px;
    --shell:      1324px;   /* 680 body + 232 + 268 rails + 2x48 gaps + 2x24 padding.
                              Derived, not chosen: shrink it and the reading column
                              drops below the 60-character floor. */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: var(--paper);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
/* Sticky-header safe anchor landing. Required for the TOC to work. */
:target, h2[id], h3[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Nothing may widen the document. Wide content scrolls inside its own box. */
img, video, table, pre, iframe { max-width: 100%; }
.layout, .layout > *, .canvas > *, main, article { min-width: 0; }

.it { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; padding-right: .06em; }

/* ── Site chrome ─────────────────────────────────────────── */

.site-nav {
    position: sticky; top: 0; z-index: 50;
    height: 60px; display: flex; align-items: center;
    background: rgba(250,247,242,.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
    width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { font-weight: 900; font-size: 21px; letter-spacing: -.6px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--amber); }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a { color: var(--ink-70); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ── Typography ──────────────────────────────────────────── */

.breadcrumbs {
    font-size: 13px; color: var(--ink-55); margin: 28px 0 22px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.breadcrumbs a { color: var(--ink-55); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber-ink); text-decoration: underline; }
.breadcrumbs .sep { color: var(--rule); }

.eyebrow {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--amber-ink); margin-bottom: 14px;
}

h1 {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800; line-height: 1.04; letter-spacing: -1.8px;
    margin-bottom: 20px; text-wrap: balance;
}

.lede {
    font-size: 21px; line-height: 1.55; color: var(--ink-70);
    font-weight: 400; margin-bottom: 28px; text-wrap: pretty;
}

.post-meta {
    font-size: 13.5px; color: var(--ink-55); font-weight: 500;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.post-meta .dot { color: var(--rule); }

article h2 {
    font-size: clamp(27px, 3vw, 33px);
    font-weight: 700; line-height: 1.18; letter-spacing: -.9px;
    margin: 56px 0 16px; text-wrap: balance;
}
article h3 {
    font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.4px;
    margin: 36px 0 12px;
}

article p, article li {
    font-size: 19px; line-height: 1.68; color: var(--ink);
}
article p { margin-bottom: 20px; text-wrap: pretty; }
article ul, article ol { margin: 0 0 24px; padding-left: 22px; }
article li { margin-bottom: 10px; padding-left: 4px; }
article li::marker { color: var(--amber); }
article strong { font-weight: 650; }

/* Link styling must cover every content block, not just <article>. The
   takeaways, callouts, FAQ and figcaptions all live outside <article> and
   were falling back to the browser's default blue. */
article a,
.takeaways a,
.callout a,
.faq a,
figcaption a,
.post-header a {
    color: var(--amber-ink);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2.5px;
    text-decoration-color: rgba(154,84,32,.35);
}
article a:hover,
.takeaways a:hover,
.callout a:hover,
.faq a:hover,
figcaption a:hover,
.post-header a:hover { text-decoration-color: var(--amber-ink); background: var(--amber-wash); }

/* ── Author ──────────────────────────────────────────────── */

.author-card {
    display: flex; align-items: center; gap: 13px;
    padding: 16px 0; margin-bottom: 30px;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.author-card .avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.author-card .name { font-size: 15px; font-weight: 650; }
.author-card .role { font-size: 13.5px; color: var(--ink-55); line-height: 1.45; }

/* ── Key takeaways ───────────────────────────────────────── */

.takeaways {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin: 0 0 36px;
    border-left: 3px solid var(--amber);
}
.takeaways .tk-label {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--amber-ink); margin-bottom: 14px;
}
.takeaways ul { margin: 0; padding-left: 19px; }
.takeaways li { font-size: 16.5px; line-height: 1.55; margin-bottom: 10px; }
.takeaways li:last-child { margin-bottom: 0; }

/* ── Callout ─────────────────────────────────────────────── */

.callout {
    background: var(--amber-wash);
    border: 1px solid rgba(196,114,46,.22);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 32px 0;
}
.callout p { font-size: 17px; line-height: 1.6; margin: 0; }

/* ── Figures & images ────────────────────────────────────── */

figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }

figcaption {
    font-size: 13.5px; line-height: 1.5; color: var(--ink-55);
    margin-top: 10px; text-align: left;
}
figcaption .credit { color: var(--rule); }
figcaption .credit a { color: var(--ink-55); text-decoration: underline; }

.hero-figure { margin: 0 0 40px; }
.hero-figure .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-figure .pair figure { position: relative; }
.hero-figure .label {
    position: absolute; left: 10px; bottom: 10px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--cream); background: rgba(30,24,20,.72);
    padding: 4px 9px; border-radius: 20px; backdrop-filter: blur(6px);
}

/* ── Tables ──────────────────────────────────────────────── */

/* min-width:0 is load-bearing: a grid/flex item defaults to min-width:auto,
   so the 520px min-width table below escapes the scroll container without it
   and pushes the whole document wider than the viewport. */
.table-wrap {
    overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch;
    max-width: 100%; min-width: 0;
}

.summary-table {
    width: 100%; border-collapse: collapse;
    font-size: 15.5px; min-width: 520px;
}
.summary-table caption {
    text-align: left; font-size: 13px; color: var(--ink-55);
    padding-bottom: 10px; font-weight: 500;
}
.summary-table th {
    text-align: left; font-weight: 650; font-size: 12px;
    text-transform: uppercase; letter-spacing: .9px; color: var(--ink-55);
    padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink);
}
.summary-table td {
    padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule);
    vertical-align: top; line-height: 1.5;
}
.summary-table tbody tr:hover { background: var(--surface); }
.summary-table td:first-child { font-weight: 650; white-space: nowrap; }
.summary-table .avoid { color: var(--ink-55); }

/* ── Face-shape cards ────────────────────────────────────── */

.shapes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px; margin: 30px 0;
}
.shape-card {
    background: var(--surface); border-radius: var(--radius-sm);
    padding: 18px 14px; text-align: center;
    border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.shape-card:hover { border-color: rgba(196,114,46,.3); background: var(--surface-2); }
.shape-card svg { width: 40px; height: 49px; color: var(--brown); margin-bottom: 10px; }
.shape-card .name { font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.shape-card .hint { font-size: 12.5px; line-height: 1.4; color: var(--ink-55); }

/* ── Section visual: face + suitable frames ──────────────── */

.section-visual {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    background: var(--surface); border-radius: var(--radius);
    padding: 22px 26px; margin: 26px 0 30px;
}
.section-visual .face svg { width: 54px; height: 66px; color: var(--brown); display: block; }
.section-visual .frames {
    display: flex; gap: 20px; flex-wrap: wrap; flex: 1;
    padding-left: 26px; border-left: 1px solid var(--rule);
}
.section-visual .frame { text-align: center; }
.section-visual .frame svg { width: 62px; height: 27px; color: var(--ink); display: block; margin: 0 auto 7px; }
.section-visual .fcap { font-size: 11.5px; font-weight: 600; color: var(--ink-55); letter-spacing: .2px; }

/* ── Colour palettes ─────────────────────────────────────── */

.palette-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px; margin: 28px 0;
}
.palette { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; }
.palette .ptitle { font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.palette .psub { font-size: 12.5px; color: var(--ink-55); line-height: 1.4; margin-bottom: 14px; }
.palette .swatches { display: flex; gap: 7px; }
.palette .swatch {
    width: 30px; height: 30px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(30,24,20,.12);
}

/* ── Steps strip — app screenshots ───────────────────────────
   Two up, then the remainder on the next row. App screens are tall;
   three across shrinks them to unreadable thumbnails. The last item
   in an odd-numbered set spans both columns and centres its image. */

.steps-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 36px 0;
}
.steps-strip > figure {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
}
.steps-strip > figure img {
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 28px rgba(30,24,20,.10);
}
/* Odd one out: full width, image held to a single-column measure. */
.steps-strip > figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.steps-strip > figure:last-child:nth-child(odd) img {
    max-width: calc(50% - 10px);
    margin: 0 auto;
}
.steps-strip figcaption {
    text-align: center; font-size: 15px; color: var(--ink);
    font-weight: 550; margin-top: 14px; line-height: 1.4;
}
.steps-strip .snum {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
    color: var(--amber-ink); text-transform: uppercase;
    padding: 3px 9px; margin-bottom: 6px;
    background: var(--amber-wash); border-radius: 100px;
}

@media (max-width: 560px) {
    .steps-strip { grid-template-columns: 1fr; gap: 14px; }
    .steps-strip > figure:last-child:nth-child(odd) img { max-width: 100%; }
}

/* ── CTA band — dark inversion, the brand thread ─────────── */

.cta-block {
    background: var(--dark); color: var(--cream);
    border-radius: var(--radius); padding: 40px 36px;
    margin: 44px 0; text-align: center;
}
.cta-block h3 {
    font-size: clamp(24px, 3vw, 31px); font-weight: 800; letter-spacing: -.9px;
    color: var(--cream); margin: 0 0 10px;
}
.cta-block p { font-size: 16.5px; color: var(--cream-70); margin-bottom: 24px; }
.btn-amber {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--amber); color: #14100C;
    font-size: 15.5px; font-weight: 650;
    padding: 13px 26px; border-radius: 100px; text-decoration: none;
    transition: background .2s, transform .2s;
}
.btn-amber:hover { background: #D4894A; transform: translateY(-1px); }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 8px; }
.faq details {
    border-bottom: 1px solid var(--rule);
}
.faq summary {
    font-size: 18px; font-weight: 650; line-height: 1.4;
    padding: 20px 34px 20px 0; cursor: pointer; position: relative;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 27px;
    width: 9px; height: 9px; border-right: 2px solid var(--amber);
    border-bottom: 2px solid var(--amber); transform: rotate(45deg);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details > *:not(summary) { padding-bottom: 8px; }
.faq p { font-size: 17.5px; }

/* ── Related posts ───────────────────────────────────────── */

.related { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--rule); }
.related__label {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--ink-55); margin-bottom: 18px;
}
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related__card {
    display: block; text-decoration: none; color: inherit;
    background: var(--surface); border-radius: var(--radius-sm);
    padding: 20px; border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.related__card:hover { border-color: rgba(196,114,46,.3); background: var(--surface-2); }
.related__card .k {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--amber-ink); margin-bottom: 8px;
}
.related__card .t { font-size: 16.5px; font-weight: 650; line-height: 1.35; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
    background: var(--dark); color: var(--cream-70);
    margin-top: 80px; padding: 44px 24px; text-align: center;
}
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-bottom: 16px; }
.foot-links a { color: var(--cream-70); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--cream); }
.foot-copy { font-size: 12.5px; color: rgba(240,224,200,.4); }

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 720px) {
    article p, article li { font-size: 17.5px; line-height: 1.65; }
    .lede { font-size: 19px; }
    .takeaways, .section-visual { padding: 20px; }
    .section-visual { gap: 18px; }
    .section-visual .frames { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
    .hero-figure .pair { grid-template-columns: 1fr; }
    .cta-block { padding: 32px 22px; }
    .nav-links { gap: 16px; }
}

/* ============================================================
   Layout — three zones
   ============================================================ */

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 1080px) {
    .layout {
        grid-template-columns: 232px minmax(0, 1fr) 268px;
        column-gap: 48px;
        align-items: start;
    }
    .layout__body { min-width: 0; max-width: var(--measure); }
    .layout__left, .layout__right {
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .layout__left::-webkit-scrollbar, .layout__right::-webkit-scrollbar { width: 0; }
}

/* ── Reading progress. CSS-only: scroll-driven animation, ───
   degrades to an invisible bar where unsupported. No JS, no INP cost. */
.progress {
    position: fixed; top: 60px; left: 0; right: 0; height: 2px;
    background: var(--amber); transform-origin: 0 50%;
    z-index: 60; transform: scaleX(0);
    animation: progress-grow linear;
    animation-timeline: scroll(root block);
}
@keyframes progress-grow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

/* ── Left rail: table of contents ────────────────────────── */

.toc__label,
.aside__label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--ink-55);
    padding-bottom: 12px; margin-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.toc__list { list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; margin-bottom: 1px; }
.toc__list a {
    display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 2px;
    padding: 8px 0 8px 13px;
    font-size: 13.5px; line-height: 1.38; font-weight: 500;
    color: var(--ink-70); text-decoration: none;
    border-left: 2px solid var(--rule);
    transition: color .18s, border-color .18s;
}
.toc__list a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 9.5px; font-weight: 700; color: var(--rule);
    padding-top: 3px; letter-spacing: .3px;
    transition: color .18s;
}
.toc__list a:hover { color: var(--ink); border-left-color: rgba(196,114,46,.5); }
.toc__list a:hover::before { color: var(--ink-55); }
.toc__list a[aria-current="true"] {
    color: var(--amber-ink); border-left-color: var(--amber); font-weight: 600;
}
.toc__list a[aria-current="true"]::before { color: var(--amber); }

.toc__share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.toc__share a {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 500; color: var(--ink-55);
    text-decoration: none; padding: 5px 0;
}
.toc__share a:hover { color: var(--amber-ink); }

/* Mobile: the TOC becomes a <details>, never a fixed overlay. */
.toc--mobile { margin: 0 0 32px; }
.toc--mobile > summary {
    font-size: 14px; font-weight: 650; cursor: pointer; list-style: none;
    padding: 14px 18px; background: var(--surface); border-radius: var(--radius-sm);
    display: flex; justify-content: space-between; align-items: center;
}
.toc--mobile > summary::-webkit-details-marker { display: none; }
.toc--mobile > summary::after { content: '▾'; color: var(--amber); }
.toc--mobile[open] > summary::after { content: '▴'; }
.toc--mobile .toc__list { padding: 16px 18px 6px; }

@media (min-width: 1080px) { .toc--mobile { display: none; } }
@media (max-width: 1079.98px) { .layout__left, .layout__right { display: none; } }

/* ── Right rail: quick answer + internal links + app card ── */

.aside__block { margin-bottom: 30px; }

.quick-answer {
    background: var(--surface); border-radius: var(--radius-sm);
    padding: 18px; border-left: 3px solid var(--amber);
}
.quick-answer dl { font-size: 13px; line-height: 1.45; }
.quick-answer dt {
    font-weight: 650; color: var(--ink); margin-top: 11px;
}
.quick-answer dt:first-child { margin-top: 0; }
.quick-answer dd { color: var(--ink-70); margin-left: 0; }

.aside__links { list-style: none; }
.aside__links li { border-bottom: 1px solid var(--rule-soft); }
.aside__links li:last-child { border-bottom: 0; }
.aside__links a {
    display: block; padding: 11px 0; font-size: 13.5px; line-height: 1.4;
    font-weight: 500; color: var(--ink-70); text-decoration: none;
}
.aside__links a:hover { color: var(--amber-ink); }

/* Scoped to the rail on purpose: the app-ranking article uses .app-card for
   its seven in-body review blocks (see §"Ranked app card" below). An unscoped
   dark rule turned all seven into black boxes. */
.layout__right .app-card {
    background: var(--dark); color: var(--cream);
    border-radius: var(--radius-sm); padding: 22px; text-align: center;
}
.layout__right .app-card .t { font-size: 16px; font-weight: 700; color: var(--cream); margin-bottom: 6px; line-height: 1.3; }
.layout__right .app-card .s { font-size: 13px; color: var(--cream-70); line-height: 1.45; margin-bottom: 16px; }
.layout__right .app-card .btn-amber { font-size: 13.5px; padding: 10px 18px; }

/* Body-column width discipline stays identical to variant 1. */
.layout__body > * { max-width: 100%; }

/* ============================================================
   Blog index
   ============================================================ */

.index-hero {
    max-width: var(--shell); margin: 0 auto; padding: 64px 24px 40px;
    border-bottom: 1px solid var(--rule);
}
.index-hero .tag {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.6px; color: var(--amber-ink); margin-bottom: 14px;
}
.index-hero h1 {
    font-size: clamp(38px, 5.5vw, 62px); font-weight: 800;
    letter-spacing: -2px; line-height: 1.02; margin-bottom: 18px; max-width: 15ch;
}
.index-hero p {
    font-size: 20px; line-height: 1.55; color: var(--ink-70); max-width: 60ch;
}

.posts { max-width: var(--shell); margin: 0 auto; padding: 44px 24px 20px; }

.posts__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; border: 1px solid transparent;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-card:hover {
    border-color: rgba(196,114,46,.32);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30,24,20,.08);
}
.post-card__thumb {
    aspect-ratio: 16 / 9; background: var(--surface-2);
    overflow: hidden;
}
.post-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 0; transition: transform .35s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.03); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.post-card .post-meta {
    font-size: 12.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.1px; color: var(--ink-55); margin-bottom: 10px; display: block;
}
.post-card .post-title {
    font-size: 21px; font-weight: 700; line-height: 1.28;
    letter-spacing: -.5px; margin-bottom: 10px; text-wrap: balance;
}
.post-card:hover .post-title { color: var(--amber-ink); }
.post-card .post-excerpt {
    font-size: 15px; line-height: 1.58; color: var(--ink-70); margin: 0;
}

/* The newest post takes the full row and reads as the lead story. */
@media (min-width: 900px) {
    .posts__grid > .post-card:first-child {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .posts__grid > .post-card:first-child .post-card__thumb {
        flex: 0 0 46%; aspect-ratio: auto;
    }
    .posts__grid > .post-card:first-child .post-card__body {
        justify-content: center; padding: 34px 38px;
    }
    .posts__grid > .post-card:first-child .post-title { font-size: 30px; letter-spacing: -1px; }
    .posts__grid > .post-card:first-child .post-excerpt { font-size: 16.5px; max-width: 52ch; }
}

@media (max-width: 720px) {
    .index-hero { padding: 44px 22px 30px; }
    .index-hero p { font-size: 17.5px; }
    .posts { padding: 30px 22px 10px; }
    .posts__grid { gap: 18px; }
}

/* ============================================================
   Article-specific components
   ============================================================
   These were previously inline in individual articles. They are
   ported here from the dark originals, remapped to the light
   surface:  --cream-04 → --surface, --cream-08 → --rule,
   --cream → --ink, --cream-80 → --ink, --cream-50 → --ink-70,
   and every amber TEXT label → --amber-ink (plain --amber is
   3.39:1 and fails on paper).
   ============================================================ */

/* ── Ranked app card — "best iPhone apps" articles ───────── */

article .app-card {
    margin: 24px 0 10px;
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
article .app-card .rank {
    font-size: 11px; font-weight: 800; color: var(--amber-ink);
    letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px;
}
article .app-card h3 {
    margin: 0 0 8px; color: var(--ink);
    font-size: 20px; letter-spacing: -.4px;
}
article .app-card .tagline {
    font-size: 13.5px; color: var(--ink-70); font-style: italic; margin-bottom: 14px;
}
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.pros-cons .label {
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; margin-bottom: 7px;
}
.pros-cons .pros .label { color: var(--amber-ink); }
.pros-cons .cons .label { color: var(--ink-55); }
.pros-cons ul { margin: 0; padding: 0; list-style: none; }
.pros-cons li {
    font-size: 14.5px; line-height: 1.55; margin-bottom: 7px;
    padding-left: 16px; color: var(--ink); position: relative;
}
.pros-cons li::before {
    content: '·'; position: absolute; left: 2px; top: -2px;
    color: var(--amber); font-weight: 700; font-size: 18px;
}
.pros-cons .cons li::before { color: var(--ink-55); }

/* ── Pipeline strip — "how virtual try-on works" ─────────── */

.pipeline {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin: 26px 0 34px;
}
.pipeline .step {
    padding: 18px 15px; background: var(--surface);
    border: 1px solid var(--rule); border-radius: var(--radius-sm);
    text-align: center;
}
.pipeline .step svg { width: 34px; height: 34px; color: var(--amber); margin: 0 auto 10px; display: block; }
.pipeline .step .pn { font-size: 10px; font-weight: 800; color: var(--amber-ink); letter-spacing: 1.4px; margin-bottom: 6px; }
.pipeline .step .pt { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; margin-bottom: 5px; }
.pipeline .step .pd { font-size: 12px; color: var(--ink-70); line-height: 1.4; }

/* ── Two-up comparison ───────────────────────────────────── */

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 30px; }
.compare {
    padding: 22px; background: var(--surface);
    border: 1px solid var(--rule); border-radius: var(--radius-sm);
}
.compare.good { border-color: rgba(196,114,46,.3); background: var(--amber-wash); }
.compare .ctitle { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -.2px; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li {
    font-size: 14px; padding-left: 16px; line-height: 1.55;
    margin-bottom: 7px; color: var(--ink-70); position: relative;
}
.compare li::before { content: '·'; position: absolute; left: 2px; top: -2px; color: var(--amber); font-weight: 700; font-size: 17px; }

/* ── Accuracy bars ───────────────────────────────────────── */

.accuracy-bars {
    margin: 22px 0 34px; padding: 24px 26px;
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.accuracy-bars .ab-row {
    display: grid; grid-template-columns: 150px 1fr 48px;
    gap: 14px; align-items: center; margin-bottom: 13px;
}
.accuracy-bars .ab-row:last-child { margin-bottom: 0; }
.accuracy-bars .ab-label { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.accuracy-bars .ab-track { height: 8px; background: rgba(30,24,20,.10); border-radius: 100px; overflow: hidden; }
.accuracy-bars .ab-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-hover, #D4894A)); border-radius: 100px; }
.accuracy-bars .ab-num { font-size: 13.5px; color: var(--amber-ink); font-weight: 700; text-align: right; }

/* ── Sunglasses chips inside a shape card ────────────────── */

.shape-card .sc-label {
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--amber-ink); margin: 14px 0 8px;
}
.shape-card .sc-label:first-child { margin-top: 0; }
.shape-card .sc-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; justify-content: center; }
.shape-card .sc-chip {
    font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 100px;
    border: 1px solid rgba(196,114,46,.35); color: var(--ink); background: var(--amber-wash);
}
.shape-card .sc-chip.avoid {
    border-color: var(--rule); color: var(--ink-55);
    background: transparent; text-decoration: line-through;
}

/* ── Frame-size diagram ──────────────────────────────────── */

.size-diagram {
    margin: 26px 0 34px; padding: 30px;
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: var(--radius); text-align: center;
}
.size-diagram svg { width: 100%; max-width: 480px; height: auto; color: var(--ink); }
.size-diagram .sd-caption { font-size: 13.5px; color: var(--ink-70); margin-top: 14px; }
.size-code {
    font-size: clamp(28px, 5vw, 40px); font-weight: 900;
    letter-spacing: 2px; color: var(--ink); margin: 4px 0 10px;
}
.size-code .n1 { color: var(--amber-ink); }
.size-code .n2 { color: var(--brown); }
.size-code .n3 { color: var(--ink-70); }

/* ── Method block — "try on glasses online free" ─────────── */

.method {
    margin: 26px 0 34px; padding: 26px 28px;
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.method .m-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.method .m-title { font-size: 18.5px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
.method .m-score { font-size: 13.5px; font-weight: 700; color: var(--amber-ink); white-space: nowrap; }
.method .m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.method .m-col-label {
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--amber-ink); margin-bottom: 8px;
}
.method .m-col ul { margin: 0; padding-left: 18px; }
.method .m-col li { font-size: 14.5px; line-height: 1.55; margin-bottom: 7px; }

/* ── Source note ─────────────────────────────────────────── */

.source-note { font-size: 13px; color: var(--ink-55); line-height: 1.5; margin: -8px 0 26px; }
.source-note a { color: var(--ink-55); }

/* ── Narrow screens ──────────────────────────────────────── */

@media (max-width: 720px) {
    .pros-cons,
    .method .m-cols,
    .compare-grid { grid-template-columns: 1fr; gap: 14px; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    article .app-card,
    .method,
    .size-diagram,
    .accuracy-bars { padding: 20px; }
    .accuracy-bars .ab-row { grid-template-columns: 110px 1fr 42px; gap: 10px; }
    .accuracy-bars .ab-label { font-size: 12.5px; }
}

/* U+25A1 is the real eyewear bridge separator, so it stays in the copy — but at
   display size a hollow square is indistinguishable from a missing glyph. Demote
   it to punctuation weight so it reads as a separator, not as tofu. */
.size-code .sep-box {
    font-size: .58em; font-weight: 500; color: var(--ink-55);
    vertical-align: .18em; margin: 0 .12em; letter-spacing: 0;
}
.size-code .sep-dash { color: var(--ink-55); font-weight: 600; margin: 0 .04em; }
.sd-caption .sep-box { font-size: .95em; color: var(--ink-55); }

/* ── Spacing corrections after live review ───────────────── */

/* The score wraps onto its own line on a 680px column, leaving the
   GOOD/LIMITS columns butted straight against it. Separate the head
   from the columns properly. */
.method .m-head { margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.method .m-cols { margin-top: 18px; }

/* A .shape-card used standalone (not inside .shapes-grid) carries no
   grid gap, so it needs its own vertical rhythm. */
article > .shape-card,
.layout__body > .shape-card { margin: 26px 0 30px; padding: 22px 24px; }

/* Chip rows read as one block; keep WEAR/SKIP groups distinct. */
.shape-card .sc-row:last-child { margin-bottom: 0; }

/* A heading directly after a component block was inheriting the full 56px
   top margin on top of the block's own bottom margin — too much air in some
   places, too little in others. Normalise the pairing. */
article .table-wrap + h2,
article .steps-strip + h2,
article .section-visual + h2 { margin-top: 48px; }
article p + h3 { margin-top: 32px; }

/* Standalone inline figure inside the article flow. */
article > figure { margin: 34px 0 38px; }
article > figure img { width: 100%; height: auto; }
