@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;900&family=Raleway:wght@200;400&display=swap');

:root {
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --darkgray: #555;
  --black: #000;
  --orange: #F46623;
  --lightorange: #FFA83D;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: "Raleway", system-ui, sans-serif;
  color: var(--darkgray);
  background-color: var(--white);
}
img {
  max-width: 37.5em;
}
@media screen and (max-width: 640px) {
img {
  height: auto;
  max-width: 100%;
  }
}
p:last-child {
  margin-bottom: 0;
}
.tmpl-news p {
  max-width: 50em;
}
p, article ul, article ol, ul.grant li,
.tmpl-post li, .tmpl-news li, .tmpl-grants li {
  max-width: 37.5em; /* 600px /16 */
}
p,
.tmpl-post li, .tmpl-news li, .tmpl-grants li,
ul.grant li {
  line-height: 1.75;
}
a[href] {
  color: var(--orange);
}
a[href]:hover {
  color: var(--orange);
}
a[href]:visited {
  color: var(--darkgray);
}

header:after {
  content: "";
  display: table;
  clear: both;
}
table {
  margin: 1em;
}
table td,
table th {
  padding-right: 1em;
}

h1,h2,h3 {
    font-family: "Lato", sans-serif;
}

h1 {
  font-size: 3.25em;
  font-weight: 900;
  margin: auto auto 1em auto;
}

.container {
  width: 90%;
  margin: 2em auto;
  padding: 1em 0;
}

.policy aside {
  width: 33%;
  float: right;
}

pre {
  margin: 1em;
  padding: 1em;
  background-color: var(--lightgray);
  overflow: scroll;
}

aside ol {
  list-style: disc;
}

.policy article {
  width: 60%;
}

table {
  border: 1px black solid;
}
/* Header */
header img {
    width: 10em;
}
header {
  background: rgb(244,102,35);
  background: linear-gradient(0deg, rgba(244,102,35,1) 0%, rgba(255,168,61,1) 100%);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  padding-bottom: 0.75em;
}
header a[href]:visited {
  color: var(--lightgrey);
}

/* Nav */
.nav {
  font-family: "Raleway", sans-serif;
  list-style: none;
  display: flex;
  padding-left: 0;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
  margin-top: 0;
}
.nav-item {
  padding: 1em 1.5em 0 1em;
  display: block;
}
.home {
    padding-right: 2em;
}
.nav-item a {
  color: white;
}
.nav-item a:hover {
  color: var(--white)
}

/* Main */

main {
  min-height: 75vh;
}

/* Buttons */
.cta-box {
    text-align: center;
    padding: 2em;
    margin: 2em 0;
    border: var(--orange) 1px dotted;
    width: 80%;
}
.cta-white {
    background: var(--white);
    border: var(--orange) 1px solid;
}
.cta-white a[href], .cta-white a[href]:visited {
    color: var(--orange);
    text-decoration: none;
}
.cta-orange {
    border: var(--white) 1px solid;
    background: var(--orange);
}
.cta-orange a[href], .cta-orange a[href]:visited, .cta-gradient a[href], .cta-gradient a[href]:visited {
    color: var(--white);
    text-decoration: none;
}
.cta-gradient {
  background: rgb(244,102,35);
  background: linear-gradient(0deg, rgba(244,102,35,1) 0%, rgba(255,168,61,1) 100%);
}
.button {
    font-family: "Raleway", sans-serif;
    padding: 1em;
    border-radius: 10px;
    display: inline-block;
}

.member a[href]:not(:hover),.nav-item a[href]:not(:hover) {
  text-decoration: none;
}

.donor  a[href]:not(:hover),.nav-item a[href]:not(:hover) {
  text-decoration: none;
}

.nav-item-active {
  font-weight: 900;
  text-decoration: underline;
}

#splash h1 {
    font-size: 5em;
    font-weight: 900;
    margin: 0;
}
#splash h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 300;
}

@media screen and (max-width: 640px) {
  #splash h1 {
    font-size: calc(9vw + 8px);
  }
}

/* Mission */
#mission {
    width: 80%;
    text-align: center;
    border-bottom: 1px var(--lightorange) dotted;
    padding-bottom: 4em;
}
/* The last of the lists on the front page before the sponsors has orange separator */
#events {
    border-bottom: 1px var(--lightorange) dotted;
    padding-bottom: 4em;
}
#special-content {
  text-align: center;
  border-bottom: 1px var(--lightorange) dotted;
  padding-bottom: 4em;
}
#mission h1, #special-content h1, #news h1, #posts h1, #events h1 { /* FIXME why are we even using more than one h1 on a page */
    margin: 2em 0 1em 0;
    font-size: 2em;
}
#mission h2 {
    margin: 1em auto 2em auto;
    width: 90%;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    line-height: 2em;
}

/* 404 */
#notfound {
    text-align: center;
}
#notfound img {
    padding: 2em;
    width: 40%;
}
#notfound p {
    margin: 1em auto;
    text-align: left;
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
}
.postlist-item {
  counter-increment: start-from -1;
}
.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 {
  display: inline-block;
  padding: 0.25em 0.1875em; /* 4px 3px /16 */
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 700;
}
.post-byline {
  font-size: 1.1875em; /* 19px /16 */
  margin: 1em 0;
  color: var(--darkgray);
}
.post-date {
  font-size: 1.1875em; /* 19px /16 */
  color: var(--darkgray);
}

