@font-face {
  font-family: 'ptsans-regular';
  src:  url('../font/PTSans-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/PTSans-Regular.woff') format('woff'),
        url('../font/PTSans-Regular.ttf')  format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ptserif-regular';
  src:  url('../font/PTSerif-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/PTSerif-Regular.woff') format('woff'),
        url('../font/PTSerif-Regular.ttf')  format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --light:     #eee8d5;
  --magenta: #d33682;

  --std-max-width: none;
  --std-background: #fff;
  --std-color: #121212;

  --std-font-family: ptsans-regular;
  --std-link-color: #268bd2;
  --std-link-color-active: #d33682;


  --std-selection-background: var(--magenta);
  --std-selection-color: var(--light);

  --alternative: var(--light);
}

/* DARK */

@media (prefers-color-scheme: dark) {
  :root {
    --std-background: #002b36;
    --std-color: #cdcdcd;
    --alternative: #073642;
  }
}

html {
  box-sizing: border-box;
  font-size: 75%;
}

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


body {
  margin: 0;
  padding: 0;
  font-size: 1.8rem;
}

main > article {
  max-width: 760px;
  margin: 0 auto;
  padding: 1em;
}

/* TYPOGRAPHY */

h2, h3 {
  font-size: 1.8rem;
  line-height: 1;
}

h4 {
  font-size: 1.6rem;
}

h3 + h4 {
  margin-top: 0;
}

p {
  font-family: ptserif-regular;
}

/* HEADINGS */

h2 {
  margin: 2rem 0 1rem 0;
  display: inline-block;
  padding-bottom: 0.6rem;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

h3 {
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
}

h3 + p, h4 + p {
  margin-top: 0;
}

h3 {
  display: inline-block;
}

/* HEADER */

header nav {
  display: flex;
  justify-content: center;
  align-content: center;
}

header nav a {
  display: inline-block;
  flex: 1 0;
  text-align: center;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1.6rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid var(--alternative);
}

a.selected {
  cursor: default;
}

header nav a:hover, a.selected {
  transition: color, border-color .4s ease-in-out;
  color: var(--magenta);
  border-bottom: 2px solid;
  border-color: var(--magenta) !important;
}

/* CONTENT */

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 0;
  margin: 0 0 2em 0;
}

footer {
  text-transform: uppercase;
  font-size: 1.4rem;
}

footer > ul {
  display: inline-block;
  margin-top: .2rem;
  height: var(--footer-height);
}

footer > ul > li {
  display: inline-block
}

footer > ul > li:not(:first-child):before {
  white-space: pre;
  content: ' | ';
}

footer > nav {
  display: inline-block;
  margin-right: 2rem;
  padding-top: 2px;
}

footer > nav > a {
  display: inline-block;
  position: relative;
}

footer > nav > a:not(:last-child) {
  margin-right: .5rem;
}

/* WORK */

.logotypes, footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

section.projects ul, section.open-source ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

section.projects li, section.open-source li {
  display: inline;
  font-size: 1.4rem;
}

section.projects ul > li:not(:last-child)::after,
section.open-source ul > li:not(:last-child)::after {
  content: ', ';
}

.logotypes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}

.logotypes li {
  flex: 0 1 auto;
  width: 136px;
  height: 150px;
  cursor: default;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--alternative);
  border-radius: 0.4rem;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  opacity: .5;
  transition: background, opacity .5s ease-in-out;
  /* NOTE: wraps the items on old iphones */
  display: inline-block;
  vertical-align: top;
}

.logotypes li:hover {
  opacity: 1;
}

.logotypes > li > img {
  display: block;
  width: 100px;
}

.logotypes > li > span {
  text-transform: uppercase;
  display: inline-block;
  margin: .5rem 0 1.5rem 0;
}

/* SKILLS */

dl.skills {
  columns: 280px 2;
  min-width: 280px;
}
