:root {
  --header-leading-space: 25vh;
  --light-bg-color: #fff;
  /*--light-bg-color: hsl(244, 10%, 98%);*/
  --dark-bg-color: #333;
  --dark-bg-lighter-color: hsl(220, 13%, 24%);
  --primary-color: hsla(0, 0%, 20%, 1);
  --primary-light-color: hsla(0, 0%, 20%, 0.2);
  --light-text-color: rgba(255, 255, 255, 93%);
  --light-dull-text-color: rgba(255, 255, 255, 40%);
  --bright-text-color: hsl(220, 13%, 97%);
  --dark-text-color: rgba(0, 0, 0, 87%);
  --normal-text-color: rgba(0, 0, 0, 75%);
  --lesser-text-color: rgba(0, 0, 0, 40%);
  --dull-text-color: rgba(0, 0, 0, 25%);
  --duller-text-color: rgba(0, 0, 0, 10%);
  --super-dull-text-color: hsl(220, 13%, 40%);
  --subtle-highlight-color: #f8f8f8;
  --highlight-color: #a8a8a8;
  --red: red;
  --green: green;
  --blue: blue;
}

/** GENERAL STYLES */

* {
  box-sizing: border-box;
}

body {
  background: var(--light-bg-color);
  color: var(--normal-text-color);
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--normal-text-color);
  margin-top: 0;
}

p {
  margin: 0 0 1.7rem;
}

a {
  text-decoration: none;
  transition: all 0.5s;
}

a:visited {
  color: var(--normal-text-color);
}

.content a {
  text-decoration: none;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-light-color);
}

.content a:hover {
  color: var(--normal-text-color);
  border-bottom: 2px solid var(--primary-color);
}

a.is-active {
  color: var(--normal-text-color);
}

a:hover {
  color: var(--normal-text-color);
}

hr {
  border: 0.5px solid var(--duller-text-color);
}

pre {
  margin: 0;
}

label {
  display: block;
  margin-bottom: 0.25em;
}

input,
textarea {
  width: 100%;
  padding: 0.25em;
}

.button {
  display: inline-block;
  padding: 0.375em 1em;
  border: none;
  border-radius: 2px;
  color: var(--light-text-color);
  background-color: var(--dark-bg-color);
  font-size: 0.875rem;
  font-weight: 500;
}

a.button:visited {
  color: var(--primary-color);
}

button:hover,
a.button:hover {
  background-color: #000;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

textarea {
  height: 5em;
}

form .field {
  margin: 1em 0;
}

form .hp {
  display: none !important;
}

a.logo,
a.logo:hover {
  text-decoration: none;
  border: none;
}

.logo {
  letter-spacing: 0.1rem;
  margin-right: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  background-color: var(--dark-bg-color);
  color: #fafafa !important;
  padding: 0.625rem;
  border-radius: 2px;
}

a.is-active .logo .highlight {
  color: #f00;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

nav .right a,
nav .left a:not(.logo) {
  margin: 0 0.6em;
}

.hero {
}

.hero-large {
}

.hero-full {
  height: 100vh;
  display: flex;
  align-items: center;
}

figure img {
  display: block;
  margin: 0 auto;
}

img {
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

img.avatar {
  border-radius: 2px;
  box-shadow: 0 0 2px var(--normal-text-color);
}

img.avatar-circle {
  border-radius: 50%;
  box-shadow: 0 0 2px var(--primary-color);
}

#quote {
  position: relative;
  background: linear-gradient(rgba(16, 0, 233, 0.7), rgba(16, 0, 233, 0.6)),
    url("/img/team/sylesh-soldering.jpg");
  background-size: cover;
  background-position: 0% 45%;
  height: 160px;
}

#quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: var(--primary-color);
  /*transform: skewY(-15deg);*/
}

.proj {
  transition: all 0.5s;
  padding: 1.5rem;
  border-radius: 2px;
}

.proj:hover,
.proj:focus {
  background-color: var(--subtle-highlight-color);
}

.project-list > li:not(:last-child) {
  margin-bottom: 4rem;
}

.project {
  transition: all 0.5s;
}

.project-info {
  transition: all 0.5s;
  padding: 1rem 10% 1rem 0;
}

.project:hover,
.project:focus {
  background-color: var(--subtle-highlight-color);
}

.project:hover .project-info,
.project:focus .project-info {
  border-left: 5px solid var(--primary-color);
  padding: 1rem 6% 1rem 4%;
}

.project .tag-list-item {
  color: var(--dull-text-color);
  transition: color 0.5s;
}

.project:hover .tag-list-item {
  color: var(--primary-color);
}

.project .title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--normal-text-color);
}

.project .subtitle {
  color: var(--normal-text-color);
  margin-bottom: 0.375rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.container,
.text-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6%;
}

ul,
ol {
  margin: 0 0 1.7rem 0;
  padding: 0;
  list-style-type: none;
  line-height: 1.4;
}

