/* Colors */
:root {
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --darkgray: #333;
  --blue: #082840;
  --white: #fff;
  --green: #bfeabf;
  --dark: #172b37;
}

/* Global stylesheet */
* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: var(--green);
}
p:last-child {
  margin-bottom: 0;
}
p,
li {
  line-height: 1.45;
  font-size: 1.2rem;
  font-weight: 500;
}
a {
  color: var(--dark);
}
a:visited {
  color: var(--dark);
}

h4 {
  /*font-style: italic;*/
  font-size: 1.2rem;
  margin-bottom: .5em;
  margin-top: 1em;
}

main :first-child {
  margin-top: 0;
}
header:after {
  content: "";
  display: table;
  clear: both;
}
footer {
  background-color: var(--dark);
  color: var(--green);
  padding: 1rem 0;
}
footer a, footer a:visited {
  color: var(--green);
}
footer p {
  margin: 0;
  font-size: 1rem;
}
table {
  margin: 1em 0;
}
table td,
table th {
  padding-right: 1em;
}

pre,
code {
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  line-height: 1.5;
}
pre {
  font-size: 14px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: .5em 0;
  background-color: #f6f6f6;
}
code {
  word-break: break-all;
}

img, svg {
  max-width: 100%;
}

/* Header */
.home {
  line-height: 0;
}
.home :link:not(:hover) {
  text-decoration: none;
}
.home > a:hover svg {
  background-color: rgba(255 255 255 / 50%);
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  display: flex;
}
.nav-item a {
  display: inline-block;
  font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none;
  padding: .5em .8em;
}
.nav-item a[href]:hover {
  border-color: var(--dark);
  background-color: rgba(255 255 255 / 30%);
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
}
.postlist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  counter-increment: start-from -1;
  line-height: 1.8;
}
.postlist-item:before {
  display: inline-block;
  pointer-events: none;
  content: "" counter(start-from, decimal-leading-zero) ". ";
  line-height: 100%;
  text-align: right;
}
.postlist-date,
.postlist-item:before {
  font-size: 0.8125em; /* 13px /16 */
  color: var(--darkgray);
}
.postlist-date {
  word-spacing: -0.5px;
}
.postlist-link {
  padding-left: .25em;
  padding-right: .25em;
  text-underline-position: from-font;
  text-underline-offset: 0;
  text-decoration-thickness: 1px;
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 700;
}


/* Tags */
.post-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.75em; /* 12px /16 */
  padding: 0.08333333333333em 0.3333333333333em; /* 1px 4px /12 */
  margin-left: 0.6666666666667em; /* 8px /12 */
  margin-top: 0.5em; /* 6px /12 */
  margin-bottom: 0.5em; /* 6px /12 */
  color: var(--darkgray);
  border: 1px solid var(--gray);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
  line-height: 1.8;
}
a[href].post-tag,
a[href].post-tag:visited {
  color: inherit;
}
a[href].post-tag:hover,
a[href].post-tag:focus {
  background-color: var(--lightgray);
}
.postlist-item > .post-tag {
  align-self: center;
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1em 0.625em; /* 16px 10px /16 */
}
.warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: .1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}


.container {
  max-width: 920px;
  padding: 0 2rem;
  margin-left: auto;
  margin-right: auto;
}

header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.hero-text {
  text-align: center;
  background-color: var(--dark);
  padding: 4rem 0;
  color: var(--green)
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: .3em;
}

.hero-text h2 {
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0;
}

.about {
  padding: 6rem 0;
}
.user-image-container {
  text-align: center;
}
.user-image-container > div {
  position: relative;
  display: inline-block;
}
.user-image-container > div:before,
.user-image-container > div:after {
  content: '';
  width: 60%;
  height: 100%;
  background-color: #172b37;
  display: block;
  position: absolute;
  top: 15%;
  right: -15%;
  opacity: 0.8;
  z-index: 4;
}
.user-image-container > div:after {
  background-color: #9fd09f;
  top: 0%;
  right: 10%;
  width: 90%;
  height: 90%;
}
.about img.user-image {
  mix-blend-mode: luminosity;
  opacity: .8;
  border-radius: .2rem;
  height: auto;
  z-index: 5;
  position: relative;
}
.about .flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about .flex > div {
  flex: 1;
  min-width: 200px;
}


.services {
  padding: 6rem 0;
}
.project-box {
  display: block;
  text-decoration: none;
  border: 2px solid var(--dark);
  padding: 1rem;
  background-color: rgba(255 255 255 / 30%);
  box-shadow: 4px 4px 0 0 var(--dark);
}
.project-box h3 {
  font-size: 1.4rem;
  margin-bottom: .4em;
}
.project-box p {
  margin-top: 0;
}
.project-box:hover {
  transform: translate3d(-2px, -2px, 0);
  box-shadow: 6px 6px 0 0 var(--dark);
  background-color: rgba(255 255 255 / 50%);
}
.project-box:hover h3 {
  text-decoration: underline;
}


.contact {
  padding: 6rem 0;
}

.email-display {
  user-select: all;
  font-weight: 700;
  border: 2px dashed rgba(23 43 55/ 40%);
  padding: 1em;
  display: inline-block;
  border-radius: 2px;
}

.dash-divider {
  border-top: 4px dashed var(--dark);
}


button {
  display: block;
  text-decoration: none;
  border: 2px solid var(--dark);
  padding: .5em 1em;
  font-size: 1rem;
  background-color: rgba(255 255 255 / 30%);
  box-shadow: 4px 4px 0 0 var(--dark);
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  transform: translate3d(-2px, -2px, 0);
  box-shadow: 6px 6px 0 0 var(--dark);
  background-color: rgba(255 255 255 / 50%);
}


/** Standard Page **/
.tmpl-page .main-content {
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 80vh;
}
.tmpl-page ul + h4 {
  margin-top: 2em;
}
.tmpl-page h2 {
  margin-top: 2em;
}


/* Mobile Tweaks */
@media screen and (max-width: 900px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h2 {
    font-size: 1.4rem;
  }
}
