@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:wght@400;700&family=Alegreya:wght@400;500;700&display=swap');

.type-oldstandardtt-alegreya {

    --body-typeface: 'Alegreya', serif;
    --header-typeface: 'Old Standard TT', serif;

    font-family: var(--body-typeface);
    font-size: 100%;
    line-height: 1.78;
    font-weight: 400;
    letter-spacing: 0.005em;

    & p, & blockquote, & td, & li, & label {
        font-family: var(--body-typeface);
        font-size: 1.08rem;
        line-height: 1.8;
        font-weight: 400;
        letter-spacing: 0.005em;
    }

    & h1, & h2, & h3, & h4, & h5, & h6 {
        font-family: var(--header-typeface);
        font-weight: 700;
        line-height: 1.22;
        letter-spacing: 0.01em;
    }

    & h1 {font-size: 2.85rem;margin: 0.19rem 0 0.3rem;}
    & h2 {font-size: 2.15rem;margin: 0.27rem 0 0.3rem;}
    & h3 {font-size: 1.7rem;margin: 0.4rem 0 0.3rem;}
    & h4 {font-size: 1.38rem;margin: 0.45rem 0 0.3rem;line-height: 1.28;}
    & h5 {font-size: 1.18rem;margin: 0.52rem 0 0.3rem;line-height: 1.35;}
    & h6 {font-size: 1.02rem;margin: 0.73rem 0 0.3rem;font-weight: 400;line-height: 1.4;}
    & p, & blockquote {margin:1rem 0;}

    & h1.o4-display {
        font-family: var(--header-typeface);
        font-size: 4.3rem;
        letter-spacing: 0.005em;
        line-height: 1.12;
        text-transform: none;
        font-weight: 700;
        margin: 0.4rem 0;
    }

    & p.o4-display, & li.o4-display {
        font-family: var(--body-typeface);
        font-size: 1.2rem;
        line-height: 1.5;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        font-weight: 500;
    }

    & .o4-button .button-label { padding: 11px 0px 9px; }
    & .o4-button.small .button-label { padding: 6px 0px 4px; }
    & .display-font1 {font-family: var(--header-typeface) !important; letter-spacing:0.5px}
    & .display-font2 {font-family: var(--body-typeface) !important;}

    @container page (max-width: 640px) {
        & h1.o4-display {font-size: 2.7rem;}
        & p.o4-display, & li.o4-display {font-size: 1.05rem;}
        & h1 {font-size: 2.1rem;}
        & h2 {font-size: 1.65rem;}
        & h3 {font-size: 1.4rem;}
        & h4 {font-size: 1.2rem;}
        & h5 {font-size: 1.08rem;}
        & h6 {font-size: 0.96rem;}
    }
}
