/* Sections below the hero. Each section makes one claim and backs it with one figure or table. */
.sec { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--rule); }
h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; max-width: 20em; text-wrap: balance; }
h3 { margin: 0 0 8px; font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { margin: 20px 0 0; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.lead + .lead { margin-top: 16px; }
.sec figure { margin-top: clamp(40px, 5vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

/* Three parts of a world */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--ink); }
.parts > div { padding: 24px 28px 0 0; min-width: 0; }
.parts > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.parts .k { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.parts .rare .k { color: var(--no); }
.parts p { margin: 0; font-size: 17px; color: var(--ink-2); }
.parts code { display: block; margin-top: 20px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); background: var(--fig); border: 1px solid var(--rule); border-radius: 3px; white-space: nowrap; overflow-x: auto; }
.parts .rare code { color: var(--no); }

/* Tables */
.tbl { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 16px; }
.t caption { caption-side: top; text-align: left; font-size: 14px; color: var(--ink-2); padding-bottom: 14px; }
.t caption b { font-weight: 600; color: var(--ink); }
.t th { text-align: left; font-weight: 500; font-size: 14px; color: var(--ink-3); padding: 0 24px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.t td { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.t td:first-child { color: var(--ink); }
.t td.name { font-weight: 500; font-size: 18px; }
.t td code { font-size: 13.5px; }
.t td.no code { color: var(--no); }
.t th:last-child, .t td:last-child { padding-right: 0; }
.t .st { white-space: nowrap; font-size: 14px; color: var(--ink-3); text-align: right; }
.t th.st { text-align: right; }
.t .st i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); margin-right: 8px; vertical-align: 1px; }
.t .st.on { color: var(--pass); }
.t .st.on i { background: var(--pass); border-color: var(--pass); }

/* A world's files */
.files { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.9; background: var(--fig); border: 1px solid var(--rule); border-radius: 4px; white-space: pre; overflow-x: auto; }
.files .c { color: var(--ink-3); }
.files .n { color: var(--no); }
ol.steps { margin: 28px 0 0; padding-left: 1.4em; }
ol.steps li { margin: 0 0 12px; color: var(--ink-2); }
ol.steps b { font-weight: 500; color: var(--ink); }
.small { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }

/* Plain blocks in a grid */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 48px; }
.blocks > div { padding: 24px 0; border-top: 1px solid var(--rule); }
.blocks p { margin: 0; color: var(--ink-2); max-width: 30em; }

/* Commands */
.cmds { margin-top: 8px; border: 1px solid var(--rule); border-radius: 4px; background: var(--fig); }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.cmd + .cmd { border-top: 1px solid var(--rule); }
.cmd code { font-size: 13.5px; line-height: 1.7; white-space: pre; overflow-x: auto; max-width: 100%; }
.cmd code::before { content: "$  "; color: var(--ink-3); }
.copy-btn { flex: none; appearance: none; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 3px; color: var(--ink); font: 13px var(--sans); padding: 6px 12px; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.note { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); max-width: 40em; }
.note b { color: var(--ink); font-weight: 500; }

/* Closing band */
.band { background: var(--fig); border-top: 1px solid var(--rule); padding: clamp(72px, 10vw, 128px) 0; }
.band .acts { margin-top: 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 15px; color: var(--ink-2); }
.site-foot .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot .brand { margin: 0 0 8px; font-weight: 600; font-size: 17px; color: var(--ink); }
.site-foot .brand + p { margin: 0; max-width: 22em; }
.site-foot h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .split, .blocks { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .parts > div, .parts > div + div { padding: 24px 0; border-left: 0; }
  .parts > div + div { border-top: 1px solid var(--rule); }
  .cmd { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cmd code { font-size: 12.5px; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .site-foot .cols > div:first-child { grid-column: 1 / -1; }
}
