/* drlinclark.com — article pages (loads after styles.css) */

.article-page main { padding-bottom: clamp(64px, 8vw, 120px); }
.article-page h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -0.024em; }
.article-page h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.016em; }
.article-page h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }

.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-3); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.fmt { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 4px; vertical-align: middle; }
.fmt-research { background: var(--ink); color: var(--off-white); }
.fmt-short { background: var(--accent); color: var(--accent-ink); }
.dot { color: var(--ink-3); margin: 0 4px; }

/* Article */
.art-head { padding-top: clamp(40px, 5vw, 72px); }
.art-kicker { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.art-kicker a { color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--accent); }
.art-head h1 { margin-top: 14px; }
.byline { margin-top: 16px; font-size: 17px; font-weight: 600; }
.status { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 70ch; padding-left: 12px; border-left: 3px solid var(--accent); }
.art-body { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.art-body .toc { grid-column: 2; grid-row: 1; position: sticky; top: 88px; font-size: 15px; }
.art-body .prose { grid-column: 1; grid-row: 1; }
.art-body .references, .art-body .cta-card { grid-column: 1; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--hair); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.toc li a:hover { color: var(--ink); border-left-color: var(--accent); }

.prose { font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-2); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--light); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--black); color: var(--off-white); padding: 20px; overflow-x: auto; border-radius: 8px; font-size: 15px; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--hair); }

.references { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--ink); }
.references h2 { font-size: 22px; }
.references ul { margin-top: 18px; list-style: none; padding: 0; margin-left: 0; }
.references li { font-size: 16px; line-height: 1.55; padding: 0; text-indent: 0; text-align: left; color: var(--ink-2); }
.references li + li { margin-top: 16px; }
.references a { color: var(--ink); word-break: break-all; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.cta-card { margin-top: clamp(40px, 5vw, 64px); background: var(--black); color: var(--off-white); padding: clamp(28px, 4vw, 44px); border-radius: 12px; }
.cta-card h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta-card p { margin-top: 12px; color: var(--ink-3); font-size: 18px; max-width: 56ch; }
.cta-card .cta-row { margin-top: 24px; }
.cta-card .link { color: var(--accent); border-bottom-color: transparent; }
.cta-card .link:hover { border-bottom-color: var(--accent); }

.related { margin-top: clamp(48px, 6vw, 80px); }
.related h2 { font-size: 22px; margin-bottom: 8px; }

/* Lists and indexes */
.index-head { padding-top: clamp(40px, 5vw, 72px); }
.index-head h1 { margin-top: 24px; }
.index-head .band-sub { margin-top: 18px; }
.alist { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--ink); }
.acard { padding: 26px 0 28px; border-bottom: 1px solid var(--hair); }
.acard[hidden] { display: none; }
.acard-meta { font-size: 14px; color: var(--ink-2); }
.acard-col { color: var(--ink-2); text-decoration: none; margin-left: 6px; }
.acard-col:hover { color: var(--ink); }
.acard h3 { margin-top: 8px; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.acard p:last-child { margin-top: 8px; font-size: 17px; color: var(--ink-2); max-width: 70ch; }
.filter { margin-top: clamp(28px, 4vw, 40px); }
.filter label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.filter input { width: min(100%, 440px); font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--white); }
.filter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty { margin-top: 24px; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 10px; border: 1.5px solid var(--hair); border-radius: 6px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.pager a.cur { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }

.two-doors { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { display: grid; gap: 10px; padding: 28px; border: 1.5px solid var(--ink); border-radius: 12px; text-decoration: none; color: var(--ink); transition: background 140ms ease; }
.door strong { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.016em; line-height: 1.1; }
.door span:last-child { color: var(--ink-2); font-size: 16px; }
.door .fmt { justify-self: start; }
.door:hover { background: var(--light); }
.colgrid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.colgrid li { border-bottom: 1px solid var(--hair); }
.colgrid a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.colgrid a span { font-size: 14px; color: var(--ink-2); }
.colgrid a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.colnav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.colnav a { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--hair); border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.colnav a span { color: var(--ink-3); margin-left: 4px; }
.colnav a:hover { border-color: var(--ink); color: var(--ink); }
.article-page section.wrap + section.wrap { margin-top: clamp(48px, 6vw, 80px); }
.article-page section.wrap > h2 { margin-bottom: 4px; }

@media (max-width: 980px) {
  .art-body { grid-template-columns: 1fr; }
  .art-body .toc { position: static; grid-column: 1; grid-row: auto; margin-bottom: 8px; }
  .art-body .prose { grid-row: auto; }
  .two-doors { grid-template-columns: 1fr; }
}

/* Author card on the Articles landing: a toggle */
.bio-card, .callout {
  margin-top: 28px; max-width: 76ch; position: relative; overflow: hidden;
  padding: 0 20px; border-radius: 10px;
  background-color: #f6f6f4;
  background-image: linear-gradient(135deg, #f8f8f6 0%, #f1f1ee 100%);
}
.bio-card::before, .callout::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("/assets/fields/field-halftone.webp"); background-size: cover; background-position: right top;
  opacity: 0.06;
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 90%);
  mask-image: linear-gradient(to left, #000 20%, transparent 90%);
}
.bio-card > *, .callout > * { position: relative; }
.bio-card summary { color: var(--ink); font-size: 17px; }
.bio-card summary .pm::before, .bio-card summary .pm::after { background: var(--accent); }
.bio-body { padding: 4px 0 24px 20px; border-left: 3px solid var(--accent); margin-bottom: 20px; }
.bio-card summary { padding: 16px 0; }
.bio-body p { font-size: 18px; line-height: 1.55; }
.bio-body p + p { margin-top: 12px; }
.bio-wry { color: var(--ink-2); font-style: italic; }
.bio-body .link { font-size: 16px; }
/* Reading time and progress */
.rt { color: var(--ink-2); }
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 30; background: transparent; pointer-events: none; }
.readbar-fill { height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 80ms linear; }
@media (prefers-reduced-motion: reduce) { .readbar-fill { transition: none; } }

/* Email signup */
.signup { margin-top: clamp(40px, 5vw, 64px); background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: clamp(24px, 3.5vw, 40px); }
.signup h2 { font-size: clamp(24px, 2.6vw, 32px); }
.signup p { margin-top: 10px; font-size: 17px; line-height: 1.5; max-width: 60ch; }
.signup-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.signup-row input { flex: 1 1 260px; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--accent-ink); border-radius: 8px; background: var(--white); color: var(--ink); }
.signup-row input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup .btn { background: var(--ink); color: var(--off-white); }
.signup .btn:hover { background: #2a2a2a; }
.signup-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; line-height: 1.45; max-width: 60ch; }
.signup-consent input { margin-top: 3px; accent-color: var(--ink); }
.signup-note { margin-top: 12px; font-size: 15px; font-weight: 600; }
.signup-compact { padding: clamp(20px, 3vw, 28px); }
.signup-compact h2 { font-size: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.art .signup { max-width: 68ch; }

/* Measure rule on article pages: titles ~75% of the container, subtitles ~two-thirds; full width on phones */
.article-page h1, .art-head h1, .index-head h1, .article-page section.wrap > h2 { max-width: 78%; }
.index-head .band-sub, .signup p, .cta-card p, .bio-body p, .acard p:last-child, .status, .diagram figcaption, .empty, .index-cta { max-width: 72%; }
.article-page h1, .art-head h1, .index-head h1, .article-page h2, .article-page h3 { text-wrap: pretty; }
.index-head .band-sub, .index-cta, .status, .acard p:last-child, .prose p, .cta-card p, .signup p, .legend-body p { text-wrap: pretty; }
@media (max-width: 760px) {
  .article-page h1, .art-head h1, .index-head h1, .article-page section.wrap > h2, .index-head .band-sub, .signup p, .cta-card p, .bio-body p, .acard p:last-child, .status, .diagram figcaption, .empty, .index-cta { max-width: none; }
}
.art-body { grid-template-columns: minmax(0, 76ch) 1fr; }
.art .signup, .art .cta-card, .art .references { max-width: 76ch; }

/* Five angles series strip */
.fmt-angle { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 500; margin-left: 8px; }
.angles { margin-top: 22px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: 10px; max-width: min(100%, 82ch); }
.angles-head { font-size: 15px; color: var(--ink-2); margin: 0; }
.angles ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.angles li { font-size: 14px; }
.angles li a, .angles li.cur { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--hair); text-decoration: none; color: var(--ink-2); }
.angles li a:hover { border-color: var(--ink); color: var(--ink); }
.angles li.cur { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.angles .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--off-white); font-size: 12px; font-weight: 600; }
.angles li.cur .n { background: var(--accent-ink); color: var(--accent); }

