/* CompoundTrust — site stylesheet
   Same tokens as the carousel kit. Dark chrome, light reading surface. */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500&display=swap');

:root {
  --ink: #14213A;
  --navy: #0C2D52;
  --blue: #0B5394;
  --violet: #6B4E9E;
  --violet-light: #C2A9E0;
  --mist: #EAF1F8;
  --white: #FFFFFF;

  --scene: radial-gradient(circle at 50% 50%, #0C2D52 0%, #0C2D52 60%, #14213A 100%);

  --display: 'Spectral', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 34rem;   /* ~68 characters — the reading column */
  --wide: 60rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--violet); }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.measure { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* --- Dark chrome ---------------------------------------------------------- */

.masthead {
  background: var(--scene);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.masthead__mark { width: 108px; height: 108px; display: block; margin: 0 auto 1.5rem; }

.masthead__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.masthead__tagline {
  margin-top: 0.75rem;
  color: var(--violet-light);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.masthead__positioning {
  margin: 2rem auto 0;
  max-width: 30rem;
  color: var(--mist);
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* Compact masthead for article pages */
.topbar {
  background: var(--scene);
  padding: 1.25rem 0;
}
.topbar__inner { display: flex; align-items: center; gap: 0.75rem; }
.topbar img { width: 34px; height: 34px; }
.topbar a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

main { padding: 4rem 0 5rem; }

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.25rem;
}

/* --- Field notes index ---------------------------------------------------- */

.notes { list-style: none; border-top: 1px solid rgba(20,33,58,0.14); }

.notes li { border-bottom: 1px solid rgba(20,33,58,0.14); }

.notes a {
  display: block;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
}
.notes a:hover .notes__title { color: var(--violet); }

.notes__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.notes__standfirst { margin-top: 0.4rem; color: rgba(20,33,58,0.75); }

.notes__meta {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(20,33,58,0.5);
}

/* --- Article -------------------------------------------------------------- */

.article__head { padding: 3.5rem 0 2rem; }

.article h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.article__standfirst {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(20,33,58,0.8);
}

.article__meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20,33,58,0.14);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(20,33,58,0.5);
}

.article h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 3rem 0 1rem;
  scroll-margin-top: 1.5rem;
}

.article p { margin-bottom: 1.15rem; }
.article p + p { text-indent: 0; }

.article strong { font-weight: 500; color: var(--navy); }

.article ul { margin: 0 0 1.5rem 1.1rem; }
.article li { margin-bottom: 0.5rem; }
.article li::marker { color: var(--violet); }

.pull {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
  border-left: 3px solid var(--blue);
  padding-left: 1.25rem;
  margin: 2.25rem 0;
}

.embed {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: rgba(11,83,148,0.06);
  border: 1px solid rgba(11,83,148,0.15);
  font-size: 0.9375rem;
}
.embed p { margin-bottom: 0; }

/* --- Footer --------------------------------------------------------------- */

footer {
  background: var(--scene);
  color: var(--mist);
  padding: 3rem 0;
  font-size: 0.875rem;
  text-align: center;
}
footer a { color: var(--violet-light); }
footer .tagline { font-family: var(--display); color: var(--white); margin-bottom: 0.75rem; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .masthead { padding: 3rem 0 2.5rem; }
  main { padding: 2.5rem 0 3.5rem; }
}
