:root {
  --paper: #f4f6f8;
  --ink: #1c2638;
  --muted: #5a6475;
  --rule: #d3dae2;
  --laurel: #2e6a4f;
  /* A video's screen stays dark in either scheme, as a screen does. */
  --screen: #1c2638;
  --on-screen: #e6eaf0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a24;
    --ink: #e6eaf0;
    --muted: #a3adbd;
    --rule: #2e3746;
    --laurel: #7cc4a0;
    --screen: #0d1219;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1rem 4rem;
}
h1 {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
p {
  margin: 0 0 1.25rem;
}
a {
  color: var(--laurel);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--laurel);
  outline-offset: 3px;
  border-radius: 2px;
}
.lede {
  color: var(--muted);
}

/* One tap to About from every page. */
footer.site {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}

/* The home page's way on to the people. */
.next {
  font-size: 1.25rem;
}

/* People pages (rendered by the Worker). */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.source {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 0.35em;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 0 0 2.5rem;
  font-size: 1rem;
}
.filters .q {
  grid-column: 1 / -1;
}
.filters label span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.filters input,
.filters select,
.filters button {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  min-height: 2.75rem;
}
.filters button {
  background: var(--laurel);
  border-color: var(--laurel);
  color: var(--paper);
  cursor: pointer;
}
.filters :focus-visible {
  outline: 2px solid var(--laurel);
  outline-offset: 2px;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
}
.people > li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.people > li:last-child {
  border-bottom: 1px solid var(--rule);
}
.people .name {
  font-size: 1.5rem;
  line-height: 1.3;
}
.titles {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
}
.empty {
  color: var(--muted);
}
.license {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.pages {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.pages [rel="next"] {
  margin-left: auto;
}
.story {
  margin: 0 0 3.5rem;
}
.story h2 {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.meta {
  color: var(--muted);
  font-size: 1rem;
}
/* The arc: a timeline, years in the margin, the duration bridging them. */
.arc {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
}
.when {
  margin: 0;
  text-align: right;
}
.when .source {
  display: block;
  margin: 0;
}
.year {
  display: block;
  white-space: nowrap;
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.what {
  border-left: 2px solid var(--laurel);
  padding: 0 0 0 1rem;
}
.what p {
  margin: 0 0 0.75rem;
}
.what blockquote {
  margin: 0 0 0.75rem;
}
.what .label {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.35rem 0 0.25rem;
}
.span {
  margin: 0 0 0 5.5rem;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 2px dotted var(--laurel);
  color: var(--laurel);
  font-style: italic;
}
/* Beliefs: the shared list's words, each over the quotes it rests on, in their own voice. */
.beliefs {
  margin: 2.5rem 0 0;
}
.beliefs h3 {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.beliefs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.beliefs li + li {
  margin-top: 1.5rem;
}
.belief {
  font-size: 1.25rem;
}
/* A quoted passage, beliefs', section tags' and a typing's reasoning alike: in the source's own voice. */
.arc blockquote,
.beliefs blockquote,
.challenges blockquote,
.resources blockquote,
.profile blockquote {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
  font-style: italic;
}
.arc blockquote p,
.beliefs blockquote p,
.challenges blockquote p,
.resources blockquote p,
.profile blockquote p {
  margin: 0;
}
.arc blockquote .source,
.beliefs blockquote .source,
.challenges blockquote .source,
.resources blockquote .source,
.profile blockquote .source {
  font-style: normal;
}
/* Profile: who typed the person reads quieter than the type. */
.basis {
  color: var(--muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}
/* Analytics: each field a section, its shares in the margin, as the arc sets its years, over a laurel bar. */
.figures-of {
  margin: 3rem 0 0;
}
.figures-of h2 {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.figure .tag {
  font-size: 1.25rem;
}
.figures {
  list-style: none;
  margin: 0;
  padding: 0;
}
.figure {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.figure:last-child {
  border-bottom: 1px solid var(--rule);
}
.share {
  margin: 0;
  text-align: right;
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.figures meter {
  display: block;
  width: 100%;
  height: 0.375rem;
  margin: 0.5rem 0 0.375rem;
  border: 0;
  border-radius: 3px;
  background: var(--rule);
  appearance: none;
}
.figures meter::-webkit-meter-bar {
  background: var(--rule);
  border: 0;
  border-radius: 3px;
  height: 0.375rem;
}
.figures meter::-webkit-meter-optimum-value {
  background: var(--laurel);
  border-radius: 3px;
}
.figures meter::-moz-meter-bar {
  background: var(--laurel);
  border-radius: 3px;
}
.n {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
/* Challenges, resources, profile, harm and components: each kind a quiet label over its sourced lines. */
.challenges,
.resources,
.profile,
.type,
.components {
  margin: 2.5rem 0 0;
}
.challenges h3,
.resources h3,
.profile h3,
.type h3,
.components h3 {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.challenges dl,
.resources dl,
.profile dl,
.components dl {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
}
.challenges dt,
.resources dt,
.profile dt,
.components dt {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 1rem 0 0.25rem;
}
.challenges dt:first-child,
.resources dt:first-child,
.profile dt:first-child,
.components dt:first-child {
  margin-top: 0;
}
.challenges dd,
.resources dd,
.profile dd,
.components dd {
  margin: 0 0 0.5rem;
}
/* A jump back up the story, not a tag: ink with a dotted line, so it never reads as a link to a list. */
.up {
  color: inherit;
  text-decoration-style: dotted;
}
/* Where that jump lands: the key people label lit, clear of the viewport's edge. */
.resources dt:target {
  color: var(--laurel);
  scroll-margin-top: 2rem;
}

/* The way from a story to comparing it, quiet under its components. */
.compare {
  font-size: 1rem;
  margin: 1rem 0 0;
}
/* The list while picking a second story: the first named above, its titles become the picks. */
.picking {
  font-size: 1rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--laurel);
  margin: 0 0 2rem;
}
.picking a + a {
  margin-left: 0.5rem;
}
/* Two stories side by side: one column each, every component a quiet label across both. */
.compared {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1rem;
}
.compared thead th {
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  padding: 0 1rem 0.75rem 0;
}
.compared thead a {
  display: block;
  font-size: 1.25rem;
  line-height: 1.3;
}
.compared thead span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}
.compared tbody th {
  text-align: left;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--rule);
}
.compared td {
  vertical-align: top;
  padding: 0 1rem 0 0.75rem;
  border-left: 2px solid var(--rule);
  overflow-wrap: anywhere;
}
.compared td + td {
  padding-right: 0;
}
.compared td p {
  margin: 0 0 0.5rem;
}
.compared .none {
  color: var(--muted);
  font-style: italic;
}
.compared td .source {
  white-space: normal;
}
/* Harm to others: the verdict in a few words, then what it rests on, quieter. */
.verdict {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.verdict.bad a {
  color: var(--ink);
}
.type ul {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
  list-style: none;
}
.type ul li {
  margin: 0 0 0.5rem;
}
.type .read {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

/* About (rendered by the Worker). */
.about h2 {
  font-size: 1.375rem;
  font-weight: 400;
  margin: 2.5rem 0 0.75rem;
}
.about-sources {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}
.about .about-sources li {
  margin-bottom: 0.5rem;
}

/* The message box: a plain POST form, so it sends with no JavaScript of ours. */
.message {
  display: grid;
  gap: 1.25rem;
  font-size: 1rem;
}
.message fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.message legend,
.message label > span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  padding: 0;
}
.message fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.message input[type="radio"] {
  accent-color: var(--laurel);
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
}
.message textarea,
.message input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  min-height: 2.75rem;
}
.message textarea {
  resize: vertical;
}
.message button {
  justify-self: start;
  font: inherit;
  color: var(--paper);
  background: var(--laurel);
  border: 1px solid var(--laurel);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.message :focus-visible {
  outline: 2px solid var(--laurel);
  outline-offset: 2px;
}
.message-error {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--laurel);
  background: color-mix(in srgb, var(--laurel) 8%, var(--paper));
}

/* A person's one video: a 16:9 frame holding its title until tapped, then the player in
   the same box, so nothing jumps; nothing is loaded from YouTube before that. */
.video {
  margin: 0 0 3rem;
}
.video-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  aspect-ratio: 16 / 9;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--screen);
  color: var(--on-screen);
  text-decoration: none;
  overflow: hidden;
}
.video-play {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--laurel);
  transition: transform 0.15s ease-out;
}
.video-frame:hover .video-play {
  transform: scale(1.06);
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--screen);
  transform: translate(-50%, -50%);
}
.video-title {
  font-size: 1.125rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 0.875rem;
  opacity: 0.75;
}
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: var(--screen);
}
.video figcaption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (prefers-reduced-motion: reduce) {
  .video-play {
    transition: none;
  }
}
