:root {
  color-scheme: light;

  --ink:      #0d1b22;
  --ink-soft: #2a3d45;
  --slate:    #4e6068;
  --paper:    #e8ede9;
  --paper-2:  #dbe3dd;
  --rule:     #b9c6bd;
  --tide:     #10666d;
  --brick:    #a9382a;
  --amber:    #e0a32b;

  --measure: 34rem;
  --gap: clamp(3rem, 7vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
}

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

a { color: var(--tide); text-underline-offset: 0.18em; }
a:hover { color: var(--brick); }

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

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

.prose { max-width: var(--measure); }

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

.masthead {
  padding: 1.5rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.75rem;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-right: auto;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.nav a:hover { color: var(--brick); border-bottom-color: currentColor; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brick); }

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.casenum {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* ---------- hero ---------- */

.hero { padding: var(--gap) 0 0; }

.hero-lede { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.evidence {
  margin: 0;
}

.shot { position: relative; line-height: 0; }

.locator {
  position: absolute;
  left: 31.5%;
  top: 35.5%;
  width: 21%;
  height: 9.5%;
  border: 1px solid var(--amber);
  box-shadow: 0 0 0 1px rgba(13, 27, 34, 0.45);
}

.locator-label {
  position: absolute;
  left: 31.5%;
  top: calc(35.5% + 9.5% + 0.45rem);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 1px 2px rgba(13, 27, 34, 0.8);
}

.evidence img {
  width: 100%;
  border: 1px solid var(--rule);
}

.evidence figcaption {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 50rem) {
  .evidence figcaption { grid-template-columns: minmax(0, 30rem) minmax(0, 20rem); }
}

.caption-quote {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

.caption-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 21ch;
}

.standfirst {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
}

.btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }

.btn-note {
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ---------- sections ---------- */

section { padding: var(--gap) 0 0; }

h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.1875rem;
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

.statute {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9375rem;
  background: var(--paper-2);
  border-left: 3px solid var(--brick);
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
  max-width: var(--measure);
}

/* ---------- the record ---------- */

.record {
  border-top: 1px solid var(--ink);
  margin-top: 1.5rem;
}

.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 44rem) {
  .entry {
    grid-template-columns: 9.5rem 7.5rem 1fr;
    align-items: baseline;
  }
}

.entry-when,
.entry-src {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.entry-when { color: var(--ink); }
.entry-src { color: var(--slate); }
.entry-src[data-src="affidavit"] { color: var(--brick); }
.entry-src[data-src="mine"] { color: var(--tide); }

.entry-what { margin: 0; max-width: 46ch; }

.record-key {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: var(--measure);
}

/* ---------- position list ---------- */

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.points li {
  padding: 0 0 1.1rem 1.4rem;
  position: relative;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--brick);
}

/* ---------- help ---------- */

.help {
  background: var(--ink);
  color: var(--paper);
  margin-top: var(--gap);
  padding: var(--gap) 0;
}

.help h2 { color: var(--paper); }
.help a { color: var(--amber); }
.help a:hover { color: #fff; }
.help .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.help .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.help-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 50rem) {
  .help-grid { grid-template-columns: 1.3fr 1fr; }
}

.help p { color: #cfd8d2; max-width: 42ch; }

.fund-figures {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  color: #9fb0aa;
  margin-top: 1.25rem;
}

.family .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.family img {
  border: 1px solid #2a3d45;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.family figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #9fb0aa;
}

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

footer {
  padding: 2.5rem 0 4rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

footer p { max-width: 52ch; }

footer .updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
}

/* ---------- updates ---------- */

.updates {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--ink);
}

.update {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 44rem) {
  .update { grid-template-columns: 17rem 1fr; align-items: baseline; }
}

.update dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--ink);
}

.update dd { margin: 0; max-width: 46ch; }

/* ---------- share ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3d45;
}

.share-link {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amber);
  background: none;
  border: 1px solid #354b54;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.share-link:hover { border-color: var(--amber); color: #fff; }

.share-status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: #9fb0aa;
}

/* ---------- interior pages ---------- */

.page-head { padding-top: clamp(2.5rem, 6vw, 4rem); }

.page-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}

.page-head h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-top: 2.5rem;
}

.signature {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 1.75rem;
}

/* ---------- document pages ---------- */

.pages {
  width: min(100% - 2.5rem, 62rem);
  margin: 2.5rem auto 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .pages { grid-template-columns: 1fr 1fr; align-items: start; }
}

.page { margin: 0; }

.page img {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
}

.page figcaption {
  margin-top: 0.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--slate);
}

.quote-compare {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-left: 3px solid var(--brick);
}

.quote-compare p {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.quote-compare cite {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--slate);
}


/* the vote line is deliberately quieter than the donate ask above it — it is a footnote
   on a page about a felony case, and the moment it reads like fundraising it comes out. */
.free-help {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.78;
}
