/* Standalone stylesheet for pre-rendered content pages (Insights + trust pages).
 * Self-contained on purpose: these pages must render fully without the SPA
 * bundle, so they don't depend on index.css or any hashed asset. */

:root {
  /* Same press as the feed: warm paper, warm ink, a brick second colour. */
  --sp-purple: #7c2d12;
  --sp-purple-dark: #5c1f0c;
  --sp-bg: #f4f1e8;
  --sp-surface: #f4f1e8;
  --sp-border: #d6cfc0;
  --sp-text: #1c1917;
  --sp-muted: #6b635a;
  --sp-accent-soft: #e6dfd0;
  --sp-shadow: none;
  --sp-measure: 40rem;
  --sp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
              Georgia, "Times New Roman", serif;
  --sp-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sp-purple: #c4703f;
    --sp-purple-dark: #d48a5f;
    --sp-bg: #14110e;
    --sp-surface: #14110e;
    --sp-border: #332c24;
    --sp-text: #ece5d8;
    --sp-muted: #938a7c;
    --sp-accent-soft: #241d17;
    --sp-shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.sp {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: var(--sp-serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sp-surface);
  color: var(--sp-text);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.sp-skip:focus {
  left: 0;
}

a {
  color: var(--sp-purple);
}

a:hover {
  color: var(--sp-purple-dark);
}

/* ------------------------------------------------------------------ header */

.sp-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sp-text);
  text-decoration: none;
}

.sp-brand__mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--sp-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.sp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.sp-nav a {
  color: var(--sp-muted);
  text-decoration: none;
}

.sp-nav a:hover,
.sp-nav a[aria-current="page"] {
  color: var(--sp-purple);
}

/* -------------------------------------------------------------------- main */

.sp-main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.sp-article {
  max-width: var(--sp-measure);
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  box-shadow: var(--sp-shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin: 0 auto;
}

.sp-article--index {
  max-width: 60rem;
}

.sp-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sp-purple);
}

.sp-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.sp-article h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sp-dek {
  margin: 0 0 1.1rem;
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--sp-muted);
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--sp-muted);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--sp-border);
}

.sp-meta__author {
  font-weight: 700;
  color: var(--sp-text);
}

.sp-updated {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--sp-muted);
}

.sp-section {
  margin-top: 2rem;
}

.sp-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sp-section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.sp-section p {
  margin: 0 0 1rem;
}

.sp-section ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.sp-section li {
  margin-bottom: 0.55rem;
}

.sp-byline-note {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sp-border);
  font-size: 0.9rem;
  color: var(--sp-muted);
}

/* ---------------------------------------------------------------- ad slots */

.sp-ad {
  margin: 2.25rem 0;
  padding: 0.75rem;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: var(--sp-bg);
}

.sp-ad__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

/* ----------------------------------------------------------- index / cards */

.sp-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.sp-card {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--sp-bg);
}

.sp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.sp-card__tags span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--sp-accent-soft);
  color: var(--sp-purple-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.sp-card h2 a {
  text-decoration: none;
  color: var(--sp-text);
}

.sp-card h2 a:hover {
  color: var(--sp-purple);
}

.sp-card__dek {
  margin: 0 0 0.7rem;
  font-size: 0.93rem;
  color: var(--sp-muted);
  line-height: 1.5;
}

.sp-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sp-muted);
}

/* -------------------------------------------------------------- related */

.sp-related {
  max-width: var(--sp-measure);
  margin: 1.75rem auto 0;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow);
}

.sp-related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.sp-related ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sp-related li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-related li:last-child {
  border-bottom: 0;
}

.sp-related__meta {
  color: var(--sp-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sp-more {
  font-weight: 700;
  text-decoration: none;
}

/* ------------------------------------------------------------------ footer */

.sp-foot {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--sp-border);
  color: var(--sp-muted);
  font-size: 0.88rem;
}

.sp-foot__lede {
  max-width: 46rem;
  margin: 0 0 1rem;
}

.sp-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.sp-foot__nav a {
  text-decoration: none;
}

.sp-foot__copy {
  margin: 0;
  font-size: 0.83rem;
}

@media (max-width: 30rem) {
  body.sp {
    font-size: 16px;
  }

  .sp-article,
  .sp-related {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}


/* The trust pages share the front page's press: a nameplate set in small caps
   between rules, kickers in sans, everything else in the serif. */
.sp-brand__name {
  font-family: var(--sp-serif);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.sp-brand__mark {
  font-family: var(--sp-serif);
  border-radius: 0;
}
.sp-head {
  border-bottom: 2px solid var(--sp-text);
  padding-bottom: 10px;
}
.sp-nav a {
  font-family: var(--sp-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sp-foot { border-top: 1px solid var(--sp-border); }
.sp-foot__nav a, .sp-foot__copy { font-family: var(--sp-sans); font-size: 11px; letter-spacing: 0.06em; }
.sp-eyebrow {
  font-family: var(--sp-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
