/* colors */

@view-transition {
  navigation: auto;
}

:root {
    color-scheme:dark;
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --overlay2: #9399b2;
    --overlay1: #7f849c;
    --overlay0: #6c7086;
    --surface2: #585b70;
    --surface1: #45475a;
    --surface0: #313244;
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
    --inverted-text: var(--crust);
    --selection-color: var(--mauve)
}
/* generic */
body {
    background-color: var(--base);
    color: var(--text);
    margin: auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: Georgia, serif;
}

h1,h2,h3,h4,h5,h6 {
    line-height: 2rem;
    font-family: Helvetica, Arial, sans-serif;
    margin-bottom: 0.5rem;
}

#content > * > *:is(h1,h2,h3,h4,h5,h6):first-child {
    margin-top: 0.75rem;
}

p {
    margin: 0.75rem 0;    
}

ul, ol {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

li {
    padding-left: 0;
    margin-bottom: 0.25rem;
}

li > *:is(ul,ol) {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 > a {
    color: var(--text);
    text-decoration: none;
}

/* default layout stuff */

header, footer {
    margin: 1rem;
}

header > nav > span {
    margin-right: 0.5rem;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* flexbox for default layout */

#content > *  {
    padding: 0.5rem 1rem;
}

#content {
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
}

@media (width <= 760px) {
    #content {
        flex-direction: column;
    }
}

#content > main {
    flex: 73;
    background-color: var(--crust);
}

#content > aside {
    flex: 27;
    min-width: 125px;
    background-color: var(--crust);
    height: min-content;
}

*:not(p,li,ul,ol) > *:is(b,strong) {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
}

nav * {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: lighter;
}