/* On-site article pages. Same tokens as the rest of the site (base.css), editorial layout. */
.art { padding: 110px var(--gutter) 0; }
.art__head { max-width: 1180px; }
.art__crumbs { color: var(--mute); margin: 0 0 22px; }
.art__crumbs a:hover { color: var(--ink); }
.art__title { margin: 0 0 24px; font: 500 clamp(36px, 5.6vw, 92px)/1 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.art__meta { color: var(--mute); margin: 0; line-height: 1.8; }
.art__meta a { color: var(--ink); border-bottom: 1px solid var(--mute-2); }
.art__cover { margin: clamp(28px, 4vw, 56px) 0 0; max-height: 58svh; overflow: hidden; background: var(--paper-2); }
.art__cover img { width: 100%; height: 58svh; object-fit: cover; }

.art__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); gap: clamp(30px, 6vw, 110px); margin-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(60px, 8vw, 130px); }
.art__toc { position: sticky; top: 96px; align-self: start; font-size: 13px; }
.art__toc .mono { color: var(--mute); margin: 0 0 14px; }
.art__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.art__toc li { margin: 0; }
.art__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--mute); line-height: 1.3; transition: color .25s, border-color .25s; }
.art__toc a:hover, .art__toc a.is-on { color: var(--ink); border-left-color: var(--ink); }

.art__body { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; color: var(--ink-2); }
.art__body p { margin: 0 0 1.15em; }
.art__body strong { color: var(--ink); font-weight: 600; }
.art__body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.art__body a:hover { color: var(--accent); }
.art__body section { scroll-margin-top: 90px; }
.art__body h2 { margin: 1.9em 0 .55em; font: 500 clamp(26px, 2.5vw, 38px)/1.1 var(--f-display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.art__body h3 { margin: 1.4em 0 .35em; font: 600 18px/1.3 var(--f-body); color: var(--ink); }
.art__body ul, .art__body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.art__body li { margin: 0 0 .55em; padding-left: .2em; }
.art__body li::marker { color: var(--accent); }

.art__tldr { margin: 0 0 2.2em; padding: 22px 24px 8px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper-2); }
.art__tldr .mono { color: var(--accent); margin: 0 0 10px; }
.art__tldr p:last-child { font-size: 1.02em; color: var(--ink); }
.art__faq { margin-top: 2.4em; padding-top: 1px; border-top: 1px solid var(--line); }
.art__cta { margin: 2.2em 0 0; }
.art__cta .btn { text-decoration: none; }
.art__author { margin-top: 3em; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.art__author .mono { color: var(--mute); margin: 0 0 10px; }

.art__more { padding: clamp(50px, 6vw, 90px) var(--gutter); border-top: 1px solid var(--line); }
.art__more > .mono { color: var(--mute); margin: 0 0 26px; }
.art__more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.art__more a { display: block; }
.art__more img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); margin-bottom: 14px; transition: opacity .3s; }
.art__more a:hover img { opacity: .8; }
.art__more .mono { display: block; color: var(--mute); margin-bottom: 8px; }
.art__more strong { display: block; font: 500 clamp(18px, 1.5vw, 24px)/1.2 var(--f-display); letter-spacing: -.01em; }

.art__progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 820; pointer-events: none; }

@media (max-width: 900px) {
  .art { padding-top: 92px; }
  .art__grid { grid-template-columns: 1fr; }
  .art__toc { display: none; }
  .art__cover, .art__cover img { max-height: 40svh; height: 40svh; }
  .art__more ul { grid-template-columns: 1fr; }
}
