/* The /windee sections after the worked example: fit, proof and the dark
   close. Custom properties come from windee.css. */

.wr-windee-section {
  padding-block: var(--windee-space-section);
  border-block-start: 1px solid var(--color-border);
}

/* ---------- Is it a fit ---------- */

/* An in-page link target: keeps the sticky header off the heading. */
.wr-windee-fit {
  scroll-margin-block-start: var(--space-8);
}

.wr-windee-fit__columns {
  display: grid;
  gap: var(--space-7);
  margin-block-start: var(--space-7);
}

@media (min-width: 60rem) {
  .wr-windee-fit__columns {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-9);
  }
}

.wr-windee-fit__heading {
  font-size: var(--windee-text-step);
  font-weight: var(--weight-semibold);
  line-height: var(--windee-leading-step);
  color: var(--color-ink);
}

.wr-windee-fit__list {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}

.wr-windee-fit__list--no {
  color: var(--color-ink-soft);
}

.wr-windee-fit__item {
  position: relative;
  padding-inline-start: var(--space-6);
  line-height: var(--leading-normal);
}

/* The heading already says which list this is; the marker is for the eye
   only, hence the empty alternative text. */
.wr-windee-fit__item::before {
  position: absolute;
  inset-inline-start: 0;
}

.wr-windee-fit__item--yes::before {
  content: "✓" / "";
  font-weight: var(--weight-bold);
  color: var(--windee-fill);
}

.wr-windee-fit__item--no::before {
  --windee-dash-top: 0.75em;
  content: "";
  inset-block-start: var(--windee-dash-top);
  inline-size: var(--space-4);
  block-size: 2px;
  background: var(--color-border);
}

.wr-windee-fit__audience {
  max-inline-size: var(--windee-width-text);
  margin-block-start: var(--space-7);
  font-family: var(--windee-font-serif);
  font-size: var(--windee-text-lead);
  font-weight: var(--windee-weight-light);
  line-height: var(--windee-leading-serif);
  color: var(--color-ink);
}

/* ---------- Proof ---------- */

.wr-windee-proof__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  margin-block-start: var(--space-7);
}

@media (min-width: 40rem) {
  .wr-windee-proof__figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The number reads first, but the label comes first in the markup so a
   screen reader announces what is being counted before the count. */
.wr-windee-proof__figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-block-start: var(--space-4);
  border-block-start: 2px solid var(--windee-fill);
}

.wr-windee-proof__value {
  font-family: var(--windee-font-serif);
  font-size: var(--windee-text-figure);
  font-weight: var(--windee-weight-light);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-ink);
}

/* A figure without "über"/"rund" keeps an empty prefix line, so all four
   numbers share one baseline. */
.wr-windee-proof__value:not(:has(.wr-windee-proof__prefix))::before {
  content: "\00a0";
}

.wr-windee-proof__prefix,
.wr-windee-proof__value::before {
  display: block;
  margin-block-end: var(--space-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
}

.wr-windee-proof__label {
  color: var(--color-ink-soft);
}

.wr-windee-proof__makers {
  max-inline-size: var(--windee-width-text);
  margin-block-start: var(--space-8);
  line-height: var(--leading-normal);
  color: var(--color-ink);
}

/* ---------- Close ---------- */

.wr-windee-close {
  padding-block: var(--windee-space-section);
  background: var(--windee-storm);
  color: var(--windee-on-dark);
}

.wr-windee-close__title {
  max-inline-size: var(--windee-width-hero);
  font-family: var(--windee-font-serif);
  font-size: var(--windee-text-statement);
  font-weight: var(--windee-weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--windee-tracking-statement);
  color: var(--windee-white);
}

/* Muted .64 white is 6.6:1 here even across an isobar line: the close has
   no bloom and its drawing is half as strong as the opener's. */
.wr-windee-close__lede {
  max-inline-size: var(--windee-width-text);
  margin-block-start: var(--space-5);
  font-size: var(--windee-text-lead);
  line-height: var(--leading-normal);
  color: var(--windee-on-dark-muted);
}

.wr-windee-close__email {
  margin-block-start: var(--space-7);
  font-size: var(--text-sm);
  color: var(--windee-on-dark-muted);
}

.wr-windee-close__email a {
  color: var(--windee-on-dark);
  text-underline-offset: 0.25em;
}

.wr-windee-close__email a:hover {
  color: var(--windee-white);
}
