*{
    margin: 0;
    padding: 0;
    border: none;
    font-family: 'LibreBaskerville';
    color: #3C3530;
    scroll-margin-top: calc(70px + 2rem);
}
mjx-container *{
    font-family: MJXZERO, MJXTEX;
}
::selection{
    background-color: #1F696A;
    color: #FFFFFF;
}
html{
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-size: 16px;
}
body{
    width: 100%;
    background-color: #FBE9CE;
}
main{
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
}
section{
    width: 100%;
}
section.gap{
    width: 100vw;
    height: 2rem;
}
.sec-main{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#main{
    padding: 1rem 9rem 1rem 3rem;
    width: calc(77vw - 12rem);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.container{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}
p{
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1.5rem;
}
span[data-title="h0"]{
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h1"]{
    max-width: calc(100% - 13rem);
    text-align: center;
    font-family: Cinzel;
    font-size: 3rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h2"]{
    width: fit-content;
    font-family: EagleLake;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h3"]{
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h4"]{
    font-size: 1rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h5"]{
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="text"]{
    width: 100%;
    font-size: 1rem;
    font-weight: normal;
    line-height: 175%;
    text-align: justify;
    display: block;
}
span[text-type="quote"]{
    font-size: 0.9rem;
    line-height: 150%;
    text-align: justify;
    display: block;
}
span[text-type="quote"]::before{
    content: "* ";
    font-size: 0.9rem;
}
span[text-type="equation"]{
    width: 100%;
    line-height: 100%;
    margin: -1rem 0;
}
span[data-texttype="equation"]{
    width: 100%;
    line-height: 100%;
    margin: -1rem 0;
}
span[data-highlight="underline"]{
    background: linear-gradient(to right, #FFD89E, #FFD89E) no-repeat center bottom;
    background-size: calc(100% + 2rem) 40%;
}
span[data-title="h1"][data-highlight="numbered"]{
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 5rem;
    position: relative;
}
span[data-title="h1"][data-highlight="numbered"]::before{
    content: attr(data-prefix);
    font-size: 2rem;
    position: absolute;
    left: 0;
    bottom: 0;
}
span[data-highlight="starring"]{
    padding: 2rem 0 1rem 3rem;
    align-self: center;
    position: relative;
}
span[data-highlight="starring"]::before{
    content: " ";
    width: 3rem;
    aspect-ratio: 1 / 1;
    border-style: solid;
    border-width: 1rem;
    border-color: #FFD89E;
    border-radius: 50%;
    z-index: 0;
    position: absolute;
    left: 0;
    bottom: 50%;
    transform: translate(0, 50%);
}
span[data-title="h1"][data-titlespec="quaint"]{
    color: #465A18;
    align-self: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
    position: relative;
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="background"]{
    width: calc(100% + 8rem);
    height: calc(100% + 1rem);
    z-index: -1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-left"]{
    width: 7rem;
    position: absolute;
    bottom: -0.5rem;
    left: -6.5rem;
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-right"]{
    width: 9rem;
    position: absolute;
    top: -2.2rem;
    right: -6rem;
}
*[data-highlight="underline"]{
    background: linear-gradient(to bottom, transparent, transparent calc(100% - var(--highlightThickness)), var(--highlightColor)calc(100% - var(--highlightThickness)));
}
*[data-vspace="1rem"]{
    width: 100%;
    height: 1rem;
}
*[data-vspace="2rem"]{
    width: 100%;
    height: 2rem;
}
*[data-vspace="4rem"]{
    width: 100%;
    height: 4rem;
}