/* 7 Pillars of Selling Online — site styles
   Palette: limestone page, white reading paper, graphite ink, logo crimson, fluted gray, signal teal. */

@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --stone: #efefec;
  --stone-2: #e4e4df;
  --paper: #ffffff;
  --ink: #2b2e33;
  --ink-2: #4d535b;
  --ink-3: #6b717a;
  --flute: #d3d3d3;
  --rule: #dcdcd6;
  --crimson: #a91f1f;
  --crimson-dk: #861818;
  --crimson-lt: #f7e8e8;
  --crimson-on-dark: #f08a8a;
  --teal: #0f6f68;
  --teal-lt: #e2f0ee;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--crimson-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; font: 650 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dk); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 650; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .masthead { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); } }
.masthead-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { flex: none; display: block; margin-right: auto; }
.brand img { width: 150px; height: auto; }
@media (min-width: 760px) { .brand img { width: 189px; } }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .8rem; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover { background: var(--stone); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--crimson); border-radius: 0; }
.masthead-tools { display: flex; gap: .25rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--stone); }
.menu-btn { display: none; }
@media (max-width: 979px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px -18px rgba(20,22,26,.35); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 20px 1rem; gap: 0; }
  .nav a { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--stone-2); border-radius: 0; }
  .nav li:last-child a { border-bottom: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--crimson); padding-left: .9rem; }
}
@media (min-width: 980px) { .nav { order: 0; } }

/* ---------- page layout ---------- */
.layout { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding-top: 40px; align-items: start; } }
.article { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px 36px; min-width: 0; }
@media (min-width: 760px) { .article { padding: 40px 56px 56px; } }
.is-list .article { background: transparent; border: 0; padding: 0; }
@media (min-width: 760px) { .is-list .article-head { padding: 0 0 8px; } }

.crumbs ol { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--flute); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }

