/* DESKTOP */
:root{
    --space-xs: 12px;
    --space-sm: 24px;
    --space-md: 48px;
    --space-lg: 96px;
    --space-xs-static: 12px;
    --space-sm-static: 24px;
    --space-md-static: 48px;
    --space-lg-static: 96px;
    --border-width: 2px;
    --flex-direction: row;
    --flex-direction-alternate: row-reverse;
    --image-height: 100%;

    --color-page: #fff;
    --color-brand: #800;
}

/* TABLET */ 
@media screen and (max-width: 880px) {
   :root {
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
  }
}

/* MOBILE */ 
@media screen and (max-width: 720px) {
   :root {
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
    --flex-direction: column;
    --flex-direction-alternate: column;
    --image-height: 320px;
  }
}

body{
    font-family: 'Open Sans', sans-serif;
    padding: 0;
    margin: 0;
    background-color: var(--color-page);
}

section{
    display: flex;
    flex-direction: var(--flex-direction);
    position: relative;
}

section:nth-child(even){
    flex-direction: var(--flex-direction-alternate);
}

section > div {
    flex: 1 1 50%;
}

.content{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    gap: 0;
    box-sizing: border-box;
}

.hero .content{
    padding: var(--space-lg-static) 0;
    gap: var(--space-lg);
}

.hero img{
    object-position: left;
}

hr{
    border: none;
    border-top: var(--border-width) solid var(--color-brand);
    width: 100%;
    margin: 24px 0;
}

hr::after{
    content: url(../logo/Symbol.svg);
    -webkit-mask-size: cover;
    mask-size: cover;
    background-color: var(--color-page);
    height: 48px;
    width: 48px;
    position: absolute;
    transform: translateY(calc(-50% - (var(--border-width) / 2))) translateX(-50%);
    padding: 0;
}

img{
    width: 100%;
    height: var(--image-height);
    position: relative;
    object-fit: cover;
}

nav{
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

a.button{
    font-family: "Crimson Text", serif;
    display: flex;
    flex: 0 1 auto;
    align-self: center;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 24px;
    box-sizing: border-box;
    margin: 0;

}

a.button.primary{
    background-color: var(--color-brand);
    color: var(--color-page);
    padding: 12px 24px;
}

a.button.secondary{
    border: solid 2px var(--color-brand);
    color: var(--color-brand);
    padding: 10px 22px;
}

.logo{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs-static)
}

.logo h1{
    margin: 0;
    padding: 0;
    color: var(--color-brand);
}

.logo.trondheim span:first-child{
    font-size: 42px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: 0;
}

.logo span:last-child{
    font-size: 34px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: 0;
}

.logo span{
    display: block;
}

h1, h2, h3{
    font-family: "Crimson Text", serif;
    margin: 0 0 var(--space-md);
    font-weight: 300;
    color: var(--color-brand);
}

h4, h5, h6{
    font-family: "Crimson Text", serif;
    margin: 0 0 var(--space-sm);
    font-weight: 300;
    color: var(--color-brand);
}

h1{
    font-size: 48px;
    line-height: 48px;
}

h2{
    font-size: 40px;
    line-height: 48px;
}

h3{
    font-size: 30px;
    line-height: 36px;
}

h4{
    font-size: 20px;
    line-height: 24px;
}

h5{
    font-size: 16px;
    line-height: 24px;
}

p, a{
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 var(--space-sm-static);
}

footer{
    padding: var(--space-lg);
    background-color: var(--color-brand);
    color: var(--color-page);
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6{
    color: var(--color-page);
}

footer a{
    color: var(--color-page);
}

.icon{
    width: var(--space-sm-static);
    height: var(--space-sm-static);
    margin: var(--space-xs-static);
}