/* Five angles: one colour per angle, everywhere it appears */
:root {
  --a1: #3D8BFF; /* Where I'd start */
  --a2: #FF8A3D; /* Where plans fail */
  --a3: #9B7BFF; /* Beyond the jargon */
  --a4: #F06CB0; /* What good looks like */
  --a5: #0E0E0E; /* The call leaders can't dodge */
}
.ah { display: flex; align-items: center; gap: 12px; }
.ah .an { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; }
.ah-starting-point .an { background: var(--a1); }
.ah-failure-modes .an { background: var(--a2); }
.ah-explained .an { background: var(--a3); }
.ah-measuring-results .an { background: var(--a4); }
.ah-decisions .an { background: var(--a5); color: var(--accent); }
.toc li[class^="t-"] a { position: relative; padding-left: 26px; }
.toc li[class^="t-"] a::before { content: ""; position: absolute; left: 12px; top: 12px; width: 8px; height: 8px; border-radius: 50%; }
.toc .t-starting-point a::before { background: var(--a1); }
.toc .t-failure-modes a::before { background: var(--a2); }
.toc .t-explained a::before { background: var(--a3); }
.toc .t-measuring-results a::before { background: var(--a4); }
.toc .t-decisions a::before { background: var(--a5); }
.acard .apills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acard .ap, .ap { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; padding: 3px 9px; border-radius: 999px; color: #fff; text-decoration: none; line-height: 1.4; }
.acard .apills a.ap-decisions { color: var(--accent); }
.acard .ap:hover { opacity: 0.85; }
.ap-starting-point { background: var(--a1); }
.ap-failure-modes { background: var(--a2); }
.ap-explained { background: var(--a3); }
.ap-measuring-results { background: var(--a4); }
.ap-decisions { background: var(--a5); color: var(--accent); }
.angles li.cur, .angles li a { border-width: 1.5px; }

/* Index: commercial line. Callouts follow the "Who's writing this" standard (.bio-card / .callout). */
.index-cta { margin-top: 22px; font-size: 19px; line-height: 1.5; }
.index-cta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.legend.bio-card { margin-top: 26px; }
.angle-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.angle-list li { display: flex; gap: 12px; align-items: baseline; }
.angle-list .an { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; transform: translateY(4px); }
.angle-list li strong { color: var(--ink); }
.l-starting-point .an { background: var(--a1); } .l-failure-modes .an { background: var(--a2); } .l-explained .an { background: var(--a3); } .l-measuring-results .an { background: var(--a4); } .l-decisions .an { background: var(--a5); color: var(--accent); }
