/* Havre — dark French blue, white type, one serif: Caslon, the face Franklin
   printed with. No ornaments, no rules, no drop caps: the essay is the page. */

:root {
  --blue: #070D1F;          /* the ground: bleu de France at midnight */
  --white: #FFFFFF;
  --white-2: rgba(255, 255, 255, 0.86);
  --white-3: rgba(255, 255, 255, 0.55);
  --serif: "Libre Caslon Text", Georgia, "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(--blue);
  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: HAVRE, 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(24px, 5vw, 32px);
  line-height: 1;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* re-centres the tracking */
  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;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white-3);
}

.essay__title {
  margin: 36px 0 40px;
  font-weight: 400;
  font-size: clamp(32px, 6.4vw, 48px);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
  color: var(--white);
}

/* 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);
}

/* ── 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: 28px 0 28px;
  }

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