/* The Corner — Data blog. Loads after data.css.
   Komplier's editorial order (eyebrow row, big headline with a side note, fact strip,
   sticky numbered contents) in the Data section's dark look. */

.cta-band { background: linear-gradient(180deg, var(--bg) 0%, var(--sky-2) 40%, var(--bg) 100%); }
.cta-band::after { background: linear-gradient(transparent 70%, var(--bg)); }

/* ---------- blog pages: no italic serif, and more of the page width ---------- */
.serif { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.wrap { max-width: 1440px; padding: 0 clamp(20px, 4vw, 56px); }

.brand, .nav-links > a { white-space: nowrap; }

/* reading progress, pinned to the very top */
.readbar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.readbar i { display: block; height: 100%; width: 0; background: var(--fg); }


/* ---------- hero: eyebrow row, full-width headline, landscape, summary row ---------- */
.bhero { position: relative; isolation: isolate; overflow: hidden; padding-top: 128px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sky-3) 66%, var(--bg) 100%); }
.bhero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* the landscape band sits right under the headline and ends where the summary row starts */
.bscape { position: relative; height: clamp(300px, 38vw, 580px); margin-top: calc(-1 * clamp(60px, 9vw, 150px)); }
.bscape canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.eyerow { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.eyerow a:hover { color: var(--fg); }
.bh1 { margin-top: clamp(40px, 5vw, 72px); font-size: clamp(46px, 7.4vw, 124px); line-height: .98; letter-spacing: -.04em; font-weight: 300; }
.bh1 { max-width: 16ch; }
.bfoot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; margin-top: calc(-1 * clamp(70px, 9vw, 150px)); padding: 0 0 clamp(36px, 4vw, 56px); }
.bfoot p { margin: 0; max-width: 62ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 15px; white-space: nowrap; }
.byline .av { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.byline small { display: block; color: var(--fg-3); font-family: var(--mono); font-size: 12px; }
.btn-stack { display: grid; gap: 10px; }
.btn-stack .btn { justify-content: space-between; width: 100%; }
@media (max-width: 760px) { .bfoot { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .eyerow span:last-child { display: none; } .bhero { padding-top: 112px; } .bscape { height: 240px; margin-top: 0; } }

/* ---------- fact strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 28px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.facts dd { margin: 10px 0 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- post: sticky contents + one reading column ---------- */
.post { display: grid; grid-template-columns: 280px minmax(0, 720px); justify-content: center; gap: clamp(40px, 8vw, 128px); padding: clamp(72px, 9vw, 120px) 0 clamp(96px, 11vw, 150px); }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: thin; }
.toc-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.toc ol a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--fg-3); transition: color .2s, border-color .2s; }
.toc ol a span { font-family: var(--mono); font-size: 12px; padding-top: 1px; }
.toc ol a:hover { color: var(--fg); }
.toc ol a[aria-current="true"] { color: var(--fg); border-left-color: var(--fg); }

/* sidebar card: a dusk gradient with the lake in 0s and 1s, then the two buttons */
.toc-card { margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.toc-art { position: relative; height: 128px; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--s1, var(--sky-1)) 0%, var(--s2, var(--sky-2)) 34%, var(--s3, var(--sky-3)) 62%, var(--bg-2) 100%); }
.toc-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.toc-card-in { display: grid; gap: 10px; padding: 18px; }
.toc-card-in p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.toc-card-in .btn { justify-content: space-between; width: 100%; min-width: 0; height: 44px; font-size: 14px; padding-left: 14px; gap: 10px; }
.toc-card-in .btn .chip { width: 32px; height: 32px; }
@media (max-width: 960px) { .post { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .toc-card { max-width: 380px; } }

/* key takeaways, first thing in the article */
.keys { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.keys-k { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.keys ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.keys li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.keys li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--fg-3); }

.sec { scroll-margin-top: 100px; margin-top: clamp(72px, 8vw, 112px); }
.sec-k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* every title: one colour, light weight */
.sec h2, .takeaway h2, .feature h2, .cta-band h2, .bh1 { font-weight: 300; }
.sec h2, .takeaway h2, .feature h2, .cta-band h2 { color: var(--fg); }
.sec h2, .takeaway h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.prose .sec > p:not([class]), .prose .takeaway > p:not([class]) { font-size: 18px; line-height: 1.7; color: var(--fg-2); margin: 20px 0 0; text-wrap: pretty; }
.prose strong { color: inherit; font-weight: inherit; }
.prose a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
/* widgets sit in the reading column with the same rhythm */
.prose .media, .prose .ladder, .prose .steps, .prose .checks, .callout, .figs, .kinds, .pays, .pull { margin-top: 36px; }
.cap { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }

.callout { padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.callout .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0; }
.callout p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--fg); }
.callout a { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--fg); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.callout a:hover { border-color: currentColor; }

