:root { color-scheme: dark; }
* { box-sizing: border-box; }

body {
    max-width: 48rem;
    margin: auto;
    padding: 0 1.5rem;
    background: #181c20;
    color: #e5e7eb;
    font: 1.0625rem/1.8 system-ui, sans-serif;
    overflow-wrap: anywhere;
}

header { padding: 1.5rem 0; border-bottom: 1px solid #363d45; font-size: .9375rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
header a { font-weight: 600; text-decoration: none; }
main { padding: 3rem 0 5rem; }
article { display: flow-root; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 {
    margin: 0 0 1.5rem;
    font: 500 clamp(2.25rem, 6vw, 3.25rem)/1.2 Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
}
h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; letter-spacing: -.02em; }
h3 { margin: 2rem 0 .75rem; font-size: 1.125rem; }
p, ul, ol { margin: 0 0 1.25rem; }
li + li { margin-top: .4rem; }
li > ul, li > ol { margin: .25rem 0 0; padding-left: 1.25rem; }

a { color: #8bc8c6; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid #8bc8c6; outline-offset: 4px; border-radius: 2px; }

img { max-width: 100%; height: auto; border-radius: .5rem; }
img[alt="headshot"], .headshot, img[alt="small_headshot"], .small_headshot {
    display: block;
    float: left;
    width: 11rem;
    margin: .4rem 1.75rem 1rem 0;
    border-radius: .75rem;
    box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}
img[alt="small_headshot"], .small_headshot { width: 5rem; }

img[alt="portfolio_img"] {
    display: block;
    margin-inline: auto;
    max-width: 100%;
}

blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid #363d45; color: #a5adb7; }
.table-scroll { margin-bottom: 1.25rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; overflow-wrap: normal; }
th, td { padding: .5rem .75rem; border: 1px solid #363d45; text-align: left; vertical-align: top; }
th { background: #242b32; }
code, pre { background: #242b32; }
code { padding: .15em .35em; border-radius: .25rem; font-size: .875em; }
pre { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid #363d45; border-radius: .5rem; font-size: .875rem; line-height: 1.6; }
pre code { padding: 0; font-size: inherit; overflow-wrap: normal; }
.codehilite :is(.k, .kc, .kd, .kn, .kr, .ow) { color: #d9a6ff; }
.codehilite :is(.s, .sa, .s1, .s2, .sb, .se, .si) { color: #b7dd95; }
.codehilite :is(.m, .mi, .mf, .mb, .mh, .mo) { color: #ffc58d; }
.codehilite :is(.c, .c1, .ch, .cm) { color: #a5adb7; }
.codehilite :is(.nb, .nc, .nf) { color: #91c9ff; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid #363d45; }
::selection { background: #344f52; }

@media (max-width: 40rem) {
    body { padding: 0 1.25rem; font-size: 1rem; }
    main { padding: 2rem 0 3rem; }
    img[alt="headshot"], .headshot { float: none; margin: 1.5rem 0; }
}

.carousel {
    display: flex;
    align-items: center;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel > img {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
