:root {
  --theme-page-bg-color: #333;
  --theme-section-bg-color: #FFF;

  --theme-nav-bg-color: #333;
  --theme-nav-text-color: #FFF;
  --theme-nav-bg-color-active: #555;
  --theme-nav-box-shadow: #CCC;

  --theme-footer-bg-color: #333;
  --theme-footer-text-color: #FFF;

  --theme-button-bg-color: #333;
  --theme-button-text-color: #FFF;
  --theme-button-box-shadow: #CCC;

  --theme-ellipsis-bg-color: inherit;
  --theme-ellipsis-text-color: #333;
  --theme-ellipsis-border: 1px solid #333;

  --theme-home-hero-image: url('/assets/home.hero.jpg');

  --theme-gallery-piece-box-shadow: #CCC;

  --theme-form-box-shadow: #CCC;
  --theme-form-error-color: red;
}

/*
 * General
 **/
* {
  font-size: 16px;
  line-height: 20px;
  box-sizing: border-box;
}

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

h2 {
  font-size: 24px;
  line-height: 30px;
}

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

h4 {
  font-size: 18px;
  line-height: 22px;
}

h5, h6 {
  font-size: 16px;
  line-height: 20px;
}

html, body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--theme-page-bg-color);
}

/*
 * Main Nav
 **/
body > nav { 
  margin: 0;
  background: var(--theme-nav-bg-color);
  box-shadow: 1px 1px 1px 1px var(--theme-nav-box-shadow);
}

body > nav ul { 
  margin: 0;
  padding: 0;
  list-style: none;
}

body > nav ul li {
  font-weight: bold;
  padding: 10px 15px;
  display: inline-block;
  color: var(--theme-nav-text-color);
}

body > nav ul li:hover {
  background-color: var(--theme-nav-bg-color-active);
}

/*
 * Main Footer
 **/
footer {
  padding: 30px;
  min-height: 300px;
  text-align: center;
  color: var(--theme-footer-text-color);
  background: var(--theme-footer-bg-color);
}

footer a {
  color: inherit;
  font-weight: bold;
}


/*
 * Homepage
 **/
.home .hero {
  width: 100%;
  height: 500px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: var(--theme-home-hero-image);
}

.home .hero h1 {
  top: 150px;
  width: 100%;
  position: absolute;
  text-align: center;
}

.home .intro {
  padding: 40px 0;
  background-color: var(--theme-section-bg-color);
}

.home .intro .intro__profile {
  height: 80px;
  margin: 0 auto 30px;
  display: block;
}

.home .intro .intro__message {
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 50px 0 80px;
  justify-content: space-evenly;
  background-color: var(--theme-section-bg-color);
}

.gallery .gallery__piece {
  width: 300px;
  margin: 40px 0;
  text-align: center;
}

.art-preview {
  width: 80%;
  margin: 0 auto;
  display: block;
  position: relative;
}

.art-preview .art-preview__sold {
  top: 0;
  right: 15px;
  height: 30%;
  position: absolute;
}

.art-preview:hover .art-preview__sold,
.art-preview:active .art-preview__sold,
.art-preview:focus .art-preview__sold {
  opacity: 0.2;
}

.art-preview .art-preview__image {
  width: 100%;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px var(--theme-gallery-piece-box-shadow);
}

.gallery .gallery__piece a.gallery__button {
  cursor: pointer;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--theme-button-text-color);
  background: var(--theme-button-bg-color);
  box-shadow: 1px 1px 1px 1px var(--theme-button-box-shadow);
}

/*
 * Page
 **/
body > .page {
  min-height: 800px;
  padding: 20px 10px;
  background: var(--theme-section-bg-color);
}

body > .page.page--not-found,
body > .page.page--error {
  padding: 60px 10px;
  text-align: center;
}

body > .page.page--not-found p,
body > .page.page--error p {
  font-style: italic;
}

body > .page h1 {
  text-align: center;
}

body > .page .section {
  max-width: 700px;
  display: block;
  margin: 0 auto;
}

.blogposts > a {
  text-decoration: none;
  color: inherit;
}

.blogposts {
  padding: 0;
  list-style: none;
}

.blogposts .blogpost {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 30px;
}

.blogposts .blogpost h2 {
  padding-top: 20px;
  margin-bottom: 0;
}

.blogposts .blogpost:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.blogpost.blogpost--detail h1 {
  margin-bottom: 0;
}

.blogpost.blogpost--detail .blogpost__meta {
  margin-top: 0;
  text-align: center;
}

.blogpost.blogpost--detail .blogpost__content {
  padding-top: 20px;
}

.blogposts .blogpost .content__preview {
  margin-top: 15px;
}

.blogposts .blogpost .content__preview > *:first-child {
  margin-top: 0;
}

.blogposts .blogpost .content__preview > *:last-child {
  margin-bottom: 0;
}

.blogposts .blogpost .content__preview {
  border-left: 3px solid #BBB;
  padding-left: 20px;
  margin-left: 0px;
}

.blogposts .blogpost .content__preview .content__preview__ellipsis {
  margin-top: 0;
  padding: 2px 5px;
  font-style: italic;
  display: inline-block;
}

.blogpost .blogpost__content img {
  display: block;
  max-width: 90%;
  max-height: 500px;
  margin: 10px auto;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px #CCC;
}

/*
 * Contact Form
 **/
.page--contact label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
}

.page--contact input {
  width: 100%;
  outline: none;
  padding: 10px;
  border-radius: 0px;
  border: 1px solid var(--theme-form-box-shadow);
  border-radius: 4px;
}

.page--contact .field--error input {
  border: 1px solid var(--theme-form-error-color);
}

.page--contact textarea {
  width: 100%;
  padding: 10px;
  outline: none;
  resize: vertical;
  margin-top: -1px;
  border-radius: 0px;
  margin-bottom: -1px;
  border: 1px solid var(--theme-form-box-shadow);
  border-radius: 4px;
}

.page--contact .field--error textarea {
  border: 1px solid var(--theme-form-error-color);
}

.page--contact .button-container {
  margin-top: 40px;
  text-align: center;
}

.page--contact .button-container button {
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--theme-button-text-color);
  background: var(--theme-button-bg-color);
  box-shadow: 1px 1px 1px 1px var(--theme-button-box-shadow);
}

.page--contact .field__error {
  margin: 0;
  color: var(--theme-form-error-color);
  margin-top: 0px;
  margin-top: 10px;
  font-style: italic;
}

.page--contact .h-captcha {
  margin: 20px 0;
}

.page--contact .h-captcha iframe {
  margin: 0 auto;
  display: block;
}