ol .m-ol {
  list-style-type: initial;
}

.section-xs {
  padding: 1rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section {
  padding: 4rem 0;
}

.section-lg {
  padding: 8rem 0;
}

.section-xl {
  padding: 12rem 0;
}

.section.small {
  padding: 2rem 0;
}

.section.is-light {
  background-color: #fefefe;
}

.section.is-gray {
  background-color: #f8f8f8;
}

.section.is-dark {
  background-color: #333;
}

.section.is-primary {
  background-color: var(--primary-color);
}
.section.is-primary h2,
.section.is-primary p {
  color: var(--light-text-color);
}

/* Posts */

.post-list-item {
  padding: 1rem 1rem 1rem 0;
  transition: all 0.5s;
  border-left: 3px solid transparent;
}

.post-list-item:hover {
  background-color: var(--subtle-highlight-color);
  border-left: 3px solid var(--primary-color);
  padding: 1rem 1rem 1rem 2rem;
}

.post-list-item .tag-list-item {
  color: var(--dull-text-color);
  transition: color 0.5s;
}

.post-list-item:hover .tag-list-item {
  color: var(--primary-color);
}

.post-list-item:not(:last-child) {
}

.tag-list-item {
  font-size: 0.875rem;
  margin-right: 0.5em;
  color: var(--primary-color);
}
.tag-list-item:before {
  content: "#";
}

.post .content {
  margin: 40px 0;
}

.content p,
.content ul,
.content ol {
  color: var(--normal-text-color);
  hyphens: auto;
}

.content ul,
.content ol {
  margin-bottom: 1.5rem;
}

.content ul {
  list-style-type: disc;
}

.content li {
  margin-bottom: 0.75em;
}

.content ol {
  list-style-type: decimal;
}

.post header .display-grid {
  border-bottom: 4px solid var(--primary-light-color);
  grid-row-gap: 30px;
  padding: 40px 0;
}

.post header .title {
  font-size: 2.25rem;
  line-height: 1.1;
}

.post .description {
  font-size: 1.25rem;
  /* font-weight: 300; */
  margin-bottom: 2rem;
}

.post .author .grid > .grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 30px;
}

.post footer .container > .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 30px;
  padding: 40px 0;
  border-top: 4px solid var(--primary-light-color);
}

@media only screen and (min-width: 880px) {
  .post header .display-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-row-gap: 30px;
    padding: 80px 0;
  }

  .post header .left {
    grid-column: span 4;
  }

  .post .content {
    font-size: 18px;
  }

  .post .content article > * {
    width: 64%;
  }

  .text-container {
    max-width: 1600px;
    margin: 0;
  }

  .post header .title {
    font-size: 2.825rem;
  }

  .post .description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .post .content {
    margin: 80px 0;
  }

  .post footer .container > .grid {
    grid-template-columns: repeat(6, 1fr);
    padding-bottom: 80px;
  }

  .post .author .grid > .grid {
    grid-template-columns: auto 1fr;
  }

  .post .author .author {
    grid-column: span 3;
  }

  .post footer .tags {
    grid-column: span 2;
  }
}

.content pre {
  font-family: "Fira Code", monospace;
  overflow-x: auto;
  line-height: 1.2 !important;
  margin: 1.6rem 0;
  padding: 1rem;
  border-radius: 2px;
  background: hsl(0, 0%, 97%);
}

code {
  line-height: inherit;
  white-space: pre;
  font-size: 0.875em;
  font-family: "Fira Code", monospace;
  font-feature-settings: "ss05";
}

p > code,
li > code {
  font-size: 0.875em;
  background-color: var(--subtle-highlight-color);
  padding: 0.25em;
}

.content blockquote {
  font-style: italic;
  border-left: 2px solid var(--normal-text-color);
  margin: 0 0 0 -1rem;
  padding-left: 1rem;
}

.subheader {
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0.375rem;
  text-transform: uppercase;
  color: var(--lesser-text-color);
}

.float-left {
  float: left;
}

.relative {
  position: relative;
}

.pr-1 {
  padding-right: 2rem;
}

.ml-1 {
  margin-left: 0.5rem;
}
.ml-2 {
  margin-left: 1rem;
}
.ml-3 {
  margin-left: 1.5rem;
}

.author .avatar {
  display: inline-block;
}

.author-info {
}

