.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--pad); }
header { padding: clamp(1rem, 2vw, 1.75rem) 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--lime); outline: 1px solid var(--forest); }
header a:not(.brand) { font-size: var(--text-sm); text-underline-offset: 5px; }
main { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 7rem); }
.doc { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 3vw, 3rem); }
.doc-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 2rem; }
.doc-head h1 { font-family: var(--display); font-weight: 700; font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1.25rem; text-wrap: balance; }
.doc-head p { color: var(--ink-2); max-width: 34ch; margin: 0 0 0.75rem; }
.doc-head .date { font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.doc-body { grid-column: 7 / -1; max-width: 68ch; }
.doc-body h2 { font-family: var(--display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; margin: 2.75rem 0 0.75rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-2); line-height: 1.65; }
.doc-body ul { padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.doc-body a { text-underline-offset: 4px; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: var(--text-sm); color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 860px) {
  .doc-head, .doc-body { grid-column: 1 / -1; position: static; }
}
.doc-body h3 { font-family: var(--ui); font-weight: 650; font-size: var(--text-base); margin: 1.5rem 0 0.4rem; }
.doc-body p + p, .doc-body ul + p, .doc-body p + ul, .doc-body .scroll + p { margin-top: 0.75rem; }
.doc-body ul { margin: 0; }
.doc-body code { font-family: var(--mono); font-size: 0.9em; }
.doc-body .scroll { overflow-x: auto; margin-top: 0.75rem; }
.doc-body table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); }
.doc-body caption { text-align: left; font-size: var(--text-xs); color: var(--ink-2); padding-bottom: 0.5rem; }
.doc-body th { text-align: left; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); padding: 0 0.75rem 0.5rem 0; }
.doc-body td { padding: 0.6rem 0.75rem 0.6rem 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
/* Information still to be supplied before publication. */
.todo { margin-top: 0.75rem; padding: 0.75rem 0.9rem; border: 1px dashed var(--rust); border-radius: 10px; color: var(--rust); font-family: var(--mono); font-size: var(--text-xs); }
mark.todo-inline { background: none; color: var(--rust); font-family: var(--mono); font-size: 0.9em; }
.doc-body pre { font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; background: var(--forest-2); color: var(--ivory); padding: 0.9rem 1rem; border-radius: 10px; overflow-x: auto; margin: 0.75rem 0 0; }
.doc-body pre + p { margin-top: 0.75rem; }
.doc-body td code { white-space: nowrap; }
