/* ============================================================
   Caret — long-form pages (guides and comparisons)
   Loaded after styles.css on every page that is not the landing page. The
   landing page is an argument told in sections; these are documents, so they
   get one reading column, a measure that suits prose, and nothing that moves.
   ============================================================ */

.page { background: var(--paper); }

/* the shared nav is transparent over the landing hero; there is no hero here,
   so it starts frosted */
.page .nav::before { opacity: 1; }

/* ---------- header ---------- */
.art-head {
  max-width: 820px; margin: 0 auto; padding: 72px 26px 34px;
}
.crumbs { font-size: 13.5px; color: var(--muted-2); margin-bottom: 26px; }
.crumbs a { color: var(--muted); border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--brand-deep); border-color: var(--brand-deep); }
.art-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.02em;
  text-wrap: balance;
}
.art-lede {
  margin-top: 20px; font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.6;
  color: var(--ink-2); max-width: 62ch;
}
.art-meta { margin-top: 22px; font-size: 13.5px; color: var(--muted-2); }

/* ---------- body ---------- */
.prose {
  max-width: 820px; margin: 0 auto; padding: 8px 26px 40px;
  font-size: 17.5px; line-height: 1.68; color: var(--ink-2);
}
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(26px, 2.8vw, 34px); line-height: 1.14; letter-spacing: -.018em;
  margin-top: 64px; scroll-margin-top: 90px;
}
.prose h3 {
  font-size: 18.5px; font-weight: 650; color: var(--ink); letter-spacing: -.01em;
  margin-top: 38px; scroll-margin-top: 90px;
}
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose a { color: var(--brand-deep); border-bottom: 1px solid rgba(0,102,219,.3); }
.prose a:hover { border-bottom-color: var(--brand-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted-2); }
.prose :not(pre) > code {
  font-size: .86em; background: rgba(22,35,61,.07); padding: 1px 6px; border-radius: 5px; color: var(--ink);
}
.prose pre {
  background: var(--shot-bg); color: #e7e9f0; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.prose pre code { font-family: var(--mono); }
.prose pre .c { color: rgba(255,255,255,.42); }

/* in-page contents: short, plain, at the top where a scanner looks for it */
.toc {
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  padding: 20px 24px; font-size: 15.5px;
}
.toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; font-weight: 600; }
.toc ol { padding-left: 20px; }
.toc li + li { margin-top: 4px; }
.toc a { color: var(--ink-2); border: 0; }
.toc a:hover { color: var(--brand-deep); }

/* a fact that needs to be seen, not a decoration */
.callout {
  border-left: 3px solid var(--brand); background: rgba(11,122,255,.05);
  border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 16.5px;
}
.callout.plain { border-left-color: var(--muted-2); background: var(--paper-3); }

/* tables: comparisons read across, so on a phone they scroll rather than crush */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.prose thead th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; background: var(--paper-3); }
.prose tbody th { color: var(--ink); font-weight: 600; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose td.yes { color: var(--ink); }
.prose td.dim { color: var(--muted); }

.prose figure { margin-top: 32px; }
.prose figure .shot { box-shadow: 0 30px 70px -36px rgba(20,24,40,.45); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* questions: same shape as the landing page's, one column in a document */
.prose .faq { list-style: none; padding: 0; display: grid; gap: 2px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.prose .faq li { background: var(--paper-2); padding: 22px 24px; margin: 0; }
.prose .faq h3 { margin: 0 0 8px; font-size: 16.5px; }
.prose .faq p { font-size: 16px; color: var(--muted); }

.fine { font-size: 14px; color: var(--muted-2); }

/* ---------- the close: one place to act ---------- */
.art-cta {
  max-width: 820px; margin: 30px auto 0; padding: 0 26px;
}
.art-cta-card {
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2);
  padding: 38px 36px; box-shadow: 0 30px 70px -48px rgba(22,35,61,.35);
}
.art-cta-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.018em; line-height: 1.12; }
.art-cta-card p { margin-top: 12px; color: var(--muted); font-size: 16.5px; max-width: 54ch; }
.art-cta-card .hero-cta { justify-content: flex-start; margin: 24px 0 0; }

.related { max-width: 820px; margin: 0 auto; padding: 56px 26px 40px; }
.related h2 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 16px; }
.related ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.related a {
  display: block; height: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  padding: 16px 18px; transition: border-color .16s, transform .16s;
}
.related a:hover { border-color: var(--ink); transform: translateY(-2px); }
.related b { display: block; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.related span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .art-head { padding: 44px 22px 26px; }
  .prose { padding: 4px 22px 32px; font-size: 17px; }
  .art-cta, .related { padding-left: 22px; padding-right: 22px; }
  .art-cta-card { padding: 30px 22px; }
  .related ul { grid-template-columns: 1fr; }
}

/* ---------- header image ---------- */
.art-banner { max-width: 820px; margin: 0 auto 36px; padding: 0 26px; }
.art-banner img {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 70px -44px rgba(22,35,61,.45);
}
@media (max-width: 860px) { .art-banner { padding: 0 22px; } }
