/* The About page: mostly diagrams, in the LCD's four shades. */
.about { width: 100%; max-width: 900px; margin: 0 auto; padding: 8px 24px 180px; }
.about h1 { margin: 12px 0 12px; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.4; }
.lead { margin: 0 0 20px; font-size: 26px; line-height: 1.15; max-width: 56ch; }
.about h2 { margin: 36px 0 14px; font-size: 14px; line-height: 1.4; color: var(--lcd); }
.caption { margin: 12px 0 0; color: var(--cream-soft); line-height: 1.15; max-width: 66ch; }
.caption b { font-weight: 400; color: var(--lcd); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 16px; background: var(--lcd); color: var(--ink); }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.facts dd { margin: 0; font: 400 clamp(13px, 1.8vw, 18px)/1.2 var(--display); }
.facts dt { color: var(--olive-dark); line-height: 1; }

/* The route a message takes. A pixel arrow joins each box to the next. */
.flow { display: grid; grid-template-columns: 1fr 1fr 1.7fr 1fr 1.25fr; gap: 26px; margin: 0; padding: 0; list-style: none; }
.box { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; background: var(--lcd); color: var(--ink); line-height: 1; }
.box b { font-weight: 400; font-size: 25px; line-height: 1; overflow-wrap: anywhere; }
.box small { color: var(--olive-dark); font-size: 19px; line-height: 1; }
.tag { color: var(--olive-dark); font: 400 8px/1.3 var(--display); }
.box + .box::before { content: ""; position: absolute; left: -21px; top: calc(50% - 8px); width: 16px; height: 16px; background: var(--lcd); clip-path: polygon(0 0, 25% 0, 25% 12.5%, 50% 12.5%, 50% 25%, 75% 25%, 75% 37.5%, 100% 37.5%, 100% 62.5%, 75% 62.5%, 75% 75%, 50% 75%, 50% 87.5%, 25% 87.5%, 25% 100%, 0 100%); }
.loop { background: var(--ink); color: var(--lcd); }
.loop .tag, .loop small { color: var(--lcd-mid); }
.chips { display: flex; flex-wrap: wrap; gap: 3px; }
.chips i { padding: 1px 4px; background: var(--lcd-mid); font-style: normal; font-size: 19px; line-height: 1.05; }
.chips i.hit { background: var(--ink); color: var(--lcd); }

/* An hourglass of layers, widest at the vocabulary. */
.stack { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.layer { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; width: var(--w); min-width: min(100%, 300px); padding: 7px 10px; background: var(--lcd); color: var(--ink); text-align: center; line-height: 1; }
.layer b { font: 400 13px/1.2 var(--display); }
.layer span { color: var(--olive-dark); }
.layer.dark { background: var(--ink); color: var(--lcd); }
.layer.dark span { color: var(--lcd-mid); }

.bar-group { margin-bottom: 16px; }
.bar-group h3 { margin: 0 0 6px; font: 400 24px/1.1 var(--body); color: var(--cream); }
.bar { display: flex; gap: 2px; height: 26px; background: var(--forest-deep); }
.seg { min-width: 3px; background: var(--lcd); }
.seg.s1 { background: var(--lcd-mid); }
.seg.s2 { background: var(--olive); }
.seg.s3 { background: var(--cream); }
.seg.free { background: none; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--cream-soft); font-size: 21px; line-height: 1.1; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; background: var(--lcd); }
.legend i.s1 { background: var(--lcd-mid); }
.legend i.s2 { background: var(--olive); }
.legend i.s3 { background: var(--cream); }
.legend i.free { background: var(--forest-deep); }

.ladder { display: flex; flex-direction: column; gap: 6px; }
.step { display: grid; grid-template-columns: 250px 1fr; gap: 12px; align-items: center; line-height: 1; }
.step-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.step-track i { display: block; height: 18px; min-width: 3px; background: var(--lcd-mid); }
.step:last-child .step-track i { background: var(--lcd); }
.step-track b { font-weight: 400; white-space: nowrap; }
.step:last-child { color: var(--lcd); }

.trick { padding: 14px 16px; background: var(--lcd); color: var(--ink); }
.trick p { margin: 0; }
.sum { margin-bottom: 8px !important; font: 400 clamp(18px, 3vw, 26px)/1.2 var(--display); }
.eq { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.eq b { font-weight: 400; background: var(--ink); color: var(--lcd); padding: 0 6px; }

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .box + .box::before { left: calc(50% - 8px); top: -20px; transform: rotate(90deg); }
}
@media (max-width: 620px) {
  .about { padding: 8px 16px 130px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { font-size: 24px; }
  .step { grid-template-columns: 1fr; gap: 2px; }
}
