/*
 * The About page (`about.html` → /about/): home.css's system and page.css's opening, plus the shapes
 * only this page draws — people on paintings, the five rules, the four habits, the three jobs.
 */

/* Photographs sit on a painting like a product crop does: cut out, shadowed, running off an edge */
.photo {
  border-radius: var(--r-win);
}

/* ─── The opening: the office, and the engineer beside it ─────────────── */
.hero-photo {
  left: 40px;
  top: 76px;
  width: 960px;
}

.hero-photo-tall {
  left: 600px;
  top: 252px;
  width: 340px;
}

.hero-card {
  --depth: 18px;

  left: 24px;
  top: 388px;
}

.page-hero .actions {
  margin-top: var(--s6);
}

/* ─── Figures ─────────────────────────────────────────────────────────── */
.figures {
  padding: var(--s9) 0;
}

.figures .metrics {
  margin-top: 0;
}

.metrics a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.metrics a:hover {
  text-decoration-color: currentcolor;
}

/* ─── The rules: a list with its costs beside a painting of someone at work ─ */
.rules {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s8);
  align-items: stretch;
}

.rules .qa {
  max-width: none;
  align-self: start;
}

.rules .qa summary {
  justify-content: flex-start;
  gap: var(--s4);
}

.rules .title {
  flex: 1;
}

.rules .qa summary::after {
  order: 3;
}

.num {
  flex: none;
  width: var(--s5);
  font: 560 var(--label) / var(--lede-lh) var(--font-sans);
  color: var(--text-3);
}

.rules .qa details > :not(summary) {
  max-width: 600px;
  padding-left: var(--s7);
  padding-bottom: var(--s4);
}

.rules .qa details > p a {
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

/* What a rule costs us: a quiet white note under it, so it is read as the price and not the prose */
.rules .qa details > .cost {
  display: grid;
  gap: var(--s1);
  max-width: 560px;
  margin: 0 0 var(--s5) var(--s7);
  padding: var(--s4);
  border-radius: var(--r-win);
  background: var(--white);
  color: var(--text-2);
  font-size: var(--small);
  line-height: var(--small-lh);
}

.cost b {
  font: 560 var(--label) / var(--label-lh) var(--font-sans);
  color: var(--text-3);
}

.rules-art {
  min-height: 560px;
}

.rules-art .photo {
  left: 56px;
  top: 56px;
  width: 420px;
}

/* ─── How it gets made: four photographs, one painting ────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s9) var(--s6);
}

.step-art {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--s5);
  overflow: hidden;
  border-radius: var(--r-md);
}

.step-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-art .room {
  object-position: 50% 62%;
}

.steps .n {
  font: 560 var(--label) / var(--label-lh) var(--font-sans);
  color: var(--text-3);
}

.steps h3 {
  margin-top: var(--s3);
  font-size: var(--h4);
  line-height: var(--h4-lh);
  letter-spacing: -0.01em;
}

.steps li > p:last-child {
  max-width: 520px;
  margin-top: var(--s3);
  font-size: 20px;
  line-height: 30px;
  color: var(--text-2);
}

/* The fourth habit has no photograph: the newest release's real name and day, on a painting */
.release-face {
  --bg: #1a1a1d;

  position: absolute;
  left: 50%;
  top: 32%;
  width: 96px;
  margin-left: -48px;
  color: #ededef;
}

.release-card {
  --depth: 14px;

  left: var(--s5);
  bottom: var(--s5);
}

.release-card .v {
  font-size: var(--small);
  line-height: var(--small-lh);
}

.notes-link {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 14px;
  color: #ededef;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 40%);
  text-underline-offset: 3px;
}

.notes-link:hover {
  text-decoration-color: currentcolor;
}

/* ─── The three jobs: a painting with the real screen, and a few words ── */
.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
}

.use-art {
  height: 440px;
  margin-bottom: var(--s5);
}

.use-shot {
  left: var(--s5);
  top: var(--s6);
  width: 820px;
}

.use-shot.ask {
  width: 940px;
}

.use-shot.player {
  width: 960px;
}

.uses h3 {
  font-size: var(--h4);
  line-height: var(--h4-lh);
  letter-spacing: -0.01em;
}

.uses p {
  margin-top: var(--s3);
  font-size: var(--body);
  color: var(--text-2);
}

.stock {
  margin-top: var(--s7);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
}

.stock a {
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

@media (width <= 1100px) {
  .hero-photo {
    width: 760px;
  }

  .hero-photo-tall {
    left: 470px;
  }

  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules-art {
    min-height: 0;
    height: 480px;
  }

  .uses {
    grid-template-columns: minmax(0, 1fr);
  }

  .use-art {
    height: 420px;
  }

  .use-shot,
  .use-shot.ask,
  .use-shot.player {
    left: 56px;
    width: 760px;
  }
}

@media (width <= 720px) {
  .hero-photo {
    left: 24px;
    top: 40px;
    width: 600px;
  }

  .hero-photo-tall {
    left: 300px;
    top: 150px;
    width: 220px;
  }

  .rules {
    gap: var(--s7);
  }

  .rules .qa summary {
    font-size: 18px;
    line-height: 26px;
  }

  .rules .qa details > :not(summary),
  .rules .qa details > .cost {
    padding-left: 0;
    margin-left: 0;
  }

  .rules .qa details > .cost {
    padding: var(--s4);
  }

  .rules-art {
    height: 400px;
  }

  .rules-art .photo {
    left: 24px;
    top: 32px;
    width: 300px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s8);
  }

  .use-art {
    height: 360px;
  }

  .use-shot,
  .use-shot.ask,
  .use-shot.player {
    left: var(--s4);
    top: var(--s5);
    width: 600px;
  }
}
