/* Articles list + article pages. Loads after styles.css and home.css. */
.page main { padding-top: 140px; }
.page .wrap { max-width: 1240px; }

/* ---------- list ---------- */
.list-head { display: flex; flex-direction: column; gap: 22px; padding-bottom: 56px; }
.list-head .title { font-size: clamp(40px, 6vw, 84px); }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 120px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border: 1px solid var(--hair); border-radius: 20px; background: rgba(255, 255, 255, 0.55);
  color: var(--ink); transition: transform .5s var(--ease), border-color .3s ease, box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--hair-2); box-shadow: 0 24px 50px -30px rgba(11, 14, 17, .35); color: var(--ink); }
.post-card.latest { grid-column: 1 / -1; padding: clamp(30px, 4vw, 52px); background: var(--night); border-color: var(--night); color: #f4f6f7; }
.post-card.latest:hover { color: #f4f6f7; }
.post-card.latest p { color: #9aa3aa; }
.post-card.latest h2 { font-size: clamp(26px, 3.2vw, 42px); max-width: 900px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.post-meta .cat { color: var(--accent); }
.post-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2vw, 26px); line-height: 1.18; letter-spacing: -0.025em; }
.post-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.post-go { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; }
.post-go .arr { transition: transform .3s var(--ease); }
.post-card:hover .post-go .arr { transform: translateX(3px); }

/* ---------- article ---------- */
.article .wrap { max-width: 760px; }
.article-head { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--hair); }
.back { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.back:hover { color: var(--ink) !important; }
.article-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.article-dek { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

.article-body { padding-top: 40px; font-size: 17.5px; line-height: 1.78; color: #20262c; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-top: 2em; }
.article-body h3 { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); margin-top: 1.6em; }
.article-body p { margin-bottom: 0; }
.article-body h2 + *, .article-body h3 + * { margin-top: .7em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 0; }
.article-body li + li { margin-top: .45em; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body a:hover { color: var(--accent); }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1.45; color: var(--ink); }
.article-body blockquote p { margin: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--hair); }
.article-body code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: var(--night); color: #e9edf0; padding: 18px 20px; border-radius: 14px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.article-body th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.article-body hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em 0; }

.article-sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 14px; }
.article-sources ol { margin: 0; padding-left: 1.3em; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.article-sources a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-sources a:hover { color: var(--accent); }

.article-cta { margin-top: 56px; margin-bottom: 120px; padding: 32px !important; border-radius: 20px; background: var(--night); color: #f4f6f7; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article .article-cta { max-width: 760px; }
.article-cta h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.article-cta p { font-size: 14.5px; color: #9aa3aa; margin-top: 6px; max-width: 420px; }
.article-cta .hbtn-dark { background: #f4f6f7; color: var(--ink); }
.article-cta .hbtn-dark:hover { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .page main { padding-top: 132px; }
  .post-list { grid-template-columns: 1fr; }
  .post-card { padding: 24px; }
  .article-body { font-size: 16.5px; }
  .article-dek { font-size: 17px; }
  .article-cta { margin-left: 16px; margin-right: 16px; }
}
