/* Spin Prospector — settings, elements and shared primitives */

:root {
  --paper: #f2f5f7;
  --paper-hi: #ffffff;
  --slate-100: #e7ecf0;
  --slate-200: #d7dfe5;
  --slate-300: #bcc8d0;
  --slate-400: #8f9ea8;
  --ink: #0f1719;
  --ink-70: #435158;
  --teal: #0c4a48;
  --teal-deep: #063533;
  --teal-tint: #e0eae8;
  --yellow: #ffe500;
  --yellow-deep: #e6ce00;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --pad: 20px;
  --measure: 68ch;
  --band: clamp(56px, 8vw, 104px);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (min-width: 720px) {
  :root { --pad: 40px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 300;
  text-wrap: balance;
}

p, ul, ol, dl, figure, table {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

strong { font-weight: 700; }
em { font-style: italic; }

/* ---- layout primitives ---- */

.wrap {
  width: min(1260px, 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.wrap--narrow { width: min(880px, 100% - (var(--pad) * 2)); }

.flow > * + * { margin-top: var(--s5); }
.flow-tight > * + * { margin-top: var(--s3); }

.prose { max-width: var(--measure); }
.prose p, .prose li { font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--s5); }
.prose h2 { margin-top: var(--s8); }
.prose h3 { margin-top: var(--s7); }

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: 62ch;
}

.muted { color: var(--ink-70); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-hi);
  padding: var(--s3) var(--s5);
  font-weight: 600;
}

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

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

/* ---- type scale, weight-driven ---- */

.display {
  font-size: clamp(2.5rem, 7.4vw, 5.75rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.display b { font-weight: 900; letter-spacing: -0.035em; }

.title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.title b { font-weight: 800; }

.subtitle {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.18;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s5);
}

.eyebrow svg { flex: none; }

.marker { fill: var(--yellow); stroke: var(--teal); stroke-width: 1.5; }

/* ---- links ---- */

a { color: var(--teal); }

.link,
.prose a,
.rail-box a,
.foot-nav a,
.faq-a a,
.note-strip a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted currentColor;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.28s ease;
}

.link:hover,
.prose a:hover,
.rail-box a:hover,
.foot-nav a:hover,
.faq-a a:hover,
.note-strip a:hover {
  background-size: 100% 3px;
}

/* ---- calls to action: underline text links, never buttons ---- */

.cta {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 4px solid var(--yellow);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta:hover { border-bottom-color: var(--teal); }

.cta--pale {
  color: var(--paper-hi);
  border-bottom-color: var(--yellow);
}

.cta--pale:hover { border-bottom-color: var(--paper-hi); }

.cta-sub {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px dashed var(--slate-400);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-sub:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ---- badges ---- */

.badge {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 4px 8px;
}

.badge--yellow { border-color: var(--ink); background: var(--yellow); color: var(--ink); }
.badge--pale { border-color: rgba(255, 255, 255, 0.55); color: var(--paper-hi); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ---- small print ---- */

.fineprint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.fineprint--pale { color: rgba(255, 255, 255, 0.78); }

/* ---- figures ---- */

.fig {
  border: 1px dashed var(--slate-300);
  background: var(--paper-hi);
  padding: var(--s4);
}

.fig img { width: 100%; }

.fig figcaption {
  margin-top: var(--s3);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-70);
  border-top: 1px dotted var(--slate-300);
  padding-top: var(--s3);
}

/* ---- lists ---- */

.ticks {
  list-style: none;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: var(--s5);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  border: 1px solid var(--teal);
  transform: rotate(45deg);
}

.plain-list {
  list-style: none;
  padding: 0;
}

.dl-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.dl-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 11ch) minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px dotted var(--slate-300);
}

.dl-facts dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-70);
  padding-top: 0.28em;
}

.dl-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
