/* TEEMAN SIVUSTONLAAJUISET PERUSTYPOGRAFIA-ASETUKSET */
/* Tämä tiedosto sisältää SIVUSTON perustypografian.
Sivustolla asetettu perusfonttikoko on selaimen perusfontin mukaan suhteellisesti määritetty niin, että 1rem = 10px
Muita muotoiluja sijaitsee erilisessä tiedostossa custom.css, jossa saattaa olla myös joitain erityismuotoiluja
typografiaan liittyen, jotka yliajavat nämä asetukset.*/

html {
    font-size: 62.5%; /* Asetetaan peruskoko 10px, helpottaa rem-yksiköiden käyttöä */
}
body {
    font-family: "Open Sans", sans-serif; /* Perusfontti */
    font-size: 2.3rem;
}
@media (max-width: 768px) {
    body {
        font-size: 2rem;}
    }
p {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: 0;
    color: #2b2b2a;
}
blockquote p {
    font-family: "Almendra", serif;
    font-size: 3.3rem;
    color: #875f00;
}
figcaption.widget-image-caption.wp-caption-text {
    padding-top: 0.5rem;
    text-align: left;
    font-size: 1.9rem;
    font-style: italic;
}
.elementor-slideshow__title {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.taxonomy-description p {
    margin: 0;
    padding: 0;
    font-size: 2.3rem;
    font-weight: 500;
}

/*Otsikkotaso 1*/
h1 {
    font-family: "Almendra", serif;
    font-size: 4.2rem;
    font-weight: 400;
    font-style: normal;
    color:#30723d;
}
.page h1.entry-title {
    display: block;
    width: fit-content;
    padding: 1rem 1.6rem 1rem 3%;
    border-radius: 0 2rem 2rem 0;
    color: #d6b04c;
    background-color: #00000085;
}
.single h1.entry-title {
    display: block;
    max-width: fit-content;
    font-size: 3.6rem;
    margin-left: -3%;
    padding: 0 1.6rem 0 2%;
    border-radius: 0 2rem 2rem 0;
    color: #c0c6a5;
    background-color: #110c007c;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 0.8s ease-out forwards;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.archive h1.taxonomy-title, .blog h1.page-title {
    display: block;
    max-width: fit-content;
    font-size: 5.2rem;
    margin-left: -3%;
    padding: 0 1.6rem 0 2%;
    border-radius: 2rem;
    color: #c0c6a5;
    background-color: #110c007c;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.archive h1.taxonomy-title .subheader-taxonomy-title {
    font-family: "Alegreya Sans", sans-serif;
    display: block;
    font-size: 3.4rem;
    letter-spacing: 0.04em;
    color: #c0c6a5;
    margin-top: 0.5rem;
}  
.almendra-big-green {
    font-family: "Almendra", serif;
    font-size: 4.2rem;
    font-weight: 400;
    font-style: normal;
    color:#30723d;
}

/*Otsikkotaso 2*/
h2, h2.entry-title a {  
    font-family: "Alegreya", serif;
    font-optical-sizing: auto;
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 45px;
    letter-spacing: 0;
    color: #30723d;
}
 .slider .text h2 {
    font-family: "Almendra", serif;
    font-size: 5.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: #f7f1df;
    margin: 2rem 0;
}
 .slider .koulu-slider-text h2 {
    font-family: "Almendra", serif;
    font-size: 4.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: #f7f1df;
    margin: 2rem 0;
}
.slider h2.sub {
    font-family: "Alegreya Sans", sans-serif;
    font-size: 3.3rem;
    text-align: center;
    letter-spacing: 0.02em;
}
.slider h2.slider-text-left {
    font-family: "Almendra", serif;
    font-size: 3.3rem;
    text-align: left;
    letter-spacing: 0.02em;
    color: #f7f1df;
}
.archive h2.entry-title {
    font-family: "Almendra", serif;
    font-size: 3.5rem;
    margin: 0;
}
/*Post sidebar typografiaa*/
aside.post-sidebar-wrapper h2.wp-block-heading {
    font-family: "Almendra", serif;
    font-size: 2.8rem;
}
ul.wp-block-latest-posts__list.wp-block-latest-posts, label.wp-block-search__label, .no-comments.wp-block-latest-comments {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    line-height: 1.4;
    list-style-type: none;
    padding: 0 1rem 0 0;
    margin: 0;
}

/*Otsikkotaso 3*/
h3 {
    font-family: "Alegreya", serif;
    font-optical-sizing: auto;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: #2b2b2a;
}

a {
    color: #3b4890;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.site-navigation a {
    font-family: "Almendra", serif;
    font-weight: 400;
    font-style: normal;
    color: #106232;
    font-size: 2.3rem;
    line-height: 1;
}
.site-navigation .sub-menu a {
    font-family: "Alegreya", serif;
    padding: 0.3rem 1.7rem;
    border-bottom: none;
    color: #41395a;
    font-size: 1.9rem;
    line-height: 1.2;
}
.elementor-button, .button {
    font-family: "Alegreya Sans", sans-serif;
    font-size: 2rem!important;
    font-weight: 400;
    line-height: 1.2!important;
    letter-spacing: 0.06em;
}


/*Artikkelien sivun typografiaa*/
.blog .article-card p {
    font-size: 2.2rem;
    line-height: 1.3;
}

/*Footer muotoilut*/
.footer-columns p, .site-footer .subfooter .subfooter-text {
    color: #f1fafe;
    font-size: 2rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.06em;
}
ul#menu-footer-navigointi {
    list-style-type: none;
    margin: 0;
    padding-inline-start: 0;
}
@media (max-width: 768px) {
    .archive h2.entry-title {
    font-size: 2.7rem;
}
.archive .article-card .post-meta {
    font-size: 1.6rem;
}
.archive .article-card p {
    font-size: 2.2rem;
    line-height: 1.3em;
}
.single h1.entry-title {
    font-size: 3.3rem;
    margin-left: 0;
    padding: 1rem 2rem 2rem 2rem;
    border-radius: 2rem;
}
.slider .text h2 {
    font-size: 4.2rem;
}
.slider .text h2.slider-alaotsikko {
    font-size: 3rem;
    margin-top: 0.5rem;
}
}
/* Sivupalkkien muiotoilut */
.widget ul {
    padding-left: 0;
    margin-block-start: 0.3rem;
}
.widget ul li {
    list-style-type: none;
    line-height: 1.2;
}
.primary-sidebar .widget:first-child h3.widget-title {
    margin-top: 0;
}

.primary-sidebar h3.widget-title {
    font-size: 2.8rem;
    margin-top: 3rem;
    margin-bottom: 0.4rem;
}
.primary-sidebar li a {
    font-size: 2rem;
    color: #30723d;
}
/*avainsanapilvi*/

.tagcloud {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
.tagcloud a {
    font-family: "Alegreya Sans", sans-serif;
    font-size: 2.2rem !important;
    color: #e8dcd4;
    padding: 0.3rem 0.8rem;
    background-color: #30723d;
    border-radius: 10px;
    margin: 0.5rem;
}