.pull { padding: 2px 0 2px 24px; border-left: 2px solid var(--fg); }
.pull p { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; color: var(--fg); }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }

/* what buyers want: two-column list */
.kinds { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0; border-top: 1px solid var(--line); }
.kinds > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kinds > div:nth-child(odd) { padding-right: 24px; }
.kinds dt { font-size: 16px; color: var(--fg); }
.kinds dd { margin: 4px 0 0; font-size: 14px; color: var(--fg-2); }
@media (max-width: 560px) { .kinds { grid-template-columns: 1fr; } }

.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.figs > div { border-top: 1px solid var(--fg); padding-top: 16px; }
.figs .n { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.figs p { margin: 10px 0 0; font-size: 14px; color: var(--fg-2); }
@media (max-width: 640px) { .figs { grid-template-columns: 1fr; } }

/* two ways to be paid */
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pays > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; }
.pays .k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.pays h3 { margin-top: 8px; font-size: 20px; font-weight: 400; }
.pays p:last-child { margin: 6px 0 0; font-size: 14px; color: var(--fg-2); }
@media (max-width: 560px) { .pays { grid-template-columns: 1fr; } }

.checks svg { color: var(--fg-3); }

/* the takeaway closes the article */
.takeaway { margin-top: clamp(72px, 8vw, 112px); padding: 32px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.takeaway .sec-k { border-bottom: 0; padding-bottom: 0; }
.takeaway .btn-row { justify-content: flex-start; margin-top: 28px; }

/* ---------- blog index ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); background: var(--bg-2); border-radius: 20px; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .media { position: relative; min-height: 400px; isolation: isolate; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 45%, var(--sky-3) 75%, var(--bg-2)); }
.feature .media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature .tx { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 44px); }
.feature .meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.feature h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 300; }
.feature p { margin: 0; color: var(--fg-2); font-size: 16px; max-width: 48ch; }
.feature .more { margin-top: auto; padding-top: 12px; font-size: 14px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .media { min-height: 300px; } }

.list-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(80px, 10vw, 120px) 0 22px; }
.list-head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; font-weight: 300; }
.ledger { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px 130px 24px; gap: 20px; align-items: baseline; padding: 26px 8px; border-bottom: 1px solid var(--line); }
a.row:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.row .no, .row .topic, .row .date { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.row h3 { font-size: 21px; letter-spacing: -.015em; }
.row p { margin: 6px 0 0; font-size: 15px; color: var(--fg-2); max-width: 60ch; }
.row .go { color: var(--fg-3); transition: transform .25s var(--ease), color .2s; }
a.row:hover .go { transform: translateX(3px); color: var(--fg); }
.row.soon h3 { color: var(--fg-2); }
@media (max-width: 820px) { .row { grid-template-columns: 44px minmax(0, 1fr); } .row .topic, .row .date, .row .go { grid-column: 2; } .row .go { display: none; } }

/* two paths: the buttons every blog page carries */
.paths2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paths2 a { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 62%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, transform .3s var(--ease); }
.paths2 a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.paths2 .who { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.paths2 h3 { font-size: 24px; }
.paths2 p { margin: 0; color: var(--fg-2); font-size: 15px; }
.paths2 .btn { margin-top: 14px; align-self: flex-start; }
@media (max-width: 720px) { .paths2 { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { body, .nav-in, .bhero, .cta-band, .facts, .callout, .feature, .row { transition: none; } }

/* =====================================================================
   Archive posts (/post/<slug>) and the hub grid (/blog/, /blog/categories/*)
   ===================================================================== */
/* long archive titles: smaller than a note's headline */
.bh1-post { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; max-width: 22ch; }

/* the CMS body: plain p / h2 / h3 / lists / figures / tables, styled to match the notes */
.wix { font-size: 18px; line-height: 1.7; color: var(--fg-2); }
.wix > :first-child { margin-top: 0; }
.wix p { margin: 20px 0 0; text-wrap: pretty; }
.wix h2, .wix h3, .wix h4, .wix h5 { color: var(--fg); font-weight: 300; letter-spacing: -.02em; scroll-margin-top: 100px; text-wrap: balance; }
.wix h2 { margin: 64px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; }
.wix h3 { margin: 40px 0 0; font-size: 23px; line-height: 1.25; font-weight: 400; }
.wix h4, .wix h5 { margin: 32px 0 0; font-size: 19px; font-weight: 400; }
/* Wix wraps every heading in <strong>; titles stay light */
.wix h2 strong, .wix h3 strong, .wix h4 strong, .wix h5 strong, .wix h2 b, .wix h3 b { font-weight: inherit; }
.wix strong, .wix b { color: inherit; font-weight: inherit; }
.wix a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.wix a:not(.btn):hover { text-decoration-color: currentColor; }
.wix ul, .wix ol { margin: 20px 0 0; padding-left: 22px; }
.wix li { margin-top: 8px; padding-left: 4px; }
.wix li::marker { color: var(--fg-3); }
.wix li > p { margin: 0; }
.wix blockquote { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--fg); color: var(--fg); font-size: 20px; line-height: 1.5; }
.wix blockquote p { margin: 0; }
.wix figure { margin: 36px 0 0; }
.wix figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.wix figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.wix hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.wix .table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.wix table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wix th, .wix td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.wix th { font-weight: 500; color: var(--fg); background: var(--bg-2); }
.wix tr:last-child td { border-bottom: 0; }
.wix .video { margin-top: 32px; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.wix .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wix iframe { max-width: 100%; }
.wix .prose-btn { margin-top: 28px; }
.wix .btn-solid { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 8px; background: rgba(255,255,255,.9); color: #111; text-decoration: none; font-size: 15px; font-weight: 500; }

.post-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.tagrow a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); transition: color .2s, border-color .2s; }
.tagrow a:hover { color: var(--fg); border-color: var(--fg-3); }

/* topic chips on the hub: real links to /blog/categories/<slug>/ */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.topics a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); transition: color .2s, border-color .2s, background-color .2s; }
.topics a span { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.topics a:hover { color: var(--fg); border-color: var(--fg-3); }
.topics a[aria-current="page"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.topics a[aria-current="page"] span { color: var(--bg); opacity: .6; }

/* the article grid */
.more { padding-bottom: clamp(48px, 6vw, 80px); }
.list-head { margin-top: clamp(72px, 9vw, 112px); }
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease); }
.hcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hcard-art { position: relative; aspect-ratio: 16 / 8; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--s1, var(--sky-1)) 0%, var(--s2, var(--sky-2)) 34%, var(--s3, var(--sky-3)) 62%, var(--bg-2) 100%); }
/* the featured card wears the same sunset */
.feature .media[style] { background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 34%, var(--s3) 62%, var(--bg-2) 100%); }
.bhero[style] { background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 34%, var(--s3) 62%, var(--bg) 100%); }
.hcard-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hcard-tx { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.hcard-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.hcard h3 { font-size: 20px; line-height: 1.3; font-weight: 300; letter-spacing: -.015em; color: var(--fg); }
.hcard-ex { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hgrid { grid-template-columns: minmax(0, 1fr); } }

/* newer / older */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(48px, 6vw, 80px); }
.pager > * { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s; }
.pager > a:hover { border-color: var(--line-2); }
.pager .end { text-align: right; }
.pager .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.pager .t { font-size: 16px; color: var(--fg); }
.pager .t.dim { color: var(--fg-3); }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .end { text-align: left; } }
