@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&family=Source+Serif+Pro");

:root {
  --primary: #444;
  --base: #fff;

  --accent: #a972e8;
  --accent-soft: rgba(185, 132, 255, 0.1);
  --accent-border: rgba(185, 132, 255, 0.35);

  --serif-stack: "Source Serif Pro", serif;
  --sans-stack: "Source Sans Pro", sans-serif;
}
::selection {
  background-color: var(--accent);
  color: #fff;
}

html {
  box-sizing: border-box;
  width: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  border-top: 5px solid var(--accent);
  font-family: var(--sans-stack);
  background-color: var(--base);
  padding-top: 20px;
  color: var(--primary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  background-color: var(--accent);
  color: #fff;
  border-radius: 3px;
}

h1 {
  font-family: var(--serif-stack), serif;
}

p {
  margin: 10px 0;
  line-height: 150%;
}

header {
  display: block;
  width: 100%;
  margin: 10px 0;
  text-align: center;

  h1 {
    font-size: 52px;
    font-weight: 100;
    margin-bottom: 30px;
  }
}

main {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 15px;
}

section {
  line-height: 135%;
  margin-bottom: 70px;
}

footer {
  font-size: 13px;
  text-align: center;

  .flag {
    --t-blue: #4fa5c2;
    --t-pink: #f587ac;
    --t-white: #f9fbfc;

    background-image: linear-gradient(
      var(--t-blue) 0%,
      var(--t-blue) 20%,
      var(--t-pink) 20%,
      var(--t-pink) 40%,
      var(--t-white) 40%,
      var(--t-white) 60%,
      var(--t-pink) 60%,
      var(--t-pink) 80%,
      var(--t-blue) 80%,
      var(--t-blue) 100%
    );

    display: inline-block;
    width: 20px;
  }
}

#about p {
  background-color: var(--accent-soft);
  padding: 15px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 150%;
  border-radius: 10px;
}

h1.section-header {
  font-family: var(--serif-stack);
  font-weight: 300;
  font-size: 40px;
  width: 100%;
  color: var(--primary);
  display: inline-block;
  line-height: 130%;
  text-align: center;
}

h2.section-header {
  font-family: var(--serif-stack);
  font-size: 28px;
  font-weight: 100;
  height: 28px;
  margin: 15px 0;
}

.section-subtitle {
  display: block;
  font-size: 14px;
  text-align: center;
}

.status-commit {
  display: block;
  margin-bottom: 15px;
  padding: 15px 0;

  border-bottom: 1px solid var(--accent-border);

  &:last-child {
    border-bottom: none;
  }
}

#status-commit-prototype {
  display: none;
}

#status-loading-indicator {
  display: block;
  font-size: 20px;
  text-align: center;
}

.status-commit-repo {
  font-family: var(--serif-stack);
  font-size: 24px;
  font-weight: 100;
  display: inline-block;
}

.status-commit-relatime {
  margin-left: 5px;
  color: #7e7e7e;
}

.status-commit-meta {
  display: flex;
  justify-content: space-between;
}

.status-commit-diff {
  span {
    padding: 5px;
  }

  .status-commit-diff-added {
    background-color: #7beca1;
    color: #555;
    border-radius: 5px 0 0 5px;

    &:before {
      content: "+";
    }
  }

  .status-commit-diff-removed {
    background-color: #fa8787;
    color: #444;
    border-radius: 0 5px 5px 0;

    &:before {
      content: "-";
    }
  }
}

.status-commit-title {
  display: flex;
  flex-wrap: wrap;
}

.projects-entry {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--accent-border);

  &:last-child {
    border-bottom: none;
  }

  img {
    display: inline;
    width: 250px;
    height: 140px;
    align-self: center;
    margin: 0 auto;
    object-fit: contain;
  }
}

.projects-entry-meta {
  margin-left: 20px;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 300px;
  min-width: 300px;

  .projects-entry-commit,
  .project-entry-builtwith {
    color: #000;
  }
}

#contact-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-block {
  text-align: center;
  padding: 10px;
  max-width: 160px;
  display: inline-block;
  vertical-align: top;

  p {
    margin: 5px 0;
  }

  &:last-child {
    border-right: none;
  }
}
