/* THE SECTIONS: the details table, the hairline-label-heading-text formula every section follows, and the blocks built on it (TL;DR, numbers, callouts, quote, learnings). */

h2 {
  margin: 0;
}
.intro {
  margin-top: 28px;
  font: 400 20px/32px Inter;
  color: var(--primary);
}
/* the details table: two rows of three, with the column lines where the Figma frame has them */
.meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 248px 264px 248px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.meta::before,
.meta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.meta::before {
  left: 248px;
}
.meta::after {
  left: 512px;
}
.meta > div {
  height: 87px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 6px;
}
.meta > div:nth-child(3n + 2),
.meta > div:nth-child(3n) {
  padding-left: 41px;
}
.meta b {
  font:
    500 11px/10px 'Geist Mono',
    monospace;
  color: var(--tertiary);
}
.meta span {
  font: 400 17px/26px Inter;
  color: var(--primary);
  white-space: nowrap;
}
/* sections: 96 above the line, 40 under it, 28 between label, heading and text, 40 between blocks */
.sec {
  margin-top: 96px;
  padding-top: 39px;
  border-top: 1px solid var(--line);
}
.meta + .sec {
  margin-top: 95px;
}
.lab {
  font:
    500 14px/18px 'Geist Mono',
    monospace;
  color: var(--placeholder);
}
h2 {
  margin-top: 28px;
  font: 500 40px/46px Inter;
  color: var(--primary);
}
.text {
  margin-top: 28px;
  color: var(--secondary);
}
.text p + p {
  margin-top: 30px;
}
.block {
  margin-top: 40px;
}
/* TL;DR */
.tldr .lab ~ p {
  margin-top: 28px;
  color: var(--secondary);
}
.tldr b {
  font-weight: 600;
  color: var(--primary);
}
.tldr a {
  color: var(--link);
  text-underline-offset: 3px;
}
/* the three numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 232px);
  column-gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 18px 0 20px;
}
.stats .n {
  font: 600 34px/40px Inter;
  color: var(--primary);
}
.stats .t {
  margin-top: 8px;
  font: 400 15px/22px Inter;
  color: var(--secondary);
}
.stats .s {
  margin-top: 10px;
  font:
    400 12px/22px 'Geist Mono',
    monospace;
  color: var(--placeholder);
}
/* the callout */
.callout {
  padding: 12px 26px 12px 22px;
  border-left: 2px solid var(--error);
  background: var(--well);
  font: 500 18px/30px Inter;
  color: var(--primary);
}
.follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.follow svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.follow:hover svg {
  transform: translateX(3px);
}
.end {
  height: 0;
}
/* ───────── after the walkthrough: the bridge line, then the decisions, on the page's own section formula ───────── */
.after {
  padding: 128px 0 64px;
} /* clear of the window as it leaves */
.bridge {
  font: 400 20px/32px Inter;
  color: var(--primary);
}
/* the statement box: red marks a problem, green marks the answer */
.callout.go {
  border-left-color: #22c55e;
}
/* what came of it: the problem section's numbers row */
.res-lead {
  font: 500 18px/30px Inter;
  color: var(--primary);
}
.res-lead + .stats {
  margin-top: 20px;
}
.stats.two {
  grid-template-columns: repeat(2, 364px);
}
.quote {
  margin: 48px 0 0;
}
.quote p {
  font: italic 400 20px/32px Inter;
  color: var(--primary);
  text-indent: -0.4em;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font:
    400 12px/18px 'Geist Mono',
    monospace;
  font-style: normal;
  color: var(--placeholder);
}
/* what's next: bold-led paragraphs, the lead in ink, as in the TL;DR */
.lessons b {
  font-weight: 600;
  color: var(--primary);
}
/* learnings: short and stacked, as Rishabh closes his: a bold lead in ink, one or two lines after it in gray */
.lessons.short p + p {
  margin-top: 22px;
}
@media (max-width: 820px) {
  .after {
    padding-top: 72px;
  }
}
@media (max-width: 820px) {
  .quote p {
    font-size: 18px;
    line-height: 30px;
  }
  .bridge {
    font-size: 18px;
    line-height: 28px;
  }
}
@media (max-width: 820px) {
  .stats.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .meta,
  .stats {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .meta::before,
  .meta::after {
    display: none;
  }
  .meta > div {
    height: auto;
    padding: 16px 0;
  }
  .meta > div:nth-child(3n + 2),
  .meta > div:nth-child(3n) {
    padding-left: 0;
  }
  .meta > div + div {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 820px) {
  h2 {
    font-size: 30px;
    line-height: 36px;
  }
}
