body { font-family: "Raveo Variable", Raveo, "Inter Variable", Inter, sans-serif; background: var(--color-dark); color: var(--color-light); padding: 2rem; } body * { line-height: var(--line-height); } main, article { max-width: var(--width-content); margin: 0 auto; } h1, h2, h3, h4 { font-weight: 500; line-height: var(--line-height-smaller); margin-bottom: 0.5rem; & > a { line-height: var(--line-height-smaller); } } h1 { font-size: 2rem; font-weight: 600; } h2 { font-size: 1.66rem; margin-top: calc(var(--margin-base) + 1rem); } h3 { font-size: 1.33rem; margin-top: calc(var(--margin-base) + 0.5rem); } h4 { font-size: 1.25rem; } p { margin-bottom: var(--margin-base); } a { color: var(--color-rose); text-decoration: underline; &:hover { background: var(--color-light-rose); } &.target { @extend :hover; } } nav > a { line-height: var(--line-height-smaller); } em, cite { font-style: italic; } b { background: var(--color-light-rose); font-weight: 500; padding: 0.05em 0.1em; } ul, ol { margin-top: -1rem; margin-bottom: var(--margin-base); margin-left: 1rem; list-style-position: outside; } ul { list-style-type: disc; } ol { list-style-type: roman; } li { margin-bottom: 0.25rem; } .quote { font-size: var(--font-size-tiny); } blockquote { padding: 0.5rem 2rem; margin-bottom: 0.25rem; color: var(--color-gray); border-left: var(--color-rose) solid 0.25em; } figure { max-width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; text-align: center; margin-bottom: var(--margin-base); & a, img { max-width: 100%; display: block; } } .large { --max-width: var(--width-deco); --width: min(calc(100vw - 4rem), var(--max-width)); margin-left: max(calc((100% - var(--max-width)) / 2), calc((100% - var(--width)) / 2)); width: var(--width); max-width: var(--max-width); max-height: none; } figcaption { font-size: var(--font-size-tiny); color: var(--color-gray); } code, pre { background: var(--color-black); } code { padding: 0.05em 0.1em; font-family: monospace; font-size: var(--font-size-tiny); color: var(--color-white); border: var(--color-light) 1px solid; } pre { border: var(--color-rose) 2px solid; margin: 0 -1rem var(--margin-base) -1rem; padding: 0.5rem 1rem; & code { display: block; max-width: 100%; line-height: 1.5em; padding: 0; background: none; border: none; word-break: break-all; white-space: break-spaces; } } table { width: calc(100% + 4rem); margin: 2rem -2rem; padding: 0 1rem; line-height: var(--line-height-smaller); } thead { font-weight: bold; font-size: 1rem; background: var(--color-rose); color: var(--color-dark); & th { padding-top: 0.25rem; padding-bottom: 0.25rem; } } tbody { background: var(--color-light-rose); font-family: monospace; font-size: 0.85rem; } td, th { padding-left: 0.5rem; padding-right: 0.5rem; } .article__list { display: flex; flex-direction: column; gap: calc(2 * var(--margin-base)); } article.large { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; @media only screen and (max-width: 800px) { grid-template-columns: 1fr; } & h3 { margin-top: 0; } & p { margin-bottom: 0; } & figure { margin-bottom: 0; } & > div { margin-bottom: 2rem; } } .callout { display: flex; gap: 0.5rem; flex-direction: column; padding: var(--margin-base); background: var(--callout-color-background); color: var(--callout-color); margin-bottom: var(--margin-base); & h4 { margin-bottom: 0; font-weight: 600; } & div { display: flex; gap: 0.5rem; flex-direction: column; } & div p { margin-bottom: 0; } } [data-kind="note"] { --callout-color-background: hsl(201, 60%, 70%); --callout-color: hsl(189, 20%, 15%); } [data-kind="warn"] { --callout-color-background: hsl(39, 100%, 55%); --callout-color: hsl(40, 40%, 15%); } [data-kind="danger"] { --callout-color-background: hsl(345, 95%, 42%); --callout-color: hsl(345, 10%, 95%); }