@use 'fonts'; @use 'theme'; *, *::before, *::after { box-sizing: border-box; } html { font-family: fonts.$text-font; scroll-behavior: smooth; } body { color: var(--text); background-color: var(--base); font-size: 1rem; font-weight: light; line-height: 1.75; } main { display: flex; align-items: center; flex-direction: column; } article { max-width: min(50rem, 90%); } section { &.title { border-bottom-width: 1px; border-bottom-color: var(--surface0); border-bottom-style: solid; } } h1 { font-size: 2rem; font-weight: bold; margin-top: 2rem; margin-bottom: 1rem; &.title { font-size: 2.5rem; font-weight: bolder; margin-bottom: 0; color: var(--maroon); } } h2 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: bold; } h3 { font-size: 1.2rem; margin-bottom: .6rem; font-weight: bold; } h4 { font-size: 1.1rem; font-weight: bold; } h5 { font-size: 1rem; font-weight: bold; } h6 { font-size: .9rem; font-weight: bold; } p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } p { margin-top: 1.25rem; margin-bottom: 1.25rem; &.subtitle { color: var(--subtext0); margin-top: 0; margin-bottom: 3rem; } } a { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue), transparent 40%); text-decoration-thickness: 0.01rem; text-underline-offset: 0.3rem; &:hover { color: var(--sky); } &:visited { color: var(--lavender); } } li { &::marker { color: var(--overlay1); } } img, video { max-width: 100%; height: auto; margin-left: auto; margin-right: auto; display: block; border-radius: var(--standard-border-radius); } pre { padding: 1.25rem; border-radius: var(--standard-border-radius); border-style: solid; border-color: var(--surface0); border-width: 0.15rem; & > code { background-color: initial; border: initial; } } code { background-color: var(--mantle); padding: .2rem; border-radius: .3rem; border-style: dashed; border-width: .1rem; border-color: var(--surface0); } table { border-collapse: separate; border-spacing: 0; margin-top: 1.5rem; margin-bottom: 1.5rem; margin-left: auto; margin-right: auto; } td, th { padding: 0.5rem; padding: 1rem 1.5rem; border-style: solid; border-width: .1rem; border-color: var(--surface0); text-align: start; } th { background-color: var(--base); text-transform: uppercase; font-weight: bold; font-size: small; border: none } tr:first-child > td:first-child { border-top-left-radius: var(--standard-border-radius); } tr:first-child > td:last-child { border-top-right-radius: var(--standard-border-radius); } tr:last-child > td:first-child { border-bottom-left-radius: var(--standard-border-radius); } tr:last-child > td:last-child { border-bottom-right-radius: var(--standard-border-radius); } tr > td:last-child { border-right-width: .15rem; } tr:first-child > td { border-top-width: .15rem; } tr > td:first-child { border-left-width: .15rem; } tr:last-child > td { border-bottom-width: .15rem; } tr:nth-child(even) td { /* Set every other cell slightly darker. Improves readability. */ background-color: var(--mantle); } hr { color: var(--surface0); margin-top: 3rem; margin-bottom: 3rem; width: 50%; margin-left: auto; margin-right: auto; }