/* About and Projects. One idea carries both pages: the name of a section sits
   in a left rail and its content reads to the right, so the structure is the
   navigation and nothing needs a numbered label. Body copy is set at reading
   size with lines under 65 characters. */
.value-page .page-intro {
  margin: 0 0 64px;
}
.value-page .page-kicker {
  display: block;
  margin: 0 0 20px;
  font: 600 15px/1.3 var(--display);
  color: var(--accent);
}
.value-page .page-title {
  max-width: 17ch;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.value-page .page-lead {
  max-width: 58ch;
  margin: 30px 0 0;
  font: 400 clamp(18px, 1.7vw, 22px) / 1.5 var(--display);
  color: var(--text-soft);
}
.value-page h3,
.value-page h4 {
  font-family: var(--display);
  font-style: normal;
  color: var(--text);
}
.value-page p {
  color: var(--body);
}

/* ---- Rail sections --------------------------------------------------- */
.value-page .rail-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.value-page .rail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--accent);
  text-wrap: balance;
}
.value-page .rail-body {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.value-page .rail-body p,
.value-page .project-copy > p {
  max-width: 62ch;
  margin: 0;
  font: 400 17px/1.65 var(--display);
}
.value-page .two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.value-page .two-up h4,
.value-page .value-row h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.value-page .section-lead {
  margin: 0 0 34px !important;
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--text-soft);
}

/* A value reads as a row: the claim on the left, the proof on the right. */
.value-page .value-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-page .value-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.value-page .value-row:first-child {
  padding-top: 0;
  border-top: 0;
}
.value-page .value-row:last-child {
  padding-bottom: 0;
}
.value-page .value-row h4 {
  margin: 0;
}
.value-page .built-with {
  margin: 12px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--quiet) !important;
}
.value-page .value-list + .built-with {
  margin-top: 28px !important;
}

/* ---- Links ------------------------------------------------------------ */
.value-page .link-row,
.value-page #contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 24px 0 0 !important;
  font-size: 18px;
}
.value-page .link-row a,
.value-page .project-link {
  display: inline-block;
  width: auto;
  padding: 4px 0;
  border: 0;
  font: 600 18px/1.3 var(--display);
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.value-page .link-row a:hover,
.value-page .project-link:hover {
  color: var(--accent);
}
.value-page .link-row a:focus-visible,
.value-page .project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

/* ---- Projects ---------------------------------------------------------- */
.value-page .work {
  padding: 0;
}
.value-page .project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 56px;
  align-items: start;
  margin: 0;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}
.value-page .project-visual {
  position: sticky;
  top: 132px;
  width: 100%;
  margin: 0;
}
.value-page .project-kicker {
  max-width: none;
  margin: 0 0 14px;
  font: 600 15px/1.3 var(--display);
  color: var(--accent);
}
.value-page .project-copy h3 {
  max-width: 17ch;
  margin: 0 0 18px;
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.value-page .changed-title {
  margin: 32px 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
.value-page .changed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-page .changed-list li {
  position: relative;
  max-width: 60ch;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--rule);
  font: 400 16px/1.55 var(--display);
  color: var(--body);
}
.value-page .changed-list li:first-child {
  border-top: 0;
}
.value-page .changed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.value-page .project-copy .built-with {
  margin-top: 20px !important;
}
.value-page .project-link {
  margin-top: 22px;
}
/* The visuals keep their drawings but speak in plain words. */
.value-page .deploy-terminal .terminal-top span,
.value-page .server-node > span,
.value-page .node-footer,
.value-page .satellite {
  text-transform: none;
  letter-spacing: 0;
}
.value-page .deploy-terminal strong {
  font-style: normal;
  font-family: monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--lime);
}
.value-page .satellite {
  font: 600 12px/1 var(--display);
  padding: 7px 11px;
}

/* ---- The build animation covers the new elements too ------------------ */
.page-surface[data-phase="layout"] .value-page h4,
.page-surface[data-phase="layout"] .value-page li,
.page-surface[data-phase="layout"] .value-page .link-row,
.page-surface[data-phase="layout"] .value-page .project-link {
  opacity: 0;
}
.page-surface[data-phase="structure"] .value-page .changed-list li::before {
  background: transparent;
}
.page-surface[data-phase="structure"] .value-page .rail-section,
.page-surface[data-phase="structure"] .value-page .project {
  border-top-color: #849b6a;
  border-top-style: dashed;
}

/* ---- The miniature on the monitor ------------------------------------- */
:is(#monitor-page, [data-snapshot-id="monitor-page"]) .value-page .page-intro {
  margin-bottom: 28px;
}
:is(#monitor-page, [data-snapshot-id="monitor-page"]) .value-page .page-lead {
  margin-top: 16px;
  font-size: 17px;
}
:is(#monitor-page, [data-snapshot-id="monitor-page"]) .value-page .rail-section,
:is(#monitor-page, [data-snapshot-id="monitor-page"]) .value-page .project {
  padding: 26px 0;
}
:is(#monitor-page, [data-snapshot-id="monitor-page"]) .value-page .project-visual {
  position: relative;
  top: auto;
}

/* ---- Narrow screens ---------------------------------------------------- */
@media (max-width: 900px) {
  .value-page .rail-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 38px 0;
  }
  .value-page .project {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0;
  }
  /* Relative, not static: the drawings position their parts against it. */
  .value-page .project-visual {
    position: relative;
    top: auto;
  }
}
@media (max-width: 640px) {
  .value-page .page-intro {
    margin-bottom: 44px;
  }
  .value-page .two-up,
  .value-page .value-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .value-page .value-row {
    gap: 8px;
    padding: 22px 0;
  }
  .value-page .two-up h4,
  .value-page .value-row h4 {
    font-size: 20px;
  }
  .value-page .rail-body p,
  .value-page .project-copy > p {
    font-size: 16px;
  }
  .value-page .section-lead {
    font-size: 17px !important;
  }
}
