/* NSR Media — blog styles.
   Standalone static pages (public/ is copied verbatim by Vite), so this file
   carries its own copy of the "Signal" dark tokens rather than importing the
   app's Tailwind build. Keep hexes in sync with tailwind.config.js → colors.nsr. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #020617;
  --ink: #0f172a;
  --titanium: #f8fafc;
  --silver: #e2e8f0;
  --slate: #cbd5e1;
  --mute: #64748b;
  --hair: rgba(148, 163, 184, 0.18);
  --blue: #3b82f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--slate);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: #60a5fa;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- header / footer ---- */
.site-head {
  border-bottom: 1px solid var(--hair);
  padding: 1.25rem 0;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 64rem;
}
.brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--titanium);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span {
  color: var(--blue);
}
.site-head nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.site-head nav a {
  color: var(--slate);
  text-decoration: none;
}
.site-head nav a:hover {
  color: var(--titanium);
}

.site-foot {
  border-top: 1px solid var(--hair);
  margin-top: 4rem;
  padding: 2.5rem 0 3.5rem;
  color: var(--mute);
  font-size: 0.9rem;
}
.site-foot .wrap {
  max-width: 64rem;
}

/* ---- article ---- */
article {
  padding: 3rem 0 1rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--titanium);
  margin: 0 0 1rem;
  text-wrap: balance;
}

h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--titanium);
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--silver);
  margin: 1.9rem 0 0.55rem;
}

p {
  margin: 0 0 1.15rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--silver);
}

.meta {
  color: var(--mute);
  font-size: 0.875rem;
  margin: 0 0 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hair);
}

ul,
ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.5rem;
}
li::marker {
  color: var(--mute);
}

strong {
  color: var(--silver);
  font-weight: 600;
}

blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--blue);
  color: var(--silver);
  font-size: 1.05rem;
}

/* ---- tables ---- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--hair);
  border-radius: 0.6rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--hair);
}
th {
  background: var(--ink);
  color: var(--titanium);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}

/* ---- callout + CTA ---- */
.callout {
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  margin: 1.9rem 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout strong {
  color: var(--titanium);
}

.cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.9rem;
  padding: 1.75rem;
  margin: 3rem 0 1rem;
}
.cta h2 {
  margin-top: 0;
  font-size: 1.35rem;
}
.cta p:last-of-type {
  margin-bottom: 1.15rem;
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.97rem;
}
.btn:hover {
  background: #2563eb;
  color: #fff;
}

/* ---- post list (hub) ---- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}
.post-list li {
  border-top: 1px solid var(--hair);
  padding: 1.6rem 0;
  margin: 0;
}
.post-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}
.post-list h2 a {
  color: var(--titanium);
  text-decoration: none;
}
.post-list h2 a:hover {
  color: var(--blue);
}
.post-list p {
  margin: 0 0 0.4rem;
}
.post-list .meta {
  border: 0;
  padding: 0;
  margin: 0;
}

/* ---- breadcrumb ---- */
.crumbs {
  font-size: 0.85rem;
  color: var(--mute);
  padding-top: 1.75rem;
}
.crumbs a {
  color: var(--mute);
}
.crumbs a:hover {
  color: var(--slate);
}
