/* Shared styles for metrify.fit/articles. Mirrors the tokens in ../index.html so the
   articles read as part of the same site, with a narrower measure for long-form text. */
:root {
  --brand:        #FF7A00;
  --brand-soft:   rgba(255, 122, 0, 0.12);
  --bg:           #141414;
  --bg-raised:    #1f1f1f;
  --bg-card:      #242424;
  --border:       #333333;
  --text:         #f2f2f2;
  --text-dim:     #ababab;
  --text-faint:   #6e6e6e;
  --green:        #30D158;
  --radius:       16px;
  --font-display: "Archivo Black", "Arial Black", "Segoe UI", sans-serif;
  --font-body:    "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============ Nav (matches home) ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.15rem; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); }
/* Below 720px, drop the in-page anchors (they only jump around the home page) but keep
   FAQ and Articles, which are separate destinations with no other route in on mobile. */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a.anchor-link { display: none; }
}
@media (max-width: 460px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { font-size: 0.85rem; }
  .nav-links .btn { padding: 8px 14px; font-size: 0.82rem; }
  .logo { font-size: 1rem; }
  .logo-mark { height: 28px; }
}

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #141414 !important; }
.btn-primary:hover { transform: translateY(-1px); background: #ff8c1f; text-decoration: none; }
.btn-ghost { border: 1px solid var(--border); color: var(--text) !important; }
.btn-ghost:hover { border-color: var(--text-faint); text-decoration: none; }
.nav-links .btn { padding: 9px 20px; font-size: 0.9rem; }

/* ============ Article layout ============ */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 0 24px; }

.article-head { padding: 64px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
@media (max-width: 600px) { .article-head { padding: 40px 0 28px; margin-bottom: 30px; } }

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  color: var(--brand); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow a { color: var(--brand); }

h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.standfirst {
  font-size: 1.15rem; color: var(--text-dim); font-style: italic;
  line-height: 1.5; margin-bottom: 22px;
}
.byline { font-size: 0.85rem; color: var(--text-faint); }

/* Body typography */
article h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  letter-spacing: -0.01em; line-height: 1.25;
  margin: 44px 0 16px;
}
article h3 {
  font-size: 1.08rem; font-weight: 700;
  margin: 32px 0 10px;
}
article p { margin-bottom: 18px; color: #e2e2e2; }
article strong { color: var(--text); font-weight: 700; }
article ul, article ol { margin: 0 0 20px 22px; color: #e2e2e2; }
article li { margin-bottom: 9px; }

blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 20px; margin: 24px 0;
  color: var(--text-dim); font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

/* Dating / correction notice */
.notice {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  border-radius: 8px; padding: 16px 18px; margin: 26px 0;
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.55;
}
.notice p { margin: 0; color: inherit; font-size: inherit; }

/* Key-fact summary block, written to be quotable out of context */
.summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin: 44px 0 8px;
}
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary p:last-child { margin-bottom: 0; }

/* Tables: must scroll inside themselves, never the page */
.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  color: var(--text); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--text-faint);
}
tbody td { color: var(--text-dim); }
tbody td:first-child { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
.yes { color: var(--green); font-weight: 600; }

/* End-of-article CTA */
.article-cta {
  margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border);
  text-align: center;
}
.article-cta h2 { font-size: 1.35rem; margin: 0 0 10px; }
.article-cta p { color: var(--text-dim); margin-bottom: 22px; }

.more-reading { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.more-reading h2 { font-size: 1.05rem; margin: 0 0 14px; font-family: var(--font-body); font-weight: 700; }
.more-reading ul { list-style: none; margin: 0; }
.more-reading li { margin-bottom: 10px; }

/* ============ Index page ============ */
.index-head { padding: 72px 0 12px; text-align: center; }
@media (max-width: 600px) { .index-head { padding: 44px 0 8px; } }
.index-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 14px; }
.index-head p { color: var(--text-dim); font-size: 1.08rem; max-width: 34em; margin: 0 auto; }

.card-list { padding: 40px 0 72px; display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px;
  transition: border-color .15s ease, transform .15s ease;
  color: inherit;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.card .kicker {
  color: var(--brand); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 10px;
}
.card h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.3rem;
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text);
}
.card p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.card .date { display: block; margin-top: 14px; font-size: 0.8rem; color: var(--text-faint); }
@media (max-width: 600px) { .card { padding: 22px; } }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border); padding: 40px 0; margin-top: 72px;
  color: var(--text-faint); font-size: 0.85rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
@media (max-width: 600px) {
  footer { padding: 32px 0; margin-top: 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
