/* Agipo (Radim Pesko) was served from webfonts.radimpesko.com, which no longer
   responds. To restore it, put the licensed woff/woff2 files in src/fonts/ and
   point this @font-face at them. Until then the site falls back to Arial. */
@font-face {
  font-family: 'Agipo Regular Extended';
  src: url('../fonts/AgipoRegularExtended.woff2') format('woff2'),
       url('../fonts/AgipoRegularExtended.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Lido STF Medium';
  src: url('../fonts/LidoSTFMedium.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Lido STF Medium';
  font-style: italic;
  src: url('../fonts/LidoSTFMedium-Italic.woff');
}
@font-face {
  font-family: 'Lido STF Condensed Medium';
  src: url('../fonts/LidoSTFCondensedMedium.woff');
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
  font: inherit;
  box-sizing: border-box;
  text-decoration: inherit;
  color: inherit;
}

body {
  font-family: 'Agipo Regular Extended', 'AgipoRegExt', 'Arial';
  font-size: 24px;
  line-height: 1.2;
  background: black;
  color: white;
  -webkit-font-smoothing: antialiased;
}

body[data-active-icon] {
  background-color: rgb(93, 93, 93);
  overflow-y: hidden;
}
body[data-active-icon] header#top {
  pointer-events: initial;
  overflow-y: auto;
}
body[data-active-icon] main img {
  -webkit-filter: invert(0.25) invert(0.25) saturate(15) brightness(1) contrast(1);
  opacity: 0.5;
}
body[data-active-icon] section.project {
  visibility: hidden;
}

.content a, .toggle a {
  border-bottom: 2px solid;
}
a:hover {
  color: red;
}

em {
  font-style: italic;
}

img {
  display: block;
  max-width: 100%;
}

header#top {
  z-index: 10;
  position: fixed;
  top: 0; left: 0;
  bottom: 0; right: 0;
  padding-top: 52px;
  pointer-events: none;
  overflow-y: hidden;
}
header#top a {
  pointer-events: initial;
}
header#top h1, header#top h2 {
  text-transform: uppercase;
}
header#top h1 a:hover, header#top h2 a:hover {
  color: inherit;
}
header#top .row:nth-child(1) {
  height: 152px;
}
header#top .toggle {
  display: none;
  margin-bottom: 144px;
  line-height: 1.3;
}

body[data-active-icon="page"] header#top .toggle[data-icon="page"],
body[data-active-icon="cat"] header#top .toggle[data-icon="cat"],
body[data-active-icon="envelope"] header#top .toggle[data-icon="envelope"],
body[data-active-icon="web"] header#top .toggle[data-icon="web"] {
  display: block;
}

header#top .toggle[data-icon="envelope"] {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
}

header#top .toggle[data-icon="web"] {
  position: absolute;
  bottom: 0; right: 0;
}
header#top .toggle[data-icon="page"] {
  margin-top: -152px;
}
header#top .toggle[data-icon="cat"] .gutter {
  margin-right: 96px;
}

.row {
  margin-left: 52px;
}
.gutter {
  margin-right: 52px;
}

main {
  z-index: 1;
  position: relative;
  padding-top: 52px;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main img {
  margin-bottom: 24px;
}

.image-content {
  margin-top: 24px;
}

.content h1, .content h2, .content h3, .content h4, .content h5 {
  margin-top: 24px;
}


[data-col="1"] { width: calc(100% * 1 / 5); }
[data-col="2"] { width: calc(100% * 2 / 5); }
[data-col="3"] { width: calc(100% * 3 / 5); }
[data-col="4"] { width: calc(100% * 4 / 5); }
[data-col="5"] { width: calc(100% * 5 / 5); }
[data-push="1"] { margin-left: calc(100% * 1 / 5); }
[data-push="2"] { margin-left: calc(100% * 2 / 5); }
[data-push="3"] { margin-left: calc(100% * 3 / 5); }
[data-push="4"] { margin-left: calc(100% * 4 / 5); }
[data-push="5"] { margin-left: calc(100% * 5 / 5); }

#toggles .gutter {
  position: relative;
}
#toggles .icon {
  position: fixed;
  pointer-events: initial;
}
#toggles [data-icon="cat"],
#toggles [data-icon="web"] {
  right: 52px;
}
#toggles [data-icon="web"],
#toggles [data-icon="envelope"] {
  bottom: 52px;
}

body[data-active-icon] #toggles [data-icon="page"],
body[data-active-icon] #toggles [data-icon="cat"] {
  position: absolute;
}

section.projects {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-justify-content: space-around;
      -ms-flex-pack: distribute;
          justify-content: space-around;
}
section.projects figure {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 52px;
}
section.projects figure .gutter {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
}

section.project header.project-header h1,
section.project header.project-header h2 {
  margin-bottom: 0;
}
section.project header.project-header {
  margin-left: 52px;
}
.toggle[data-icon="page"] p, section.project p {
  text-indent: 52px;
}
section.project .content {
  font-family: 'Lido STF Medium', serif;
}
section.project .content h1 {
  text-transform: uppercase;
  border-bottom: 2px solid;
  display: inline-block;
  margin-left: 52px;
}
section.project .content h1,
section.project .content ul,
section.project .content ol {
  font-family: 'Lido STF Condensed Medium', serif;
}
section.project .content ul,
section.project .content ol {
  width: calc(75% - 52px);
  list-style: none;
}
section.project .content li:before {
  font-family: 'Agipo Regular Extended', 'AgipoRegExt', 'Arial';
  content: '→';
  margin-left: -2rem;
  width: 2rem;
  display: inline-block;
}

@media (max-device-width: 960px) {
  body {
    font-size: 18px;
  }
  header#top{
    position: absolute;
  }
  body:not([data-page-title=""]) #toggles {
    display: none;
  }
  section.project .content ul,
  section.project .content ol {
    width: auto;
  }
  section.project .col {
    width: 100%;
    margin-left: 0;
    margin-top: 98px;
  }
  .row {
    margin-left: 24px
  }
  .gutter {
    margin-right: 24px;
  }
  main, header#top {
    padding-top: 24px;
  }
  section.project .content ul {
    margin-left: 32px;
  }
  .row.toggle {
    position: static!important;
    bottom: none!important; left: none!important;
    width: auto!important;
    margin: 52px 24px 104px!important;
  }
  .row.toggle .col {
    width: 100%!important;
    margin-left: 0!important;
  }
}
