/* Source: http://jeffhuang.com/designed_to_last/ */

:root {
	--accent-color: #FF7D39;
	--back-color: #FACAAC;
	--link-color: #55ABAD;
}

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
         url('fonts/open-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 26+, Opera 23+, Firefox 39+ */
}
/* open-sans-700 - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local('Open Sans Bold'), local('OpenSans-Bold'),
         url('fonts/open-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 26+, Opera 23+, Firefox 39+ */
}

/* minimalist reset */
* {
	font-size: 1em;
}

body {
	background-color: var(--back-color);
	font-family: 'Open Sans',sans-serif;
    margin: 0px 8px;
}

main {
	margin: 0 auto;
	padding: 30px 140px 0 140px;
	max-width: 600px;
	min-height: 100vh;
	color: #333;
	background-color: white;
}

h1 {
	font-size: 1.2em;
	font-weight: 700;
	display: inline;
	margin-right: 5px;
}

.accent {
	color: var(--accent-color);
}

h2 {
	margin-top: 50px;
	font-size: 1.5em;
}

footer {
	text-align: right;
	margin-top: 80px;
	padding-bottom: 20px;
}

.description {
	font-style: italic;
}

p {
	line-height: 1.5em;
	margin-top: 20px;
	display: block;
}

a {
	color: darkgray;
	text-decoration: none;
	color: var(--link-color);
}

h1.accent>a {
    text-decoration: none;
    color: var(--accent-color);
}

ol {
    counter-reset: item;
}
ol>li {
    counter-increment: item;
    list-style: none inside;
    margin: 20px 0;
    overflow: hidden;
    line-height: 1.5em;
}
ol>li:before {
    content: counter(item) ;
    margin-right: 10px;
    padding: 8px;
    border-radius: 50%;
    width: 25px;
    background: var(--accent-color);
    color: white;
    text-align: center;
    float: left;
}

ul {
    list-style: disc inside;
}
ul>li {
    line-height: 1.5em;
}

div.search-container {
    margin-bottom: 2em;
}

.search-container input {
    /* width:100%; */
    padding:0.5rem
}
.search-results {
    display:none;
    background:white;
    color:black;
    padding:1rem;
    box-shadow:2px 2px 2px 0 rgba(0,0,0,0.5);
    max-height:200px;
    overflow:auto;
    /* width:150%; */
    right:0;
}
.search-results__items {
    list-style:none
}
.search-results li {
    margin-top:1rem;
    border-bottom:1px solid #ccc;
    font-size:0.9rem
}
.search-results li:first-of-type {
    margin-top:0
}
.search-results__item {
    margin-bottom:1rem
}
.search-results__item a {
    font-size:1.2rem;
    display:inline-block;
    margin-bottom:0.5rem
}


@media (max-width: 600px) {
    main {
  	    max-width: 600px;
        padding: 20px;
    }
    h2 {
        font-size: 1.2em;
    }
    :root {
  	    --back-color: white;
    }
}
