/* Articles: the list (articles/), one article (articles/<address>) and the editor's preview. */
.art-index-head { padding: 40px 0 8px; max-width: 640px; }
.art-index-head h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.02em; }
.art-none { color: var(--muted); max-width: 640px; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 40px; }
.art-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.art-card:hover { border-color: var(--accent); }
.art-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ac-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ac-title { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.ac-sum { color: var(--muted); font-size: .95rem; }
.ac-meta { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 4px; }

.art-preview { background: var(--accent-soft); color: var(--accent-strong); text-align: center; font-size: .9rem; padding: 8px 16px; margin: 0; }

.art-head { padding: 40px 0 8px; max-width: 720px; }
.art-kicker { margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
.art-kicker a { text-decoration: none; }
.art-head h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -.02em; }
.art-dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 14px; }
.art-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.art-cover { margin: 24px 0 0; }
.art-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0 40px; }
@media (min-width: 900px) {
  .art-layout { grid-template-columns: 200px minmax(0, 680px); gap: 48px; }
  .art-layout > .art-body:only-child { grid-column: 2; }
  .art-toc { position: sticky; top: 16px; align-self: start; }
}
.art-toc { font-size: .9rem; }
.art-toc p { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; margin: 0 0 8px; }
.art-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.art-toc a { color: var(--text); text-decoration: none; }
.art-toc a:hover { color: var(--accent-strong); text-decoration: underline; }

.art-body { font-size: 1.08rem; line-height: 1.7; }
.art-body h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; scroll-margin-top: 16px; }
.art-body h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; scroll-margin-top: 16px; }
.art-body > :first-child { margin-top: 0; }
.art-body p, .art-body ul, .art-body ol { margin: 0 0 1em; }
.art-body li { margin-bottom: .3em; }
.art-body blockquote { margin: 1.2em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.art-note { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.art-note p { margin: 0; }
.art-img { margin: 1.5em 0; }
.art-img img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.art-img figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.art-more { border-top: 1px solid var(--line); padding-top: 24px; }
.art-more h2 { font-size: 1.3rem; }
.art-table { overflow-x: auto; margin: 1.4em 0; }
.art-table table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.art-table th, .art-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-table th { background: var(--accent-soft); font-weight: 700; }
.art-table tr:last-child td { border-bottom: 0; }
