/* ============================================================
   Dehumain — Whitepaper page
   Scoped under .wp so nothing leaks into the rest of the docs.
   Palette matches the main site: near-black #0a0a0a,
   deep purple #7c3aed / #a855f7, gold #ead9af for sovereigns.
   ============================================================ */

.wp {
  --wp-ink: #0a0a0a;
  --wp-violet: #7c3aed;
  --wp-violet-lt: #a855f7;
  --wp-gold: #ead9af;
  --wp-rule: color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  --wp-muted: color-mix(in srgb, var(--md-default-fg-color) 62%, transparent);
  max-width: 46rem;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.wp-hero {
  text-align: center;
  padding: 1rem 0 3rem;
}

.wp-hero h1,
.wp-title {
  font-size: clamp(2.6rem, 9vw, 5.25rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  margin: 0 0 1.25rem;
  text-indent: 0.22em; /* balance the trailing letter-space */
  background: linear-gradient(120deg, var(--md-default-fg-color) 30%, var(--wp-violet-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wp-tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.12em;
  font-style: italic;
  opacity: 0.8;
  margin: 0;
}

.wp-meta {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}

.wp-hero-rule {
  width: 4rem;
  height: 2px;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, var(--wp-violet), transparent);
}

.wp-hero-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--wp-muted);
  font-style: italic;
  margin: 0 auto;
  max-width: 34rem;
}

/* ---------- Contents ---------- */

.wp-contents {
  border: 1px solid var(--wp-rule);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 3rem;
  background: color-mix(in srgb, var(--md-default-fg-color) 3%, transparent);
}

.wp-contents-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}

.wp-contents ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.wp-contents li { margin: 0.3rem 0; break-inside: avoid; }
.wp-contents a { text-decoration: none; border-bottom: 1px solid transparent; }
.wp-contents a:hover { border-bottom-color: var(--wp-violet); }

@media (max-width: 640px) { .wp-contents ol { columns: 1; } }

/* ---------- Sections ---------- */

.wp-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--wp-rule);
  scroll-margin-top: 5rem;
}

.wp-section:first-of-type { border-top: none; }

.wp-section > h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.wp-section > h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--wp-violet);
}

.wp-section p { line-height: 1.8; }

/* Standfirst — the loud opener line inside a section */
.wp-standfirst {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 1.75rem 0;
}

/* Pull-quote — centred emphasis line */
.wp-pull {
  text-align: center;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.5;
  font-weight: 600;
  margin: 2.5rem auto;
  max-width: 30rem;
  color: var(--md-default-fg-color);
}

.wp-pull--strong {
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  background: linear-gradient(100deg, var(--md-default-fg-color), var(--wp-violet-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Block quote card */
.wp-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--wp-violet);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--wp-violet) 12%, transparent),
    transparent 70%);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.6;
  font-style: italic;
}

.wp-quote p { margin: 0; }

/* ---------- Token grid ---------- */

.wp-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.85rem;
  margin: 2.5rem 0;
}

.wp-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--wp-rule);
  border-radius: 14px;
  background: radial-gradient(ellipse at top,
    color-mix(in srgb, var(--wp-violet) 10%, transparent), transparent 75%);
  transition: border-color 200ms ease, transform 200ms ease;
}

.wp-token:hover {
  border-color: var(--wp-violet);
  transform: translateY(-3px);
}

.wp-token-nft {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.wp-token-sym {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--wp-gold);
}

.wp-token--ellipsis {
  background: none;
  opacity: 0.35;
  border-style: dashed;
}

/* ---------- "Against" list ---------- */

.wp-against {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--wp-rule);
  border-radius: 14px;
  background: color-mix(in srgb, var(--md-default-fg-color) 3%, transparent);
}

.wp-against > p:first-child { margin-top: 0; }
.wp-against > p:last-child { margin-bottom: 0; }
.wp-against ul { padding-left: 1.1rem; }
.wp-against li { margin: 0.6rem 0; line-height: 1.75; }

/* ---------- Sovereign cards ---------- */

.wp-sovereigns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.wp-sovereign {
  padding: 1.75rem;
  border: 1px solid var(--wp-rule);
  border-radius: 18px;
  background: radial-gradient(ellipse at top,
    color-mix(in srgb, var(--wp-violet) 9%, transparent), transparent 80%);
}

.wp-sovereign-mark {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wp-violet-lt);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.wp-sovereign-label {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.wp-sovereign h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}

.wp-sovereign p {
  font-size: 0.94rem;
  line-height: 1.75;
}

.wp-sovereign-close {
  margin-bottom: 0 !important;
  font-weight: 600;
  color: var(--wp-muted);
}

.wp-gold { color: var(--wp-gold); }

/* ---------- Lineage strip ---------- */

.wp-lineage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2.5rem 0;
}

.wp-lineage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--wp-rule);
  border-radius: 999px;
  text-align: center;
}

.wp-lineage-node--child {
  border-color: var(--wp-violet);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp-violet) 35%, transparent),
              0 0 24px color-mix(in srgb, var(--wp-violet) 22%, transparent);
}

.wp-lineage-mark {
  font-size: 1.05rem;
  font-weight: 700;
}

.wp-lineage-count {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.wp-lineage-join {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wp-violet-lt);
}

/* ---------- Disclaimer ---------- */

.wp-disclaimer {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed color-mix(in srgb, var(--wp-gold) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--wp-gold) 6%, transparent);
  font-size: 0.92rem;
  line-height: 1.7;
}

.wp-disclaimer p { margin: 0; }

/* ---------- Final section ---------- */

.wp-section--final {
  border-top: 1px solid var(--wp-rule);
  padding-bottom: 1rem;
}

.wp-cta-line {
  margin-top: 2.5rem;
  text-align: center;
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--wp-gold), var(--wp-violet-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Colophon ---------- */

.wp-colophon {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wp-rule);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.wp-colophon p { margin: 0.25rem 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .wp-token { transition: none; }
  .wp-token:hover { transform: none; }
}
