*, *::after, *::before {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; height: 100%; background: white;}
body {color: black; font-family: 'Elephant Light'; min-height: 100svh; display: flex; flex-direction: column;}
.header, .content {background: white;}
.container {max-width: 86rem; width: 100%; margin: 0 auto; padding-inline: 2rem; grid-gap: 0;}
a {text-decoration: none; color: black;}
.content img {display: block; width: 100%;}
.header li, .footer li {list-style: none;}
img.circle {border-radius: 100%;}
h1, h2 {font-size: 1.35rem; font-weight: normal;  font-family: 'Elephant Medium'; margin-block: 2rem 0.2rem; line-height: 1.3; color: #111}
.button, input[type="submit"] {display: inline-block; background: #111; color: white; font-family: 'Elephant Medium'; padding: 0.2rem 1.5rem 0.3rem 1rem; height: 2.2rem; border: 0;}

/* HEADER */
.header {position: sticky; top: 0; z-index: 2;}
.header .container {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-block: 2.5rem 0.9rem; 
    position: relative;
    height: 7.4rem;
}
.header .container::after {
    content: "";
    position: absolute;
    left: 2rem;
    width: calc(100% - 4rem);
    bottom: 0;
    background: black;
    height: 1px;
}
.header .container > a.button {display: none; position: relative; top: 0.3rem}
.header .container > a.button > span:nth-child(1) {display: inline-block; position: relative; top: 0.65rem; opacity: 0.5; font-size: 115%; margin-right: 0.75rem;}
.header .container > a.button > span:nth-child(2) {width: 3.25rem; display: inline-block; height: 2.9rem; position: relative; vertical-align: middle;}
.header .container > a.button > span:nth-child(2) span {height: 3px; display: block; background: black; position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%;}
.header .container > a.button > span:nth-child(2) span:nth-child(1) {top: 25%;}
.header .container > a.button > span:nth-child(2) span:nth-child(3) {top: 75%;}
.header .container > div {display: flex; align-items: flex-end;}
.header .container > div > a {margin-right: 2rem;}
.header .container > div > a > img {height: 3rem; display: block; position: relative; top: 0.15rem;}
.header .container > img {position: relative; top: 0.15rem;}
.header .container > div ul {display: flex; gap: 2rem; align-items: flex-end;}
.header .container > div ul li a {color: black;}
.header .container > div ul li.active a {color: #f0008c; font-family: 'Elephant Medium';}
.header .container > img {height: 4rem;}


/* CONTENT */

.content {padding-block: 1.25rem 4rem; flex-grow: 1; font-family: 'CaeciliaLTPro55Roman'; font-size: 1.1rem;}
.content ul {margin-left: 1rem;}
.content p, .content ol, .content ul {margin-bottom: 1.25em;}
.content p a {text-decoration: underline; text-decoration-color: rgba(0,0,0,0.4); text-underline-offset: 0.2rem;}


/* COLUMNHOLDER */

.columnholder {display: flex;}
.columnholder > div {flex: 1; padding-right: 3.5rem;}


/* FORMS */

form {display: flex; flex-direction: column; gap: 0.75rem;}
form > div {display: flex; flex-direction: column; gap: 0.5rem;}
form > div label {font-family: 'Elephant Medium'; color: #111;}
form > div input {border: 1px solid black; padding: 0.4rem 0.4rem; font-family: 'CaeciliaLTPro55Roman'; font-size: 1.1rem;}


/* FILTER */

.content .filters {font-family: 'Elephant Light'; font-size: 1rem;}
.content ul.filter {margin: 2rem 0 0;}
.content ul.filter li {list-style: none;}
.content ul.filter li a {display: flex; align-items: center; gap: 0.6rem; line-height: 2;}
.content ul.filter li.active a {color: #f0008c;}
.content ul.filter li a span {width: 0.9rem; height: 0.9rem; display: block; background: silver; position: relative; bottom: 0.15rem;}
.content ul.filter li a span.circle {border-radius: 100%;}


/* LESSONS */

.content .lessons {display: flex;}
.content .lessons > div {flex: 1;}
.content .lessons > div.twocolumns {flex: 2;}
.content .lessons > div.twocolumns ul {margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); grid-gap: 1rem;}
.content .lessons > div.twocolumns ul li {list-style: none;}


/* LESSON */

.content .lesson {display: flex;}
.content .lesson > div {flex: 1;}
.content .lesson > div.twocolumns {flex: 2;}
.content .lesson > div.twocolumns > div {padding-right: 3.5rem;}
.content .lesson .relatedlessons ul {margin: 0;}
.content .lesson .relatedlessons ul li {list-style: none; margin-bottom: 1.75rem;} 


/* REVIEW */

.review {display: flex; align-items: center;}
.review > * {flex: 1;}
.review:nth-child(even) {flex-direction: row-reverse;}


/* SPEECHBALLOON */

.speechballoon {
    margin: 2.25rem; 
    display: block; 
    padding: 2.75rem 2.2rem 4rem 2.6rem; 
    aspect-ratio: 1; 
    font-family: 'Elephant Medium';
    font-size: 1.38rem;
    background: url(/img/speechballoon.svg) center top / contain no-repeat;
    line-height: 1.3;
    position: relative;
    right: 0.2rem;
    top: 1rem;
}
.speechballoon p {margin-bottom: 1.3em;}
.speechballoon p a {color: #f0008c; font-family: 'Elephant Light'; text-decoration: none;}
.speechballoon.mirrored {right: auto; left: 0.2rem;}
.speechballoon.mirrored, .speechballoon.mirrored > div {transform: scaleX(-1);}


/* LESSONS */

.content ul.lessons {
    margin: 0; 
    display: grid; 
    grid-gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}
.content ul.lessons li {list-style: none; position: relative;}
.content ul.lessons li img {margin: 0;}


/* FOOTER */

.footer {background: #111; color: white;}
.footer a {color: white;}
.footer .container ul {margin: 1.5rem 0 1.75rem;}
.footer .container {display: flex;}
.footer .container > * {flex: 1;}


/* RESPONSIVE */

@media screen and (max-width: 75rem) {
    .content .container.reviews {max-width: 59rem;}
    .review > *:nth-child(3) {display: none;}
}
@media screen and (max-width: 56rem) {
    .header .container > img, .header .container > div ul {display: none;}
    .header .container > a.button {display: block;}
    .content .lesson {flex-direction: column; gap: 2rem;}
    .content .lesson > div.twocolumns > div, .relatedlessons {padding-right: 1.25rem;}
}
@media screen and (max-width: 52rem) {
    .content .container.reviews {max-width: 31.5rem;}
    .review {display: block;}
    .content .lessons > div.twocolumns {flex: 1;}
}
@media screen and (max-width: 35rem) {
    .footer .container {flex-wrap: wrap;}
    .footer .container > * {min-width: 50%;}
}
@media screen and (max-width: 27.5rem) {
    html {font-size: 3.2vw;}
}