/* Self-hosted so every visitor sees the same masthead. Archivo and Space Mono
   are SIL Open Font License 1.1; see /fonts/OFL.txt. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-400.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-700.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-mono-700.woff2") format("woff2");
}

:root {
  --paper: #f4efe5;
  --paper-deep: #ebe3d4;
  --ink: #1c242b;
  --muted: #5c656b;
  --rule: #bdb5a8;
  --red: #a33b31;
  --display: "Archivo", "Helvetica Neue", helvetica, arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", helvetica, arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  background: var(--paper);
  font-family: var(--text);
  line-height: 1.52;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.masthead {
  padding: 18px 0 0;
  border-bottom: 3px double var(--ink);
}

.masthead-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead-top a {
  color: inherit;
  text-decoration: none;
}

.masthead-top span:last-child {
  text-align: right;
}

.title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 48px;
  align-items: end;
  padding: 22px 0 20px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--red);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(44px, 6.6vw, 96px)/0.92 var(--display);
  letter-spacing: -0.06em;
}

.dek {
  max-width: 42ch;
  margin: 0 0 3px;
  color: #3d474e;
  font: italic 20px/1.32 var(--display);
}

.filters {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--rule);
}

.filters button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  padding: 12px 18px;
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.filters button:first-child {
  padding-left: 0;
}

.filters button:hover,
.filters button:focus-visible,
.filters button.active {
  color: var(--red);
}

.filters button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
}

.edition-note {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 19px;
  border-bottom: 1px solid var(--ink);
}

.edition-note span {
  color: var(--red);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-note p {
  max-width: 96ch;
  margin: 0;
  font: italic 20px/1.38 var(--display);
}

.story {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 21px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.story-lead {
  grid-column: 1 / -1;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 27px;
  border-bottom: 3px double var(--ink);
}

.story-feature {
  padding-top: 24px;
  padding-bottom: 25px;
}

.story-brief {
  padding-top: 18px;
  padding-bottom: 19px;
}

.story-number {
  padding-top: 5px;
  color: var(--red);
  font: 700 11px/1.2 var(--mono);
}

.story-body {
  min-width: 0;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.story-meta span:last-child {
  text-align: right;
}

.story h2 {
  margin: 9px 0 10px;
  font: 700 clamp(25px, 2.8vw, 38px)/1.06 var(--display);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.story-lead h2 {
  max-width: 24ch;
  margin-top: 14px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
}

.story-feature h2 {
  font-size: clamp(28px, 3vw, 43px);
}

.story-brief h2 {
  margin-top: 9px;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.04;
}

.story h2 a {
  color: inherit;
  text-decoration: none;
}

.story h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.story p {
  max-width: 82ch;
  margin: 0 0 10px;
  font-size: 15px;
}

.story-lead p {
  max-width: 88ch;
  font-size: 17px;
}

.story-brief p {
  font-size: 14px;
  line-height: 1.46;
}

.story .fact,
.story .take,
.story .caveat {
  max-width: 72ch;
  margin: 0;
  padding: 7px 0 7px 13px;
  border-left: 2px solid var(--rule);
  color: #404a51;
  font-size: 14px;
}

.story .fact {
  margin-top: 15px;
  border-left-color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}

.story .take {
  border-left-color: var(--red);
  color: var(--ink);
  font: 17px/1.42 var(--display);
}

.story .caveat {
  padding-bottom: 9px;
  font-size: 13.5px;
  font-style: italic;
}

.story-lead .take {
  font-size: 20px;
}

.story-brief .fact {
  margin-top: 12px;
  font-size: 11.5px;
}

.story-brief .take {
  font-size: 15px;
}

.story-brief .caveat {
  font-size: 12.5px;
}

.story .fact strong,
.story .take strong,
.story .caveat strong {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font: 700 9.5px/1.2 var(--mono);
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story .take strong {
  color: var(--red);
}

.quiet-day h2 {
  max-width: 24ch;
}

.quiet-day p {
  font-size: 17px;
}

.source-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font: 700 11px/1.2 var(--mono);
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story[hidden] {
  display: none;
}

footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin: 34px 0 22px;
  padding: 22px 0 0;
  border-top: 3px double var(--ink);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 8px;
}

.footer-links a {
  color: inherit;
}

footer > p {
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  body {
    padding: 0 18px;
  }

  .masthead-top {
    grid-template-columns: 1fr 1fr;
  }

  .masthead-top span:nth-child(2) {
    display: none;
  }

  .title-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dek {
    font-size: 18px;
  }

  .stories {
    grid-template-columns: 1fr;
  }

  .edition-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .story-lead,
  .story-feature,
  .story-brief {
    grid-column: 1;
  }

  .story-lead h2 {
    max-width: 16ch;
  }

  footer {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 68px;
  }
}

@media (max-width: 480px) {
  .masthead-top {
    gap: 10px;
    font-size: 10px;
  }

  .story-lead {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 15px;
  }

  .story-lead h2 {
    font-size: clamp(36px, 12vw, 54px);
  }
}

/* The lead story used one narrow column and left the right half of a wide
   screen empty. Split it: headline and summary on the left, the checked /
   take / caveat block on the right, so it fills the width and takes less
   vertical room. */
@media (min-width: 1000px) {
  .story-lead .story-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
  }

  .story-lead .story-meta,
  .story-lead h2 {
    grid-column: 1 / -1;
  }

  .story-lead > .story-body > p:not(.fact):not(.take):not(.caveat) {
    grid-column: 1;
    max-width: none;
    margin-bottom: 0;
  }

  .story-lead .fact {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
  }

  .story-lead .take {
    grid-column: 2;
    grid-row: 4;
  }

  .story-lead .caveat {
    grid-column: 2;
    grid-row: 5;
  }

  .story-lead .source-link {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
  }

  .story-lead h2 {
    max-width: 30ch;
  }
}
