/* The About page (/about/, assets/js/about-page.js): what 52in1 is for, why,
   and what comes next. A long read in the room's dark, one column of text,
   the goal set apart as a solemn plaque and the roadmap as numbered steps.
   Achromatic, as the hub's chrome is (tokens.css); --attract marks only what
   a player can press. */

.story-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--hair);
  color: var(--dust-dim);
}

.story-head__brand {
  color: var(--light);
  font-variation-settings: 'wdth' 100, 'wght' 800;
}

.story-head__brand:hover {
  text-decoration: underline;
}

.story-head__here {
  color: var(--dust);
}

.story-head__side {
  margin-inline-start: auto;
}

.story {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 5vw, 5rem) var(--gutter) 3rem;
}

.story p {
  color: var(--dust);
  font-size: var(--step-1);
  line-height: 1.65;
}

.story p + p {
  margin-top: 1rem;
}

/* --- the first screen ------------------------------------------------------------------ */

.story-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--dust-dim);
  font-size: var(--step--1) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 110, 'wght' 700;
}

.story-title {
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.4rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  font-variation-settings: 'wdth' 112, 'wght' 900;
}

.story .story-lead {
  margin-top: 1.4rem;
  color: var(--light);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
}

/* --- the parts ------------------------------------------------------------------------ */

.story-part,
.story-next {
  margin-top: clamp(2.8rem, 2rem + 3vw, 4.2rem);
}

.story-part__title {
  margin-bottom: 1rem;
  font-size: var(--step-2);
  line-height: 1.15;
  font-variation-settings: 'wdth' 106, 'wght' 850;
}

.story-part__more a,
.story-go__matrix {
  color: var(--light);
  text-decoration: underline;
  text-decoration-color: var(--hair-bright);
  text-underline-offset: 0.22em;
}

.story-part__more a:hover,
.story-go__matrix:hover {
  text-decoration-color: currentColor;
}

/* --- the goal: a plaque, said with a straight face -------------------------------------- */

.story-goal {
  position: relative;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--hair-bright);
  border-radius: 1.2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(243, 238, 247, 0.06), transparent 70%),
    var(--room);
  box-shadow: inset 0 0 0 6px var(--room-deep), inset 0 0 0 7px var(--hair);
}

.story-goal .story-part__title {
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--step-0);
  color: var(--dust);
  font-variation-settings: 'wdth' 116, 'wght' 760;
}

.story .story-goal__mission {
  margin-bottom: 1.4rem;
  color: var(--light);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  font-variation-settings: 'wdth' 100, 'wght' 620;
}

/* How far there is to go: three facts and a gauge that has not moved. */
.story-gauge {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hair);
}

.story .story-gauge__title {
  margin-bottom: 0.8rem;
  color: var(--dust-dim);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 110, 'wght' 700;
}

.story-gauge__rows {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.story-gauge__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--hair);
}

.story-gauge__row dt {
  color: var(--dust);
}

.story-gauge__row dd {
  margin: 0;
  color: var(--light);
  text-align: end;
  font-variation-settings: 'wdth' 100, 'wght' 720;
}

.story-gauge__bar {
  height: 0.55rem;
  margin-top: 1.1rem;
  border-radius: 1rem;
  background: var(--riser);
  box-shadow: inset 0 0 0 1px var(--hair);
  overflow: hidden;
}

.story-gauge__bar span {
  display: block;
  width: 0.6%;
  min-width: 3px;
  height: 100%;
  background: var(--light);
}

/* --- what comes next: numbered steps --------------------------------------------------- */

.story .story-next__lead {
  margin-bottom: 1.6rem;
}

.story-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.story-step {
  position: relative;
  padding: 1.3rem 1.4rem 1.4rem 4.2rem;
  border: 1px solid var(--hair-bright);
  border-radius: 1rem;
  background: var(--riser);
  counter-increment: step;
}

.story-step::before {
  content: counter(step);
  position: absolute;
  top: 1.15rem;
  inset-inline-start: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--room-deep);
  border: 1px solid var(--hair-bright);
  color: var(--light);
  font-variation-settings: 'wdth' 100, 'wght' 800;
}

.story-step__title {
  margin-bottom: 0.5rem;
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 104, 'wght' 800;
}

.story-step p {
  font-size: var(--step-0);
}

.story .story-step__status {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--hair-bright);
  border-radius: 2rem;
  color: var(--light);
  font-size: var(--step--1);
}

/* The last step, the farthest out: the whole width, a little brighter. */
.story .story-next__close {
  margin-top: 1.8rem;
  color: var(--light);
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 104, 'wght' 800;
  text-align: center;
  text-wrap: balance;
}

.story-step--last {
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(243, 238, 247, 0.07), transparent 65%),
    var(--riser);
}

/* --- the way on ------------------------------------------------------------------------ */

.story-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: clamp(2.6rem, 2rem + 2vw, 3.6rem);
}

.story-go__play {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 0.8rem;
  background: var(--attract);
  color: var(--attract-ink);
  font-size: var(--step-1);
  font-variation-settings: 'wdth' 102, 'wght' 800;
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.35);
}

.story-go__play:hover {
  filter: brightness(1.06);
}

.story a:focus-visible,
.story-head a:focus-visible {
  outline: 2px solid var(--attract);
  outline-offset: 3px;
}

html.is-pad .story a:focus,
html.is-pad .story-head a:focus {
  outline: 3px solid var(--pad-ring, #8fb8ff);
  outline-offset: 4px;
}

@media (max-width: 30rem) {
  .story-step {
    padding: 3.6rem 1.1rem 1.2rem;
  }
  .story-step::before {
    top: 1rem;
    inset-inline-start: 1.1rem;
  }
  .story-gauge__row {
    flex-direction: column;
    gap: 0.1rem;
  }
  .story-gauge__row dd {
    text-align: start;
  }
}
