body {
    background: var(--background-primary-color);
}

main {
    max-width: 800px;
    margin: auto;
    padding: 50px 20px;
    text-align: justify;
    line-height: 1.5;
}


ol, ul {
    margin: 0;
}

h1, h2, h3, h4, h5 {
    text-align: left;
}

h1 {
    font-size: 2em;
    text-align: center;
    padding: 2em 0.5em 3em;
}

h3 {
    font-size: 1.5em;
    padding: 2em 0 0.5em;
}

h4 {
    font-size: 1.25em;
    padding: 1.5em 0 0.5em;
}

h5 {
    padding: 0.5em 0 0.1em;
    font-size: 1.2em;
}


p {
    padding: 0.5em 0;
}


ol li ol li {
    padding: 0.25em 0;
}

ol li ol li:before {
    font-size: 1.25rem;
}

ol li p:first-child {
    padding-top: 0;
}

ul li {
    list-style-type: disc;
    padding: 0.25em 0 0.5em;
}

ol, ul {
    padding-inline-start: 20px;
}


ol:not([type="a"]):not([type="i"]) {
	list-style-type: none;
	counter-reset: item;
	padding: 0;
}
  
ol:not([type="a"]):not([type="i"]) > li {
	display: table;
	counter-increment: item;
	margin-bottom: 10px;
}
  
ol:not([type="a"]):not([type="i"]) > li:before {
	content: counters(item, ".") ". ";
    display: table-cell;
    font-weight: bold;
	padding-right: 1em;
}
  
li ol:not([type="a"]):not([type="i"]) > li:before {
    content: counters(item, ".") " ";
}

ol[type="a"] li,
ol[type="i"] li {
    padding-left: 0.5em;
}


table {
    font-size: 0.8em;
    text-align: left;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 1rem 0;
}

table td {
    padding: 0.5em;
    border: solid 1px var(--border-alpha);
    vertical-align: top;
}


a[href] {
	text-decoration: none;
	color: var(--highlight-color);
}

a[href]:hover {
    text-decoration: underline;
}


ol.tc > li:before {
    font-size: 1.5em;
}



@media only screen and (max-width: 300px) {

    h1 {
        font-size: 1.5em;
        letter-spacing: -0.05em;
        text-align: center;
        padding: 2em 0.5em 3em;
    }

}
