/*
 * Blog posts: an article set as a page of the publication. Loaded after
 * formats.css, whose kicker, edition front, start button and "Getting yours"
 * sheet it reuses. The running text keeps a reading measure; the headline,
 * standfirst and the edition shown as an object use the sheet's width.
 */

.fp .sheet > .bp {
  display: grid;
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 104px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.bp-head,
.bp > .fp-start {
  grid-column: 1 / -1;
}

.bp-head h1 {
  max-width: 16em;
  margin-top: clamp(18px, 2vw, 26px);
  font: 560 clamp(2.6rem, 5.2vw, 5.4rem) / 0.98 var(--serif);
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.bp-head h1 mark {
  padding: 0 0.04em;
  background: linear-gradient(transparent 0.2em, var(--acid) 0.2em, var(--acid) 0.96em, transparent 0.96em);
}

.bp-head .standfirst {
  max-width: 46rem;
  margin-top: clamp(18px, 2vw, 26px);
}

.bp-byline {
  margin-top: clamp(22px, 2.4vw, 30px);
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  color: var(--ink-muted);
  font: 600 0.72rem / 1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The running text ----------------------------------------------------------- */

.bp-body {
  grid-column: 3 / span 7;
  margin-top: clamp(40px, 5vw, 72px);
  color: var(--ink-soft);
  font: var(--type-body);
}

.bp-body > p + p,
.bp-body > ul + p,
.bp-body > p + ul {
  margin-top: 1.1em;
}

/* The first paragraph opens with a drop capital, as a feature does in print. */
.bp-body > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--ink);
  font: 560 3.9em / 0.8 var(--serif);
}

.bp-body h2 {
  margin-top: clamp(40px, 4.4vw, 60px);
  margin-bottom: 14px;
  color: var(--ink);
  font: 560 clamp(1.6rem, 2.4vw, 2.2rem) / 1.08 var(--serif);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.bp-body > :is(p, ul) a {
  color: var(--ink);
  text-decoration: underline 1px rgba(7, 17, 29, 0.4);
  text-underline-offset: 3px;
}

.bp-body > :is(p, ul) a:hover {
  text-decoration-color: var(--ink);
}

.bp-body > :is(p, ul) b {
  color: var(--ink);
  font-weight: 700;
}

.bp-body > ul {
  margin: 1.1em 0 0;
  padding: 0;
  list-style: none;
}

.bp-body > ul > li {
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--rule);
  position: relative;
}

.bp-body > ul > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.bp-body > ul > li::before {
  position: absolute;
  top: 1.15em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--pencil);
  content: "";
}

/* A line from the article, set large between rules. */
.bp-pull {
  margin: clamp(36px, 4vw, 56px) 0;
  padding: 22px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.bp-pull p {
  color: var(--ink);
  font: 560 clamp(1.7rem, 2.8vw, 2.5rem) / 1.08 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* A real edition, shown as an object on the page. */
.bp-body > .fp-object {
  margin: clamp(40px, 4.4vw, 60px) 0;
}

.bp-body > .fp-object .edition-front {
  max-width: 38rem;
}

/* The studies it cites. */
.bp-sources {
  grid-column: 3 / span 7;
  margin-top: clamp(48px, 5.6vw, 80px);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.bp-sources h2 {
  color: var(--ink-muted);
  font: 600 0.72rem / 1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-sources ol {
  margin: 12px 0 0;
  padding-left: 1.3em;
  color: var(--ink-muted);
  font: var(--type-small);
}

.bp-sources li + li {
  margin-top: 8px;
}

.bp-sources a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.bp > .fp-start {
  grid-column: 3 / span 7;
  margin-top: clamp(40px, 4.4vw, 60px);
}

@media (max-width: 1023px) {
  .bp-body,
  .bp-sources,
  .bp > .fp-start {
    grid-column: 1 / -1;
  }

  .bp-body {
    max-width: 40rem;
  }
}
