/* The Working Model — analysis section styles
   Palette locked to the landing page. Do not drift.
   bg #0E1017 · teal #1D9E75 · cyan #22D3EE · amber #F59E0B · text #F0F1F5 */

:root {
  --bg:        #0E1017;
  --bg-raised: #141821;
  --rule:      #222835;
  --teal:      #1D9E75;
  --cyan:      #22D3EE;
  --amber:     #F59E0B;
  --text:      #F0F1F5;
  --muted:     #8C92A0;
  --faint:     #5C6573;

  --ui:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --prose: "Newsreader", Georgia, "Times New Roman", serif;

  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--prose);
  font-size: 1.1875rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-bottom: 4rem;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 52rem;
}
.wordmark {
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.wordmark:hover { color: var(--text); }
.twm-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.masthead nav {
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  gap: 1.5rem;
}
.masthead nav a { color: var(--faint); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--text); }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--ui);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.25rem;
}

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

.index-head { margin-bottom: 3.5rem; }
.index-head h1 {
  font-family: var(--ui);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.index-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
  max-width: 34rem;
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }

.post-link {
  display: block;
  padding: 2rem 0;
  text-decoration: none;
  color: inherit;
}
.post-link:hover { color: inherit; }
.post-link .meta {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .75rem;
}
.post-link .meta .seg { color: var(--amber); }
.post-link h2 {
  font-family: var(--ui);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 .625rem;
  transition: color .15s ease;
}
.post-link:hover h2 { color: var(--cyan); }
.post-link p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- article ---------- */

.article-head { margin-bottom: 3rem; }
.article-head h1 {
  font-family: var(--ui);
  font-size: clamp(2rem, 6.5vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
}
.byline {
  font-family: var(--ui);
  font-size: .8125rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.byline .sep { color: var(--rule); }

.standfirst {
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

article p { margin: 0 0 1.5rem; }


hr.break {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 3rem 0;
}

.pull {
  font-family: var(--ui);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--text);
  border-left: 2px solid var(--teal);
  padding-left: 1.25rem;
  margin: 2.5rem 0;
}

/* ---------- the signature: the coefficient table ---------- */

.coef {
  font-family: var(--ui);
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.coef-cap {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.coef-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .625rem 0;
  font-size: .9375rem;
  border-bottom: 1px solid var(--rule);
}
.coef-row:last-of-type { border-bottom: 0; }
.coef-row .label { color: var(--muted); }
.coef-row .val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
.coef-row .val .star { color: var(--teal); }
.coef-row.null-row .label,
.coef-row.null-row .val { color: var(--text); font-weight: 500; }
.coef-row.null-row { background: rgba(245,158,11,.06); margin-inline: -1.5rem; padding-inline: 1.5rem; }
.coef-row.null-row .val .ns {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: .04em;
}
.coef-note {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--faint);
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ---------- waitlist ---------- */

.waitlist {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 2rem;
  margin: 4rem 0 0;
  font-family: var(--ui);
}
.waitlist h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .625rem;
}
.waitlist p {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-family: var(--ui);
}
.waitlist .fields { display: flex; flex-wrap: wrap; gap: .75rem; }
.waitlist input[type=email] {
  flex: 1 1 16rem;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  padding: .75rem .875rem;
  border-radius: 2px;
}
.waitlist input[type=email]::placeholder { color: var(--faint); }
.waitlist input[type=email]:focus { border-color: var(--teal); outline: none; }
.waitlist button {
  background: var(--teal);
  color: #06120D;
  border: 0;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  padding: .75rem 1.375rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease;
}
.waitlist button:hover { background: #23B686; }
.waitlist .hp { position: absolute; left: -9999px; }
.waitlist .status {
  font-size: .875rem;
  margin: 1rem 0 0;
  min-height: 1.25rem;
  color: var(--teal);
}
.waitlist .status[data-state="error"] { color: var(--amber); }

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

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 2rem 0 4rem;
  font-family: var(--ui);
  font-size: .8125rem;
  color: var(--faint);
}
.site-footer .wrap { max-width: 52rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.source-note {
  font-family: var(--ui);
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--faint);
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .masthead { margin-bottom: 2.5rem; }
  .coef-row { flex-direction: column; gap: .125rem; }
  .coef-row.null-row { margin-inline: -1rem; padding-inline: 1rem; }
  .coef { padding: 1.25rem; }
  .waitlist { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
