


/* BASE TYPOGRPHY */
html,
body {
    font-family: var(--main-font);
    font-size: var(--base-unit);
    font-weight: var(--main-font-weight-regular);
    line-height: var(--base-line-height);
    color: var(--main-color);
    margin-bottom: 0;
}

body a {
    text-decoration: none;
}

body a:link {
    -webkit-tap-highlight-color: var(--main-color);
} /* this sets the highlight color when links are tapped on Safari (browser) on iPhone */


/* HEADERS */
.typography h1,
.typography h2,
.typography h3,
.typography h4,
.typography h5,
.typography h6 {
    font-family: var(--main-font); /* This references one of the custom @font-face fonts - the other fonts that are referenced are fallbacks for browsers that don't support @fontface */
    font-weight: var(--main-font-weight-semi-bold);
    margin-bottom: 0.3em;
    color: var(--main-color);
}

.typography h1 {
    font-size: 2.5rem;
    line-height: 1.0em;
    margin-bottom: 0.8em;
}

.typography h2 {
    font-size: 2.5rem;
    line-height: 1.3em;
    margin-bottom: 0.8em;
}

.typography h3 {
    font-size: 1.3rem;
    line-height: 1.3em;
    margin-bottom: 0.8em;
}

.typography h4 {
    font-size: 1rem;
    line-height: 1.3em;
    margin-bottom: 0.2em;
}

.typography h5 {
    font-size: 1rem;
    line-height: 1.3em;
    margin-bottom: 0.2em;
}

.typography h6 {
    font-size: 1rem;
    line-height: 1.3em;
    margin-bottom: 0.2em;
}

@media (max-width: 1200px){
    .typography h1 {
        font-size: 1.8rem;
        line-height: 1.0em;
        margin-bottom: 0.8em;
    }

    .typography h2 {
        font-size: 1.8rem;
        line-height: 1.3em;
        margin-bottom: 0.8em;
    }

    .typography h3 {
        font-size: 1.15rem;
        line-height: 1.3em;
        margin-bottom: 0.8em;
    }

    .typography h4 {
        font-size: 1rem;
        line-height: 1.1em;
        margin-bottom: 0.2em;
    }
}

@media (max-width: 700px){
    .typography h1 {
        font-size: 1.7rem;
        line-height: 1.0em;
        margin-bottom: 0.8em;
    }

    .typography h2 {
        font-size: 1.7rem;
        line-height: 1.3em;
        margin-bottom: 0.8em;
    }

}


/* PARAGRAGHS */
.typography  p {
    font-size: 1rem;
    line-height: 1.3em;
    margin: 0 0 0.8em;
}

.typography  p:last-child {
    margin-bottom: 0;
}

.typography em {
    font-style: italic;
}

::selection,
::-moz-selection {
    background: var(--main-color);
    color: #FFFFFF;
    text-shadow: none;
}

/* LINKS */
.typography a,
.typography a.intro
{
    color: var(--main-color);
}

.typography a:hover {
    color: var(--main-color);
    /*border-bottom: 2px solid #333333;*/
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

.typography a:focus {

}


/* LIST STYLES
-------------------------------------------- */
.typography ul,
.typography ol,
.typography dl {
    margin: 0 0 0 0;
}

.typography ul li {
    font-size: 1rem;
    line-height: 1.4em;
    list-style-type: disc;
    margin-bottom: 0.5em;
}

/* WYSIWYG EDITOR ALIGNMENT CLASSES
-------------------------------------------- */
.typography .text-left,
.typography .left
{
    text-align: left
}

.typography .text-center,
.typography .center
{
    text-align: center
}

.typography .text-right,
.typography .right
{
    text-align: right
}


/* IMAGES
-------------------------------------------- */
.typography img {
    border: none;
    height: auto;
}

.typography img.left {
    float: left;
    max-width: 50%;
    margin-bottom: 0.8rem;
    margin-right: 0.8rem;
}

.typography img.right {
    float: right;
    max-width: 50%; /* Responsive width */
    margin-bottom: 0.8rem;
    margin-left: 0.8rem;
}

.typography img.leftAlone {
    float: left;
    margin-right: 100%;
    margin-bottom: 0.8rem;
    clear: both;
}

.typography img.rightAlone {
    float: right;
    margin-left: 100%;
    margin-bottom: 0.8rem;
    clear: both;
}

.typography img.center {
    float: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 0.8rem;
    clear: both;
}

.typography .captionImage {
    width: 100%;
    margin-top: 0.8rem;
}

.typography .captionImage img {
    margin: 0;
}

.typography .captionImage.left {
    float: left;
    margin: 0.8rem 0.8rem 0.8rem 0;
}

.typography .captionImage.right{
    float: right;
    margin: 0.8rem 0 0.8rem 0.8rem;
}

.typography .captionImage.left[style],
.typography .captionImage.right[style] {
    max-width: 50%; /* Overides core width to make responsive */
}

.typography .captionImage.left img,
.typography .captionImage.right img
{
    float: none;
    max-width: none;
    width: 100%;
}

.typography .captionImage.left img {
    margin-right: -0.8rem;
}

.typography .captionImage.right img {
    margin-left: -0.8rem;
}

.typography .captionImage.leftAlone {
    float: left;
    clear: both;
    margin-right: 100%;
}

.typography .captionImage.rightAlone {
    float: right;
    clear: both;
    margin-left: 100%;
}

.typography .captionImage.center {
    margin: 0 auto 0.8rem;
}

.typography .captionImage p {
    clear: both;
    margin: 0.8rem 0;
    font-style: italic;
    color: var(--main-color);
}

.typography .captionImage p.caption.text-center {
    text-align: center;
}

.typography .captionImage p.caption.text-left {
    text-align: left;
}


/* BLOCKQUOTES
-------------------------------------------- */
.typography blockquote {
    background: transparent url(../images/blockquote.png) no-repeat 0px 6px;
    font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
    color: #777;
    display: block;
    font-style: italic;
    margin: 0 0 0.8rem;
    float: right;
    text-indent: 1.5rem;
    width: 50%;
    margin-left: 5%;
    clear: both;
}

.typography blockquote p {
    font-size: 1.2rem;
    line-height: 1.3em;
}

.typography pre {
    background: #F7F7F7;
    border: 1px solid #E4E4E4;
    font-family: Courier, monospace;
    margin: 0 0 0.8rem 0;
    padding: 0.2rem;
    clear: both;
}

/* ADDRESS
-------------------------------------------- */
address {
    display: block;
    margin-bottom: 0.8rem;
}