.author-name {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.author-social {
  font-size: 0.875rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col {
  width: 100%;
  padding: 0.75rem 0;
}

.col img {
  margin-top: 8px;
  vertical-align: middle;
}

.card {
  /* background-color: var(--subtle-highlight-color); */
}

.link:after {
  content: " →";
}

.elink:after {
  content: " ↗︎";
  font-size: 1em;
}

.box {
  display: flex;
  justify-content: center;
  padding: 2.5rem;
  background: #f0f0f0;
  border-radius: 2px;
  text-align: center;
}

/** UTILITIES */

.red {
  color: #e06c75;
}

.purple {
  color: #c678dd;
}

.green {
  color: #98c379;
}

.blue {
  color: #61afef;
}

.underline-red {
  border-bottom: 4px solid var(--red);
}

.underline-green {
  border-bottom: 4px solid var(--green);
}

.underline-blue {
  border-bottom: 4px solid var(--blue);
}

.center {
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.inline {
  display: inline;
}

.display-grid {
  display: grid;
  grid-template-columns: auto;
  grid-gap: 2rem;
}

.flex {
  display: flex;
}

.inline-block {
  display: inline-block;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-4xl {
  font-size: 2rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 4rem;
}

.text-light {
  color: var(--light-text-color);
}

.text-dark {
  color: var(--dark-text-color);
}

.text-lesser {
  color: var(--lesser-text-color);
}

.text-xlesser {
  color: var(--dull-text-color);
}

.text-primary {
  color: var(--primary-color);
}

.uppercase {
  text-transform: uppercase;
}

.font-mono {
  font-family: "Fira Code", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.font-sans {
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}

.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.5rem !important;
}
.mt-2 {
  margin-top: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.5rem !important;
}
.mb-2 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 2rem !important;
}

.mr-1 {
  margin-right: 0.5rem;
}

.mr-2 {
  margin-right: 1rem;
}

.p-0 {
  padding: 0;
}

.px-1 {
  padding: 0 0.5rem;
}

.px-2 {
  padding: 0 1rem;
}

.px-3 {
  padding: 0 1.5rem;
}

.px-4 {
  padding: 0 2rem;
}

.px-5 {
  padding: 0 2.5rem;
}

.w-half,
.w-one-quarter,
.w-three-quarters,
.w-1,
.w-2,
.w-3,
.w-4,
.w-5,
.w-6 {
  width: 100%;
}

.bg-green {
  background-color: #c6f6d5;
}

.bg-dark {
  background-color: var(--dark-bg-color);
}

@media only screen and (min-width: 880px) {
  /* .text-container {
    max-width: 40em;
    padding: 0;
    margin: 0 auto;
  } */

  .container,
  .text-container {
    padding: 0 4rem;
  }

  .w-one-quarter {
    width: 25%;
  }

  .w-half {
    width: 50%;
  }

  .w-three-quarters {
    width: 75%;
  }

  .w-two-thirds {
    width: 66.666666%;
  }

  .w-1 {
    width: 16.666667%;
  }
  .w-2 {
    width: 33.333333%;
  }
  .w-3 {
    width: 50%;
  }
  .w-4 {
    width: 66.666667%;
  }
  .w-5 {
    width: 83.333333%;
  }
  .w-6 {
    width: 100%;
  }

  .row {
    margin: 0 auto;
  }

  .col {
    padding: 0;
  }

  .col.is-half {
    width: 50%;
  }

  .col.is-quarter {
    width: 25%;
  }

  .col.is-three-quarters {
    width: 75%;
  }

  .off-1 {
    margin-left: 16.666667%;
  }

  /* Let code hang out to the right. */
  /*
  .content pre {
    --margin-lr: calc((100vw - var(--width)) / 2);
    margin-right: calc(-1 * var(--margin-lr));
    margin-left: calc(-1 * var(--margin-lr));
    padding-right: calc(var(--margin-lr));
    padding-left: calc(var(--margin-lr));
  }
  */

  .display-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .display-grid img {
    max-width: 100%;
    max-height: 100%;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
}

/** COMPONENTS */

/* Site Footer */

body > footer {
  color: var(--dull-text-color);
}

body > footer.dark {
  background: var(--dark-bg-color);
  color: var(--light-text-color);
}

header a,
footer a {
  text-decoration: none;
  color: var(--dull-text-color);
  border-bottom: 2px solid transparent;
}

header a:hover,
footer a:hover {
  color: var(--normal-text-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Subscribe Box */

.subscribe-box form {
  padding: 36px;
  background: var(--subtle-highlight-color);
}

.subscribe-box form .field {
  position: relative;
}

.subscribe-box form input {
  border: none;
  /* extra right padding to avoid overlapping with the button img */
  padding: 1em 3.75em 1em 1em;
  background-color: #fff;
  color: var(--normal-text-color);
}

.subscribe-box form input::placeholder {
  color: var(--lesser-text-color);
}

.subscribe-box form .button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-text-color);
  color: var(--normal-text-color);
  padding: 0;
  cursor: pointer;
  /* a little gap to avoid overlapping the input status highlight */
  margin: 2px;
}

.subscribe-box .button img {
  width: 100%;
  height: 100%;
  padding: 16px;
}

.subscribe-box h1 {
  font-size: 1.5rem;
}

@media only screen and (min-width: 880px) {
  .subscribe-box form {
    padding: 60px;
  }

  .subscribe-box form.grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: end;
  }

  .card {
    padding: 1rem;
  }

  .card img {
    padding: 1rem;
  }
}
