:root {
  --primary-font: "Arial", "Helvetica", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Liberation Sans", Arimo, sans-serif;
  --secondary-font: var(--primary-font);
  --background-color: #EFEFEF;
  --text-color: #63675B;
  --text-color-secondary: var(--text-color);
  --text-color-tertiary: var(--text-color);
  --accent-color: #A0D978;
  --link-color: var(--text-color);
  --link-hover-color: var(--accent-color);
  --fade-in-effect: fadein 1200ms;
  --glowing-color: var(--accent-color);
  --padding-value: 1.25em;
  background-color: var(--background-color);
  letter-spacing: -.005em;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-animation: var(--fade-in-effect);
  -moz-animation: var(--fade-in-effect);
  -ms-animation: var(--fade-in-effect);
  -o-animation: var(--fade-in-effect);
  animation: var(--fade-in-effect);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-size: 19px;
  overflow-x: hidden;
  font-family: var(--primary-font);
  line-height: 120%;
  color: var(--text-color);
  min-height: 100dvh;
}

body.home main {
  max-width: 600px;
}

body.home .justify p {
  text-align: justify;
  text-wrap: pretty;
  margin-bottom: 1.25em;
}

body.home p:first-of-type {
  margin-top: 0;
  text-indent: 0;
}

::selection {
  background: var(--accent-color);
}

::-moz-selection {
  background: var(--accent-color);
}

/* Header */
header {
  padding: var(--padding-value);
}

h1 {
  font-family: var(--secondary-font);
  margin-bottom: 0;
  font-weight: 400;
  font-size: inherit;
  line-height: 100%;
}

small {
  opacity: 0.5;
}

.small_credits {
  opacity: 0.8;
  font-size: 12px;
  line-height: 130%;
}

h2,
h3,
h4,
h5,
h6 {
  /* text-transform: uppercase; */
  font-weight: 300;
  margin-top: 2em;
  margin-bottom: 0;
  font-family: var(--secondary-font);
}

code {
  font-family: "Courier";
  background: var(--glowing-color);
  border-radius: 5px;
}

section:not(.table) {
  padding: var(--padding-value);
}

/* Body */
p {
  font-weight: 400;
  font-weight: normal;
}

p img {
  height: 1em;
  padding-right: 0.1em;
  padding-left: 0.1em;
}

i,
em {
  font-style: italic;
  font-weight: 400;
}

b {
  font-family: var(--primary-font);
  letter-spacing: -0.038em;
  font-style: normal;
  line-height: 100%;
  font-weight: 700;
  font-size: 112%;
}

strong {
  font-weight: 700;
  letter-spacing: -0.045em;
}

a {
  color: var(--link-color);
  transition: all 0.2s ease-out;
  text-decoration: none;
  background-image: linear-gradient(to top, var(--glowing-color) 0%, var(--glowing-color) 100%);
  background-size: 100% 0%;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.2s ease;
  padding: 0.05em 0.05em;
  margin: -0.05em -0.05em;
}

body.home a,
section.justify a {
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: .05em;
  text-underline-offset: .15em;
}

a:hover,
a:focus {
  background-size: 100% 100%;
}

blockquote {
  font-family: var(--primary-font);
  font-size: 1.4em;
  font-style: italic;
  border-left: 3px solid var(--accent-color);
  padding: 1em;
  margin-left: 0;
}

.home ul {
  list-style-type: none;
  padding-left: 1em;
}

.home li {
  padding-bottom: 0.1em;
}

div>ul,
aside>ul {
  padding-left: 0;
  display: grid;
  gap: 0.25em;
}

div>ul li,
aside>ul li {
  list-style-type: none;
  list-style-position: inside;
}

div>ul li::before,
aside>ul li::before {
  content: "\2192";
  padding-right: 0.5em;
  vertical-align: text-bottom;
}

.glowing {
  background-color: var(--glowing-color);
  border-radius: 1.5em;
  padding: 1em;
  box-shadow: 0 0 0.3em 0.3em var(--glowing-color);
}

a.glowing {
  border-bottom: 0;
  display: inline-block;
  margin-top: 1em;
}

.glowing a {
  border-bottom: 0;
}

.glowing a:hover {
  border-bottom: 1px solid;
  transition: all 0.2s ease;
}


/* Work Table Grid */
.table {
  border-top: 1px solid var(--link-color);
  margin-top: 3rem;
}

.table ul,
.table li {
  list-style: none;
  margin: 0;
  padding: 0;
  list-style-type: none;
  gap: 0;
}

.table ul li::before {
  content: none;
  padding-right: 0;
}

.table h2 {
  font-size: inherit;
}

.table h2,
.table p {
  margin-top: 0;
  line-height: inherit;
}

.table a {
  display: grid;
  grid-template-columns: minmax(3em, 2fr) minmax(6em, 3fr) minmax(5em, 2fr) 1fr;
  align-items: baseline;
  column-gap: 2em;
  padding: 1em;
  color: inherit;
  border-bottom: 0;
  position: relative;
  margin: 0;
}

.table a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to top, var(--glowing-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
  pointer-events: none;
}

.table a>* {
  position: relative;
  z-index: 1;
}

.table a *:last-child {
  justify-self: end;
  text-align: right;
}

.table a:focus::before,
.table a:hover::before {
  opacity: 1;
}

.table a:focus,
.table a:hover {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.table a:active {
  background-color: var(--link-color);
}

.table li+li {
  position: relative;
}

.table li+li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--link-color);
  z-index: 1;
}

.table img {
  width: 8em;
}

@media (max-width: 950px) {
  .table {
    margin-top: 0;
  }

  .table a {
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    /* from https://evanminto.com/blog/intrinsically-responsive-css-grid-minmax-min/ */
    padding-bottom: 0;
  }

  .table a *:last-child {
    justify-self: inherit;
    text-align: inherit;
  }

  .table a :nth-child(2),
  .table a :nth-child(3) {
    order: 1;
  }
}


/* Form Styling */
form {
  min-height: 55px;
  display: flex;
  max-width: 500px;
  gap: 0.2em;
}

.embeddable-buttondown-form input[type="email"],
.embeddable-buttondown-form input[type="submit"] {
  font-family: var(--primary-font);
  font-size: inherit;
  color: var(--text-color);
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 0;
  box-shadow: none;
  line-height: 90%;
  padding-left: 0.75em;
  padding-right: 0.75em;
  padding-top: 0.2em;
}

.embeddable-buttondown-form input[type="email"] {
  flex: 1;
}

.embeddable-buttondown-form input[type="submit"] {
  flex: 0;
}

.embeddable-buttondown-form input[type="email"]:focus,
.embeddable-buttondown-form input[type="submit"]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 0;
  border-radius: 0;
}

.embeddable-buttondown-form input[type="email"]:-webkit-autofill,
.embeddable-buttondown-form input[type="email"]:-webkit-autofill:hover,
.embeddable-buttondown-form input[type="email"]:-webkit-autofill:focus,
.embeddable-buttondown-form input[type="email"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--background-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
}

.embeddable-buttondown-form input[type="submit"]:hover {
  background-color: var(--glowing-color);
  cursor: pointer;
}

/* Fade in Effect */
@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