.article-head { display: grid; gap: 20px; margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.is-list .article-head { border-bottom: 0; margin-bottom: 12px; }
@media (min-width: 900px) { .article-head.has-figure { grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 36px; } }
.article-head h1 { font-size: clamp(2rem, 1.35rem + 2.3vw, 2.85rem); letter-spacing: -.012em; line-height: 1.1; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: 1rem; color: var(--ink-3); font-size: .92rem; }
.meta span + span { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.lede { margin-top: .9rem; font: italic 500 1.25rem/1.5 var(--serif); color: var(--ink-2); max-width: 60ch; }
.article-figure { margin: 0; }
.article-figure img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 34px -22px rgba(20,22,26,.55); }
@media (max-width: 899px) { .article-figure { max-width: 420px; } }

/* table of contents */
.toc { margin: 0 0 32px; border: 1px solid var(--rule); border-left: 4px solid var(--crimson); border-radius: var(--radius); background: #fafaf8; }
.toc summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .15s; }
.toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc summary span { color: var(--ink-3); font-weight: 400; font-size: .88rem; }
.toc ol { margin: 0; padding: .25rem 1.1rem 1.1rem 2.6rem; columns: 1; font-size: .96rem; line-height: 1.45; }
@media (min-width: 900px) { .toc ol { columns: 2; column-gap: 2.5rem; } }
.toc li { margin: 0 0 .45rem; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--crimson); text-decoration: underline; }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); margin-top: 2.1em; position: relative; padding-top: .9rem; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--crimson); }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); font-weight: 600; margin-top: 1.8em; }
.prose h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose .center { text-align: center; }
.prose h2.center::before { left: 50%; transform: translateX(-50%); }
.prose strong { font-weight: 700; color: #1f2226; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose ul > li::marker { color: var(--crimson); }
.prose ol > li::marker { color: var(--crimson); font-weight: 700; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 1rem 1.25rem; background: var(--teal-lt); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote > * + * { margin-top: .6em; }
.prose del { color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose .verdict { background: var(--teal-lt); border-radius: var(--radius); padding: .85rem 1.1rem; text-align: left; border-left: 4px solid var(--teal); }
.prose .verdict strong:first-child { color: var(--teal); }
.prose code { font-size: .92em; background: var(--stone); padding: .1em .35em; border-radius: 4px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--stone); }

/* images */
.prose figure { margin-left: 0; margin-right: 0; }
figure.img { margin-top: 1.8em; margin-bottom: 1.8em; }
figure.img img { margin: 0 auto; border-radius: var(--radius); }
figure.img.small img { border-radius: 4px; }
.prose figcaption { margin-top: .55rem; font-size: .88rem; color: var(--ink-3); text-align: center; }
@media (min-width: 700px) {
  figure.float-right, img.float-right { float: right; margin: .35em 0 1em 1.5em; max-width: 44%; }
  figure.float-left, img.float-left { float: left; margin: .35em 1.5em 1em 0; max-width: 44%; }
  .prose h2, .prose h3 { clear: both; }
}
img.inline-img { display: inline-block; vertical-align: middle; }
.media-text { display: grid; gap: 1rem 1.5rem; align-items: center; background: var(--stone); border-radius: var(--radius); padding: 1rem; }
.media-text-media { margin: 0; }
.media-text-media img { border-radius: 4px; }
.media-text-body > * + * { margin-top: .6em; }
.media-text-body p:first-child { font: 600 1.5rem/1.2 var(--serif); }
@media (min-width: 700px) { .media-text { grid-template-columns: 1fr 1fr; padding: 1.25rem; } }

/* YouTube facade */
figure.video { margin-top: 2em; margin-bottom: 2em; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #0e0f11; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -26px rgba(20,22,26,.7); }
.yt-link, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt-link:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.yt-play .yt-bg { fill: #212121; fill-opacity: .82; transition: fill .15s, fill-opacity .15s; }
.yt-link:hover .yt-bg, .yt-link:focus-visible .yt-bg { fill: #f00; fill-opacity: 1; }
@media (min-width: 760px) { .yt-play svg { width: 84px; height: 59px; } }
figure.video figcaption { text-align: left; }

/* article footer */
.article-foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; background: var(--stone); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 550; }
.chips a:hover, .chips a[aria-current] { background: var(--ink); color: #fff; }
.chips span { color: var(--ink-3); font-weight: 400; font-size: .8rem; }
.chips a:hover span, .chips a[aria-current] span { color: var(--flute); }

/* recommended tool */
.tool-cta { margin-top: 2.75rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: #fbfbfa; padding: 0 20px 24px; }
@media (min-width: 760px) { .tool-cta { padding: 0 32px 30px; } }
.tool-cta-kicker { margin: 0 -20px; padding: .6rem 20px; background: var(--ink); color: var(--flute); font-size: .85rem; font-weight: 600; }
@media (min-width: 760px) { .tool-cta-kicker { margin: 0 -32px; padding: .6rem 32px; } }
.tool-cta h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-top: 1.25rem; }
.tool-cta-logo { display: block; margin: 1.1rem 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.tool-cta-logo img { width: 100%; }
.tool-cta > p { margin-top: .75rem; }
.checks { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
@media (min-width: 700px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.checks li { position: relative; padding-left: 1.7rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.8 11 12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.tool-cta-offer { margin: 1.4rem 0; padding: 1rem 1.1rem; background: var(--crimson-lt); border-radius: var(--radius); }
.coupon { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.coupon code { font: 700 1.3rem/1 var(--sans); letter-spacing: .08em; padding: .55rem .9rem; border: 2px dashed var(--crimson); border-radius: var(--radius); background: #fff; color: var(--crimson-dk); }
.copy-btn { min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--ink-2); background: #fff; color: var(--ink); cursor: pointer; font-size: .9rem; font-weight: 600; }
.copy-btn:hover { background: var(--ink); color: #fff; }
.tool-cta-note { font-size: .82rem; color: var(--ink-3); }

/* related + cards */
.related { margin-top: 2.75rem; }
.related h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card-link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; height: 100%; transition: border-color .15s, box-shadow .15s; }
@media (min-width: 600px) { .card-link { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 16px; } }
.card-link:hover { color: var(--ink); border-color: var(--flute); box-shadow: 0 14px 30px -24px rgba(20,22,26,.6); }
.card-thumb { display: block; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--stone-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.card-title { font: 700 1.12rem/1.25 var(--serif); }
@media (min-width: 600px) { .card-title { font-size: 1.3rem; } }
.card-link:hover .card-title { color: var(--crimson); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.card-excerpt { font-size: .95rem; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) { .card-excerpt { -webkit-line-clamp: 2; font-size: .9rem; } }
.card-meta { font-size: .82rem; color: var(--ink-3); margin-top: auto; }
.cards-compact .card-link { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px; }
.cards-compact .card-title { font-size: 1.05rem; }
.cards-compact .card-excerpt { display: none; }

/* ---------- sidebar ---------- */
.sidebar { display: grid; gap: 20px; align-content: start; }
@media (min-width: 700px) and (max-width: 1039px) { .sidebar { grid-template-columns: 1fr 1fr; } .sidebar .side-block:last-child { grid-column: 1 / -1; } }
.side-block { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px 22px; }
.side-block h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.side-keys { background: var(--ink); border-color: var(--ink); color: #fff; }
.side-keys h2 { color: #fff; }
.side-keys ol { list-style: none; margin: 0; padding: 0; counter-reset: key; }
.side-keys li { counter-increment: key; border-top: 1px solid rgba(255,255,255,.12); }
.side-keys li:first-child { border-top: 0; }
.side-keys a { display: grid; grid-template-columns: 1.9rem 1fr; gap: .4rem; padding: .7rem 0; color: #fff; text-decoration: none; font-weight: 550; line-height: 1.35; font-size: .98rem; }
.side-keys a::before { content: counter(key); font: 600 1.15rem/1.1 var(--serif); color: var(--crimson-on-dark); }
.side-keys a:hover, .side-keys a[aria-current] { color: var(--crimson-on-dark); }
.side-keys a:focus-visible { outline-color: #fff; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--stone-2); }
.side-list a { display: block; padding: .6rem 0; color: var(--ink); text-decoration: none; line-height: 1.35; font-size: .96rem; }
.side-list a:hover { color: var(--crimson); text-decoration: underline; }

/* ---------- home ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); mask-image: linear-gradient(90deg, transparent 35%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 90%); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 44px; padding-bottom: 52px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-top: 72px; padding-bottom: 80px; } }
.hero h1 { color: #fff; font-size: clamp(2.35rem, 1.4rem + 3.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; max-width: 14ch; }
.hero-deck { margin-top: 1.1rem; font: italic 400 clamp(1.2rem, 1.05rem + .6vw, 1.45rem)/1.45 var(--serif); color: #d8d9dc; max-width: 36ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.hero-figure::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--crimson); border-radius: 10px; }
@media (max-width: 899px) { .hero-figure { max-width: 460px; } }

.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem); letter-spacing: -.01em; }
.section-head p { margin-top: .6rem; color: var(--ink-2); font-size: 1.08rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

.pillars { padding: 56px 0 64px; }
.colonnade { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pillar a { display: grid; grid-template-columns: 64px minmax(0, 1fr); color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.pillar-capital { display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 1.35rem/1 var(--serif); letter-spacing: .02em;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px); }
.pillar-shaft { display: flex; flex-direction: column; gap: .2rem; padding: 14px 16px; }
.pillar-title { font: 700 1.14rem/1.25 var(--serif); }
.pillar-text { font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.pillar a:hover .pillar-capital { background-color: var(--crimson); }
.pillar a:hover .pillar-title { color: var(--crimson); }
@media (min-width: 700px) { .colonnade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .colonnade { grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: stretch; }
  .pillar a { grid-template-columns: none; grid-template-rows: auto 1fr; height: 100%; overflow: visible; border: 0; background: transparent; position: relative; padding-bottom: 12px; }
  .pillar a::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: 0; height: 12px; background: var(--ink); border-radius: 2px; transition: background-color .2s; }
  .pillar-capital { margin: 0 -5px; height: 58px; font-size: 1.55rem; border-radius: 3px 3px 0 0; box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); }
  .pillar-shaft { margin: 0 3px; padding: 18px 12px 22px; min-height: 230px; background-color: var(--paper);
    background-image: repeating-linear-gradient(90deg, transparent 0 11px, rgba(43,46,51,.075) 11px 13px);
    background-size: 100% 64px; background-repeat: no-repeat; background-position: bottom; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .pillar-title { font-size: 1.12rem; }
  .pillar-text { font-size: .86rem; }
  .pillar a:hover::after { background: var(--crimson); }
  .pillar a:hover .pillar-shaft { background-color: #fff; }
  @media (prefers-reduced-motion: no-preference) {
    .pillar a { transition: transform .2s; }
    .pillar a:hover { transform: translateY(-4px); }
  }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .is-home .pillar { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .is-home .pillar:nth-child(2) { animation-delay: .06s; } .is-home .pillar:nth-child(3) { animation-delay: .12s; }
  .is-home .pillar:nth-child(4) { animation-delay: .18s; } .is-home .pillar:nth-child(5) { animation-delay: .24s; }
  .is-home .pillar:nth-child(6) { animation-delay: .30s; } .is-home .pillar:nth-child(7) { animation-delay: .36s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.feature { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feature-inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
@media (min-width: 760px) { .feature-inner { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 64px; } }
.feature-figure { margin: 0; max-width: 320px; }
.feature-figure img { border-radius: 8px; box-shadow: 0 22px 40px -26px rgba(20,22,26,.6); transform: rotate(-2deg); }
.feature-text h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); max-width: 20ch; }
.feature-text p { margin: 1rem 0 1.5rem; max-width: 52ch; color: var(--ink-2); font-size: 1.1rem; }

.guides { padding: 60px 0 32px; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .guide-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.guide a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; background: var(--paper); border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.guide-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.guide-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-title { font: 700 1.4rem/1.2 var(--serif); padding: 18px 20px 0; }
.guide-text { padding: .5rem 20px 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.guide-cta { margin-top: auto; padding: 16px 20px 20px; font-weight: 650; color: var(--crimson); }
.guide a:hover .guide-title, .guide a:hover .guide-cta { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.guide a:hover { border-color: var(--flute); }
.quick-links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .quick-links { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.quick-links a { display: block; padding: 14px 18px; border-left: 4px solid var(--teal); background: var(--teal-lt); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.quick-links strong { display: block; color: var(--teal); font-size: 1.02rem; }
.quick-links a:hover strong { text-decoration: underline; }

.latest { padding: 40px 0 64px; }
@media (min-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }

.help-band { background: var(--crimson); color: #fff; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.help-inner { padding-top: 52px; padding-bottom: 56px; display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .help-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; } .help-inner h2 { grid-column: 1 / -1; } }
.help-band h2 { color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.help-band p { max-width: 62ch; color: #fbe7e7; font-size: 1.1rem; }

/* ---------- 404 ---------- */
.notfound { padding-top: 56px; padding-bottom: 72px; max-width: 760px; }
.notfound-num { font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--serif); color: var(--flute); letter-spacing: -.03em; }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); margin-top: .5rem; }
.notfound .btn-row { margin: 1.6rem 0 2.4rem; }

/* ---------- legal ---------- */
.legal .prose h2 { font-size: 1.4rem; }
.legal-caps { font-size: .9rem; line-height: 1.6; letter-spacing: .01em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c9cbcf; padding-top: 52px; }
.footer-inner { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.wordmark { font: 700 1.9rem/1.1 var(--serif); color: var(--flute); margin-bottom: .75rem; }
.wordmark .wm-7 { color: #fff; }
.wordmark em { display: block; font: italic 500 1.15rem/1.3 var(--serif); color: var(--crimson-on-dark); }
.footer-brand p:last-child { max-width: 42ch; font-size: .95rem; }
.footer-nav h2 { font: 650 .95rem/1.3 var(--sans); color: #fff; margin-bottom: .6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: .3rem 0; color: #c9cbcf; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 28px; font-size: .84rem; color: #a3a7ad; display: grid; gap: .35rem; }
.footer-legal a { color: #d7d9dc; }
.footer :focus-visible { outline-color: #fff; }

/* ---------- search ---------- */
.search { position: fixed; inset: 0; z-index: 90; background: rgba(24,26,30,.6); display: flex; justify-content: center; align-items: flex-start; padding: 12px; }
@media (min-width: 760px) { .search { padding: 10vh 24px 24px; } }
.search[hidden] { display: none; }
.search-panel { width: 100%; max-width: 680px; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.search-bar { display: flex; align-items: center; gap: .6rem; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.search-bar input { flex: 1; min-width: 0; border: 0; font: 400 1.1rem/1.4 var(--sans); padding: .6rem 0; color: var(--ink); background: transparent; }
.search-bar input:focus { outline: none; }
.search-close { border: 0; background: var(--stone); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink); min-height: 40px; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search-results a { display: block; padding: .7rem .8rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus, .search-results a[aria-selected="true"] { background: var(--stone); outline: none; }
.search-results .sr-title { display: block; font: 700 1.05rem/1.3 var(--serif); }
.search-results .sr-desc { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.45; }
.search-results mark { background: var(--crimson-lt); color: inherit; border-radius: 2px; }
.search-results .sr-empty { padding: 1rem .8rem; color: var(--ink-2); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead, .sidebar, .footer, .tool-cta, .related, .toc, .search { display: none !important; }
  body { background: #fff; }
  .article { border: 0; padding: 0; }
}
.card-thumb img.fit { object-fit: contain; background: #fff; }
@media (max-width: 899px) { .hero-figure { margin-right: 14px; } }
.prose .lead { font: 600 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.35 var(--serif); color: var(--ink); text-align: left; }
.prose .lead + .lead { margin-top: .5em; }
.meta span + span { padding-left: 0; border-left: 0; }
.meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--flute); vertical-align: middle; margin-right: 1.1rem; }
@media (max-width: 759px) {
  .layout > .article:not(:only-child) { margin-left: -20px; margin-right: -20px; border-left: 0; border-right: 0; border-radius: 0; }
  .is-list .layout > .article { margin: 0; }
  .tool-cta { margin-left: -4px; margin-right: -4px; }
}

/* ---------- hero frame: centered around the photo ---------- */
.hero-figure::before { inset: -12px; border-radius: 14px; }
@media (max-width: 899px) { .hero-figure { margin: 12px; } }

/* ---------- pillar articles ---------- */
.kicker { font: italic 500 1.1rem/1.3 var(--serif); color: var(--crimson); margin-bottom: .35rem; }
.article-figure.is-badge { justify-self: center; }
.pillar-badge { width: 150px; display: flex; flex-direction: column; align-items: stretch; }
.pb-cap { height: 18px; background: var(--ink); border-radius: 3px 3px 0 0; margin: 0 -10px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.pb-shaft { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; height: 170px; margin: 0 6px;
  background-color: #fafaf8; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  background-image: repeating-linear-gradient(90deg, transparent 0 11px, rgba(43,46,51,.07) 11px 13px); }
.pb-label { font: italic 500 1rem/1 var(--serif); color: var(--ink-2); background: #fafaf8; padding: .15rem .4rem; }
.pb-num { font: 700 3.4rem/1 var(--serif); color: var(--crimson); background: #fafaf8; padding: 0 .35rem; }
.pb-base { height: 14px; background: var(--ink); border-radius: 0 0 3px 3px; margin: 0 -10px; }
@media (max-width: 899px) {
  .article-head.has-figure .article-figure.is-badge { order: -1; justify-self: start; }
  .pillar-badge { width: 110px; margin-left: 10px; }
  .pb-shaft { height: 96px; }
  .pb-num { font-size: 2.4rem; }
  .pb-cap, .pb-base { height: 12px; }
}
.prose .checklist { list-style: none; padding: 1rem 1.2rem; background: #fafaf8; border: 1px solid var(--rule); border-radius: var(--radius); }
.prose .checklist li { position: relative; padding-left: 2rem; margin: .5em 0; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--teal); border-radius: 4px; background: #fff; }
.note { border-radius: var(--radius); padding: 1rem 1.2rem; }
.note > * + * { margin-top: .6em; }
.note-warn { background: var(--crimson-lt); border-left: 4px solid var(--crimson); }
.note-risk { margin-top: 2.5rem; background: var(--stone); border: 1px solid var(--rule); font-size: .95rem; }
.prose .note-risk h2 { font-size: 1.15rem; margin-top: 0; padding-top: 0; }
.prose .note-risk h2::before { display: none; }
.pillar-nav { display: grid; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 640px) { .pillar-nav { grid-template-columns: 1fr 1fr; } }
.pillar-nav a { display: block; padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font: 700 1.2rem/1.25 var(--serif); }
.pillar-nav a span { display: block; font: 600 .82rem/1.4 var(--sans); color: var(--ink-3); margin-bottom: .2rem; }
.pillar-nav .pn-next { text-align: right; }
.pillar-nav a:hover { border-color: var(--crimson); color: var(--crimson); }
.side-pillars ol { list-style: none; margin: 0; padding: 0; }
.side-pillars li + li { border-top: 1px solid var(--stone-2); }
.side-pillars a { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .55rem 0; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.side-pillars .sp-num { font: 700 1rem/1 var(--serif); color: var(--crimson); }
.side-pillars a:hover, .side-pillars a[aria-current] { color: var(--crimson); }
.side-pillars a[aria-current] { font-weight: 700; }

/* hub */
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hub-list a { display: grid; grid-template-columns: 76px minmax(0, 1fr); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.hub-num { display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 1.5rem/1 var(--serif);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px); }
.hub-body { padding: 16px 20px; display: flex; flex-direction: column; gap: .25rem; }
.hub-title { font: 700 1.35rem/1.2 var(--serif); }
.hub-text { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.hub-list a:hover .hub-num { background-color: var(--crimson); }
.hub-list a:hover .hub-title { color: var(--crimson); }
.hub-note { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 420px) { .meta { font-size: .82rem; column-gap: .9rem; } .meta span + span::before { margin-right: .8rem; } }

/* ---------- revision 3 ---------- */
/* hero: offset frame sits behind the photo, peeking out bottom-right */
.hero-figure { position: relative; isolation: isolate; }
.hero-figure img { position: relative; z-index: 1; }
.hero-figure::before { inset: 16px -16px -16px 16px; border-radius: 10px; z-index: 0; }
@media (max-width: 899px) { .hero-figure { margin: 0 16px 16px 0; } }

/* pillar article header: centered */
.pillar-head { text-align: center; justify-items: center; }
.pillar-head .article-head-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pillar-head .crumbs { align-self: stretch; }
.pillar-head .crumbs ol { justify-content: center; }
.pillar-head h1 { max-width: 18ch; margin-top: .35rem; }
.pillar-head .lede { margin-left: auto; margin-right: auto; }
.pillar-head .meta { justify-content: center; }
.pillar-mark { margin: .6rem 0 .2rem; }
.pillar-mark span { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4rem; height: 3.4rem; padding: 0 .7rem;
  border: 2px solid var(--crimson); border-radius: 999px; font: 700 1.35rem/1 var(--serif); color: var(--crimson); letter-spacing: .03em; background: #fff; }
.pillar-head .kicker { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .9rem 0 0; color: var(--crimson);
  font: italic 500 1.2rem/1.3 var(--serif); letter-spacing: .02em; }
.kicker-rule { display: inline-block; width: 42px; height: 1px; background: var(--flute); }

/* previous / next pillar navigation */
.pillar-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .pillar-nav ul { grid-template-columns: 1fr 1fr; } }
.pillar-nav li { margin: 0; }
.pillar-nav a { height: 100%; }
.pillar-nav a .pn-label { display: block; }
.pillar-nav a .pn-title { display: block; }
.pillar-nav li:only-child { grid-column: 1 / -1; }

/* sidebar pillars list */
.side-pillars .sp-list { list-style: none; margin: 0; padding: 0; }
.side-pillars .sp-list a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0; }
.side-pillars .sp-label { display: block; }
.pillar-nav { display: block; }
.pillar-nav a .pn-title { font: 700 1.2rem/1.25 var(--serif); color: var(--ink); margin: 0; }
.pillar-nav a:hover .pn-title { color: var(--crimson); }
@media (min-width: 1000px) { .pillar-shaft { padding-bottom: 78px; min-height: 0; } }
