/* Jurist Chess — black, white type, one serif: Georgia, warm and made
   for reading on screens. Android has no Georgia, so it gets
   Gelasio, drawn to the same measurements (loaded only where needed).
   No ornaments, no rules, no drop caps: the essay is the page. */

:root {
  --ground: #000000;          /* the ground: black */
  --white: #FFFFFF;
  --white-2: rgba(255, 255, 255, 0.86);
  --white-3: rgba(255, 255, 255, 0.55);
  --serif: Georgia, Gelasio, "Times New Roman", serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--white-2);
  font: 400 18px/1.75 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* ── The masthead: JURIST CHESS, spaced capitals. ── */

.mast {
  max-width: 680px;
  margin: 0 auto;
  padding: max(44px, env(safe-area-inset-top)) 24px 0;
  text-align: center;
}

.mast__name {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  letter-spacing: 0; /* set close, like the signature */
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

/* ── The essay ── */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px max(72px, env(safe-area-inset-bottom));
}

.essay__issue {
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 2;
  text-wrap: balance;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white-3);
}

.essay__title {
  margin: 30px 0 36px;
  font-weight: 400;
  font-size: clamp(21px, 4vw, 27px); /* always smaller than the masthead */
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--white);
}

/* A letter: the address, the salutation, and (below) the signature. */
.essay__to {
  margin: 44px 0 0;
  color: var(--white);
}

.essay__salutation {
  margin: 20px 0 0;
}

.essay__issue + .essay__salutation {
  margin-top: 44px;
}

.essay__signature {
  margin: 28px 0 0;
  text-align: right;
}

/* Set like a column of the period: justified, indented paragraphs, no gaps. */
.essay__body p {
  margin: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-indent: 1.6em;
}

.essay__body p:first-child {
  text-indent: 0;
}

.essay__ps {
  margin: 36px 0 0;
  font-style: italic;
  color: var(--white-3);
}

/* Copying the page takes the letter alone (1776 words), not the masthead or dateline. */
.mast,
.essay__issue {
  -webkit-user-select: none;
  user-select: none;
}

/* A place name breaks only at its commas. */
.keep {
  white-space: nowrap;
}

/* ── Earlier essays ── */

.also {
  margin-top: 64px;
  text-align: center;
}

.also a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  font-style: italic;
}

.also a span {
  margin-right: 0.9em;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-3);
}

.also a:hover {
  color: var(--white);
}

.missing {
  margin: 80px 0;
  font-size: 26px;
  text-align: center;
  color: var(--white);
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
    line-height: 1.7;
  }

  .mast {
    padding-top: max(32px, env(safe-area-inset-top));
  }

  .essay__title {
    margin: 24px 0 28px;
  }

  /* A phone column is too narrow to justify without rivers. */
  .essay__body p {
    text-align: left;
  }
}

/* ── The private readers page ── */

.stats {
  margin-top: 48px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 64px;
  text-align: center;
}

.figures p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-3);
}

.figure {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(36px, 9vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
  color: var(--white);
}

.stats h2 {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-3);
}

.rows {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
}

.rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 0;
  font-size: 17px;
}

.row__name {
  color: var(--white-2);
}

.row__n {
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--white);
}

.bar {
  display: block;
  margin-top: 8px;
}

.bar rect {
  fill: rgba(255, 255, 255, 0.38);
}

.empty {
  margin: 0 0 56px;
  color: var(--white-3);
}