/* Tags */
.post-tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  font-size: 0.625em; /* 10px /16 */
  padding: 2px 4px;
  margin-left: 0.8em; /* 8px /10 */
  background-color: var(--orange);
  color: var(--white);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
}
a[href].post-tag,
a[href].post-tag:visited {
  color: #fff;
}

/* 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;
}

/* Footer */
footer {
    background-color: var(--orange);
    color: var(--white);
    text-align: center;
}
footer p {
    display: inline;
}

footer .social_icon {
  width: 50px;
  margin-bottom: 2em;
  margin-right: 2em;
}

footer img {
    width: 15%;
    margin-bottom: 1em;
}
footer a[href], footer a[href]:visited, footer a[href]:hover {
    color: var(--white);
}
footer .container {
    margin-bottom: 0;
}

/* Contact */
.contact .social_icon {
  width: 100px;
  height: 88px;  
  margin-top: 3em;
  margin-right: 2em;
} 





/* Board */
.peoplelist, .memberslist {
  list-style-type: none;
}

.peoplelist li:hover .ferris {
  display: inline-block;
}

.peoplelist .ferris {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: white;
  background-size: cover;
  background-position: center;
  height: 15em;
  width: 15em;
}

.person {
  display:table-cell;
  position: absolute;
  bottom: 0.5em;
  left: 0.5em;
}

.person h2 {
  padding: 0.25em;
  background: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 1em;
}

.person h3 {
  padding: 0.25em;
  background: white;
  font-size: 0.75em;
  color: var(--orange);
  margin: 0;
}

.peoplelist li {
  background: var(--lightgray);
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 1em;
  height: 15em;
  width: 15em;
  display: inline-block;
  margin: 0.5em;
}

.memberslist {
  text-align: center;
}

.memberslist li {
  padding: 1em;
  display: inline-block;
}

.memberslist li.platinummember {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 1em;
  height: 15em;
  width: 20em;
  display: inline-block;
  margin: 0.5em;
} 

.memberslist li.goldmember {
  position: relative;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

.memberslist li.silvermember {
  position: relative;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

.memberslist li.associatemember {
  position: relative;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

.memberslist li:hover .founding {
  display: inline-block;
}

.memberslist .platinummember .founding {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: white;
  background-size: cover;
  background-position: center;
  height: 15em;
  width: 20em;
}

.memberslist .goldmember .founding {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: white;
  background-size: cover;
  background-position: center;
  height: 12em;
  width: 15em;
}

.memberslist .silvermember .founding {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: white;
  background-size: cover;
  background-position: center;
  height: 10em;
  width: 12em;
}

.memberslist-small li img {
  width: 7em;
}

.associatemember img {
  width: 7em;
}

.silvermember img {
  width: 10em;
}
  
.goldmember img {
  width: 15em;
}

.platinummember img {
  width: 20em;
}

.donorslist {
  text-align: center;
}

.donorslist li {
  padding: 1em;
  display: inline-block;
  position: relative;
  background-size: cover;
  background-position: center;
}

.donorslist img {
  width: 9em;
}

/* Post */

@media only screen and (min-width: 768px) {
  .post {
    width: 60%;
    margin: 0 auto;
  }
}

.post h2, .event h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  margin: 1em 0;
}

.post h2.series {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  margin-bottom: -2em;
}

.post-tags, .event-tags {
  margin-top: 5em;
  font-size: 1em;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
}

h2.date {
  font-size: 1em;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
}

article p, article ul, article ol {
  line-height: 1.75em;
}

p.list-item {
    margin-left: 2em;
}

span.list-item {
    margin-left: -2em;
}

/* Membership Tables */
table {
    vertical-align: top;
    border: none;
    border-collapse: collapse;
    color: black;
    display: inline-block;
}
td {
    margin: 0;
    padding: 1em;
    min-width: 10em;
}
#member-platinum {
    background-color: #F46524;
}
#member-gold {
    background-color: #FB8B01;
}
#silver-scale td, #member-silver {
    background-color: #FFD866;
}
#member-associate {
    background-color: #FFEBB3;
}
#member-individual {
    background-color: #FFF8E6;
}
#discount-team {
    background-color: #B4A6D5;
}
#discount-infra {
    background-color: #C27B9F;
}
#discount-commit {
    background-color: #E06666;
}

#video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16x9 */
  padding-top: 25px;
  height: 0;
}

iframe {
  position: absolute;
  top: 0;
  margin: 0 auto;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: 960px;
  max-height: 640px;
}

.video-holder {
  display: inline-block;
  width: 100%;
  height: 100%;
  max-width: 960px;
  max-height: 640px;
  margin-top: 1em;
}

/* Careers */
.job {
  max-width: 37.5em;
  padding: 0.5em;
  background-color: #FFD866;
  border: var(--orange) 1px solid;
  min-height: 250px;
}

.job p.headline {
  font-weight: bold;
  font-size: 120%;
  text-align: center;
  line-height: 2;
}

.job .cta-box {
    text-align: center;
    padding: 0.5em;
    margin: auto;
    border: none;
}
