/* postora.org — one stylesheet. Editorial: warm paper, near-black ink, one deep-green accent.
   Headings: Source Serif 4 (Google Fonts, display=swap). Body: the system sans stack. */
:root {
  --paper: #fcfbf8;
  --ink: #17191c;
  --ink-2: #4b505a;      /* 8.0:1 on paper */
  --rule: #e2ded4;
  --tint: #f3f1ea;
  --accent: #0b5d4b;     /* 7.6:1 on paper */
  --accent-2: #084a3c;
  --accent-tint: #e9f2ee;
  --warn-tint: #fbf5e6;
  --warn: #8a5a00;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 44rem;
  --article: 66rem;
  --wide: 76rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  overflow-wrap: break-word; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 9; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: var(--gutter); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.25rem); line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem); margin: 2.6em 0 .6em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); font-weight: 600; margin: 2em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
p, ul, ol, figure, blockquote, pre { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.35rem; }
li { margin: .35rem 0; }
li::marker { color: var(--ink-2); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
blockquote { padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--rule); color: var(--ink-2); }
code { font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
pre { overflow-x: auto; padding: .9rem 1rem; background: var(--tint); border-radius: 6px; font-size: .9rem; }
pre code { background: none; padding: 0; }
.label, .kicker { font-family: var(--sans); font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.source { font-size: .88rem; color: var(--ink-2); }
.lede { font-size: 1.2rem; }

/* Masthead */
.masthead { border-top: 4px solid var(--accent); background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; align-items: baseline; gap: .4rem 1.25rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: .75rem; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.tagline { margin: 0; font-size: .88rem; color: var(--ink-2); }
.topnav { border-top: 1px solid var(--rule); }
.topnav .wrap { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.topnav .wrap::-webkit-scrollbar { display: none; }
.topnav a { display: block; padding: .65rem 0; font-size: .9rem; font-weight: 550; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* Article frame: header, lead block and body share one left edge */
.post > .wrap, .body, .hero, .guide-start { max-width: var(--article); margin-left: auto; margin-right: auto; }
.post-head { padding-top: 2rem; }
.post-head > *, .lead > *, .post-foot > * { max-width: var(--measure); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .2rem; font-size: .85rem; color: var(--ink-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 .45rem 0 .25rem; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.meta { font-size: .9rem; color: var(--ink-2); margin: 0 0 1.75rem; }

/* Short answer, key facts, advice note */
.answer { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 1rem 1.25rem; margin: 0 0 1.25rem; border-radius: 0 6px 6px 0; }
.answer p:last-child { margin: 0; font-size: 1.14rem; line-height: 1.6; }
.facts { border: 1px solid var(--rule); background: #fff; border-radius: 6px; padding: 1rem 1.25rem .6rem; margin: 0 0 1.25rem; }
.facts .label { color: var(--ink); }
.facts ul { margin: 0; padding-left: 1.1rem; }
.facts li { margin: 0 0 .5rem; font-size: .97rem; line-height: 1.55; }
.facts li::marker { color: var(--accent); }
.advice-note { font-size: .92rem; line-height: 1.55; background: var(--warn-tint); border: 1px solid #ecdcb4; border-left: 4px solid var(--warn); border-radius: 0 6px 6px 0; padding: .75rem 1rem; margin: 0 0 1.5rem; }

/* Figures */
.hero { padding: 0 var(--gutter); margin-top: .5rem; margin-bottom: 2.5rem; }
.hero img, .lead-img img { border-radius: 6px; width: 100%; }
.prose img { border-radius: 6px; margin: 1.5rem 0; }

/* Body + table of contents */
.body { padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.toc { border-top: 2px solid var(--ink); padding-top: .75rem; margin: 0 0 2rem; font-size: .92rem; max-width: var(--measure); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .3rem 0; line-height: 1.4; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Tables: scroll inside their box on small screens, with edge shadows as a hint */
.table-wrap {
  overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: 6px;
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 2rem 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.16), transparent) left / .75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.16), transparent) right / .75rem 100% no-repeat scroll,
    #fff;
}
table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--rule); min-width: 8rem; }
th { font-weight: 650; font-size: .82rem; letter-spacing: .02em; border-bottom: 2px solid var(--ink); }
tbody tr:last-child td { border-bottom: 0; }

/* CTA */
.cta { margin: 2.5rem 0; padding: 1.25rem 1.5rem; background: var(--tint); border-radius: 6px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 6px; padding: .7rem 1.2rem; font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--accent-2); color: #fff; }
.cta .note { display: block; margin-top: .6rem; font-size: .88rem; color: var(--ink-2); }

/* Post footer */
.post-foot { margin-top: 3rem; }
.byline { border-top: 1px solid var(--rule); padding-top: 1.25rem; font-size: .95rem; color: var(--ink-2); }
.pager { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; font-size: .95rem; }
.pager a { display: block; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.35; }
.pager a:hover { color: var(--accent); }
.pager span { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .25rem; }
.pager .next { text-align: right; }

/* Cards (latest, related) */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.25rem 1rem; display: flex; flex-direction: column; }
.card .kicker { font-size: .72rem; margin-bottom: .45rem; }
.card h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card .excerpt { font-size: .93rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 .75rem; }
.card .date { margin: auto 0 0; font-size: .8rem; color: var(--ink-2); }
.related { background: var(--tint); border-top: 1px solid var(--rule); margin-top: 3.5rem; padding: 2.5rem 0 3rem; }
.related h2 { margin: 0 0 1.25rem; font-size: 1.5rem; }

/* Homepage */
.home-lead { border-bottom: 1px solid var(--rule); padding: 2.25rem 0 2.5rem; }
.lead-grid { display: grid; gap: 2rem; }
.lead-text > * { max-width: var(--measure); }
.lead-img { margin: 0 0 1.25rem; }
.jump { font-weight: 600; margin: 0; }
.hub { padding: 2.75rem 0 1rem; }
.hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 2px solid var(--ink); padding-top: .75rem; margin-bottom: 1.25rem; }
.hub-head h2 { margin: 0; font-size: 1.5rem; }
.hub-head a { font-size: .9rem; font-weight: 600; }
.topics { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.topic h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a:hover { color: var(--accent); text-decoration: underline; }
.topic > p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 .6rem; }
.topic ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.topic li { border-top: 1px solid var(--rule); padding: .5rem 0; margin: 0; font-size: .93rem; line-height: 1.4; }
.topic li a { color: var(--ink); text-decoration: none; }
.topic li a:hover { color: var(--accent); text-decoration: underline; }
.topic .more { font-size: .85rem; font-weight: 600; margin: 0; }
.guide-start { padding: 3rem var(--gutter) 0; }
.guide-start .kicker { border-top: 2px solid var(--ink); padding-top: .75rem; max-width: var(--measure); }

/* Guides index */
.index .prose ul { list-style: none; padding: 0; }
.index .entry { border-top: 1px solid var(--rule); padding: .9rem 0; margin: 0; line-height: 1.55; }
.index .entry > a:first-child { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.index .entry > a:first-child:hover { color: var(--accent); text-decoration: underline; }
.index .entry .date { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .3rem; }

/* Rankings: ranked list, cost and score tables, "How we rank" box */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); font-size: .88em; }
.rank-meta { font-size: .92rem; color: var(--ink-2); }
.rank-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; counter-reset: none; }
.rank-item { border-top: 1px solid var(--rule); padding: 1.4rem 0 .6rem; margin: 0; }
.rank-item:first-child { border-top: 2px solid var(--ink); }
.rank-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.rank-no { flex: none; min-width: 2.1rem; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.rank-name { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); flex: 1 1 auto; }
.rank-score { margin: 0 0 0 auto; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.rank-score strong { font-size: 1.2rem; color: var(--ink); }
.best-for { margin: .5rem 0 .6rem; }
.best-for strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-right: .35rem; }
.rank-plan, .rank-src { font-size: .95rem; margin: 0 0 .6rem; }
.rank-src { color: var(--ink-2); }
.rank-points { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .85rem; }
.rank-points li { margin: 0; background: var(--tint); border-radius: 4px; padding: .15rem .5rem; }
.rank-points li span:first-child { color: var(--ink-2); }
.rank-watch-h { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin: 0 0 .2rem; }
.rank-watch { font-size: .95rem; margin: 0 0 .7rem; }
.rank-watch li { margin: .2rem 0; }
.rank-table { font-size: .86rem; }
.rank-table caption { caption-side: top; text-align: left; font-size: .85rem; color: var(--ink-2); padding: .65rem .8rem; border-bottom: 1px solid var(--rule); }
.rank-table th, .rank-table td { min-width: 0; padding: .5rem .6rem; }
.rank-table th[scope="row"] { min-width: 7.5rem; font-weight: 600; font-size: .86rem; letter-spacing: 0; border-bottom: 1px solid var(--rule); }
.rank-table .num { text-align: right; white-space: nowrap; }
.rank-table td.none { color: var(--ink-2); }
.rank-table .cell-note { display: block; font-size: .76rem; color: var(--ink-2); white-space: nowrap; }
.rank-box, .rank-method { border: 1px solid var(--rule); border-top: 4px solid var(--accent); background: #fff; border-radius: 0 0 6px 6px; }
.rank-box { padding: .1rem 1.25rem .4rem; margin: 0 0 1.25rem; }
.rank-box h2 { font-size: 1.25rem; margin: .9rem 0 .5rem; }
.rank-box p { font-size: .95rem; line-height: 1.55; margin: 0 0 .6rem; }
.rank-box .rank-weights { margin: 0 0 .7rem; }
.rank-method { padding: .25rem 1.25rem 1rem; margin: 2.5rem 0; }
.rank-method h2 { margin-top: 1rem; }
.rank-method h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.rank-affil { font-weight: 600; border-left: 3px solid var(--accent); padding-left: .75rem; }
.rank-rules, .rank-sources, .rank-log { font-size: .92rem; }
.rank-sources { columns: 2 16rem; column-gap: 2rem; }
.rank-sources li { break-inside: avoid; }
.box-table td { min-width: 12rem; }

/* Footer */
.site-footer { margin-top: 4rem; background: #1b1e22; color: #d9dcdf; font-size: .9rem; line-height: 1.6; }
.related + .site-footer, main:has(> .related:last-child) + .site-footer { margin-top: 0; }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #3a3f46; }
.foot-mark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 .4rem; }
.foot-grid p { max-width: 34rem; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-content: start; }
.site-footer p { margin: 0 0 .6rem; max-width: 50rem; }
.site-footer .copy { color: #a9aeb4; margin: 0; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
  .post-head { padding-top: 2.75rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; }
  .lead-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 3rem; }
  .home-lead { padding-top: 3rem; }
}
@media (min-width: 72rem) {
  .body.has-toc { display: grid; grid-template-columns: minmax(0, var(--measure)) 15rem; gap: 0 4rem; align-items: start; }
  .body.has-toc .toc { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; margin: 0; }
  .body.has-toc .prose { grid-column: 1; grid-row: 1; }
}
@media (max-width: 30rem) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .tagline { display: none; }
}
@media print {
  .masthead, .site-footer, .cta, .pager, .toc, .related { display: none; }
  body { background: #fff; }
}
