/* Articles (list and article page) and the about page. On top of site.css. */

/* ───────── Page head (as on the courses list) ───────── */
.page-head { padding-top: calc(var(--header) + 72px); padding-bottom: 8px; }
.page-h { font-family: var(--display); font-size: clamp(52px, 7.4vw, 88px); line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 19px; margin-top: 8px; max-width: 560px; }

/* ───────── List ───────── */
.art-list { padding-top: 48px; padding-bottom: 96px; }
.art-list ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.art-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
  padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease);
}
a.art-row:hover { padding-inline-start: 8px; }
.art-title { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.5; }
.art-when { font-size: 15px; color: var(--muted); white-space: nowrap; }
.art-sum { grid-column: 1 / -1; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 640px; }
.art-row.soon .art-title { color: var(--muted); }

/* ───────── Article ───────── */
.article { padding-bottom: 72px; }
.art-head { max-width: 760px; padding-top: calc(var(--header) + 56px); }
.art-back { display: inline-block; font-size: 15px; color: var(--muted); text-decoration: none; margin-bottom: 26px; transition: color .2s; }
.art-back:hover { color: #fff; }
.art-h { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.35; text-wrap: balance; }
.art-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.art-lead { margin-top: 18px; font-size: 21px; line-height: 1.85; color: rgba(255, 255, 255, .84); }
.art-cover { max-width: 900px; margin: 44px auto 0; }
.art-cover img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(1, 20, 32, .7); }
.art-end { max-width: 760px; margin-top: 56px; font-size: 16px; }

/* Body text: Thmanyah Serif Text at a comfortable measure */
.prose { max-width: 760px; margin-top: 44px; font-family: var(--serif); font-size: 20px; line-height: 2; color: rgba(255, 255, 255, .92); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: #fff; line-height: 1.5; scroll-margin-top: calc(var(--header) + 16px); }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose h4 { font-size: 20px; margin-top: 1.3em; }
.prose a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .45); }
.prose a:hover { text-decoration-color: #fff; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin-inline: 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--accent); color: #fff; font-family: var(--display); font-size: 1.12em; line-height: 1.85; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.2em; }
.prose img { border-radius: 16px; margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 10px; font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--muted); text-align: center; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82em; direction: ltr; unicode-bidi: isolate; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.7; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; line-height: 1.7; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { color: var(--muted); font-weight: 500; }

/* ───────── About: coming soon (as mockups/about.html) ───────── */
.about-soon { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--header) 24px 40px; }
.about-soon h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 72px); line-height: 1.3; margin: 0 0 10px; }
.about-soon p { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.about-soon .art-back { margin: 0; color: #fff; text-decoration: underline; text-underline-offset: 8px; text-decoration-color: rgba(255, 255, 255, .3); }

@media (max-width: 760px) {
  .page-head { padding-top: calc(var(--header) + 40px); }
  .art-head { padding-top: calc(var(--header) + 32px); }
  .art-row { grid-template-columns: minmax(0, 1fr); }
  .art-when { grid-row: 2; }
  .prose { font-size: 18px; line-height: 1.95; }
  .art-cover { margin-top: 32px; }
  .art-cover img { border-radius: 14px; }
}
