@charset "utf-8"; :root { --color-bg-dark: #0a0d10; --color-bg-light: #fff6fdaa; --color-fg-dim-0: #444; --color-fg-dim-1: #666; --color-fg-dim-2: #999; --color-fg-dim-3: #ccc; --color-fg-dim-4: #eee; --color-bg-dim-0: #f1f1f1; --color-bg-dim-1: #fafafa; --color-fg-subtle-pink: #4c3159; --color-fg: #1a1a1a; --color-yellow: #ffff88; --color-fg-highlight: #5555bb; --color-fg-highlight-secondary: #229944; --color-border-highlight: #aaaaee; --color-bg-highlight: #efefff; } ::selection { background-color: var(--color-yellow); } * { box-sizing: border-box; } html { font-family: var(--font-family-default); color: var(--color-fg); min-width: 1280px; } body { margin: 0; } header, main, footer { display: grid; grid-column-gap: 2rem; grid-auto-flow: row; grid-template-columns: [screen-start] 1fr [page-start kicker-start left-start] 6rem 6rem [text-start kicker-end] 2rem 3rem 6rem 3rem [left-end right-start] 3rem [text-middle] 3rem 6rem 2rem [text-end gutter-start] 6rem 6rem [page-end gutter-end right-end] 1fr [screen-end]; grid-template-rows: auto [last-row]; } main { align-items: first baseline; padding-bottom: 8rem; } header, footer { color: rgba(255, 255, 255, 0.8); font-weight: 300; } header { background-color: var(--color-bg-dark); height: 4rem; align-items: stretch; } footer { padding: 4rem 0; } nav { display: grid; grid-column: right; grid-auto-flow: column; grid-gap: 1.5rem; align-items: stretch; justify-self: end; text-transform: uppercase; } header a { display: flex; align-items: center; } main > *, footer > * { grid-column: text; } footer > *:last-child { margin-bottom: 0; } strong { font-weight: 600; } h1 { font-size: var(--font-size-xx-large); font-weight: var(--font-weight-semibold); margin: 4rem 0 0.5rem; line-height: 1.1; } h2 { font-size: var(--font-size-x-large); font-weight: var(--font-weight-semibold); margin: 3.75rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-fg-dim-4); } h3 { font-size: var(--font-size-large); font-weight: var(--font-weight-semibold); margin: 2rem 0 1.5rem; } h4 { font-size: var(--font-size-medium); font-weight: var(--font-weight-semibold); margin: 1.5rem 0 1rem; } h5 { font-size: var(--font-size-small); font-weight: var(--font-weight-semibold); margin: 1rem 0 0.25rem; } pre, code { color: var(--color-fg-subtle-pink); font-family: var(--font-family-code); } pre { background-color: var(--color-bg-light); overflow-x: scroll; font-size: 0.875rem; border-radius: 4px; padding: 1rem; margin: 0; } pre code { background: none; padding: 0; } pre.center { text-align: center; } p code, ul code, ol code, aside code { padding: 1px 4px; border-radius: 2px; word-spacing: -2px; background-color: var(--color-bg-light); } strong code { font-weight: 600 !important; } p code { font-weight: 400; } aside code { font-weight: normal; } table { font-size: 0.875rem; border-collapse: collapse; background-color: var(--color-bg-dim-1); } table td:first-child { white-space: nowrap; padding-right: 1rem; } table td { vertical-align: top; border-bottom: 1px solid white; padding: 0.5rem; } table th { font-size: var(--font-size-small); font-weight: var(--font-weight-regular); background-color: var(--color-bg-dim-0); padding: 0.5rem; text-align: left; } table code { font-weight: normal; } p:last-child { margin-bottom: 0; } p + blockquote { margin-top: 1rem; } blockquote + p { margin-top: 1rem; } blockquote { color: var(--color-fg-dim-0); background: var(--color-bg-highlight); padding: 1rem; margin: 1rem 0; border-left: 2px solid var(--color-border-highlight); } .title { grid-column: left; display: grid; grid-auto-flow: column; align-items: stretch; justify-self: start; } .title img { width: 1.75rem; height: 1.75rem; } .toc + hr { margin-bottom: 4rem; } .first { margin-top: 60px; } .subtitle { font-size: 1.125rem; color: var(--color-fg-dim-1); margin: 0 0 4rem; } main figure, main img { margin: 1rem 0 2rem 0; } main img, main object { margin: 0; padding: 0; border: 0; outline: none; } main img.placeholder { width: 100%; height: 8rem; border: none !important; outline: none !important; background: var(--color-fg-dim-4) !important; } figure { width: 100%; } figure pre { margin: 0; } figure img, figure object { display: block; margin: 0 auto; } figure object + figcaption { margin-top: 1rem; } figure.diagram { grid-column-start: kicker-start; grid-column-end: gutter-end; } figure.diagram.tall { grid-column-start: text-start; grid-column-end: text-end; } figcaption { margin-top: 0.5rem; width: 100%; white-space: nowrap; overflow-x: hidden; text-align: center; text-overflow: ellipsis; } aside { grid-column: gutter; } aside.span-2 { grid-row: span 2; } aside.span-3 { grid-row: span 3; } aside.span-4 { grid-row: span 4; } aside.span-5 { grid-row: span 5; } aside p { margin-bottom: 1em; } aside.kicker { grid-column: kicker; } aside.diagram { margin-top: 1.5rem; } figcaption, aside { font-size: 0.75rem; line-height: 1.5; color: var(--color-fg-dim-1); } a { color: unset; text-decoration: unset; } p a { border-bottom: 1px solid var(--color-fg-dim-2); } p a:hover { border-bottom-color: var(--color-fg-dim-1); } p, ol, ul, table, pre { margin: 0 0 1rem; } ol, ul { padding-left: 2rem; } li { padding-left: 0.5rem; } hr { grid-column: screen; width: 100%; border: none; border-top: 1px solid var(--color-fg-dim-4); margin: 0; } span.highlight { color: var(--color-fg-highlight); } span.highlight-secondary { color: var(--color-fg-highlight-secondary); } .button { color: var(--color-fg-highlight); font-weight: normal; padding: 1rem 2rem; border: 1px solid var(--color-fg-highlight); border-radius: 4px; } .button:hover { color: white; background-color: var(--color-fg-highlight); } .toc { display: flex; flex-direction: column; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem !important; margin: 2rem 0; padding: 0; max-height: 16rem; } .toc a { border-bottom-width: 1px; border-bottom-style: none; } .toc a:hover { border-bottom-style: solid; } .toc code { font-size: 0.75rem; } .toc li, .toc ul { padding: 0; margin: 0; list-style-type: none; } .toc-h2 > a { font-weight: bold !important; } .toc-h2 > ul { margin-left: 0.5rem; } .toc-h3 > ul { margin-left: 1rem; } .toc-h3 > a, .toc-h4 > a, .tok-h5 > a { color: var(--color-fg-dim-1); } .poem { font-style: italic; font-size: 0.75rem; grid-column-start: text-start; grid-column-end: text-middle; margin-bottom: 1rem; padding-left: 2rem; }