/* * * * */
/* reset */
/* * * * */

:root {
  --space-l: 5rem;
  --space-m: 3rem;
  --space-s: 1.7rem;
  --bg-color: #222;
  --text-color: #fff;
}
html {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 10px;
  color: var(--text-color);
  background: var(--bg-color);
  height: 100%;
  min-height: 100vh;
}

body, h1, h2, h3, h4, p, ul, menu {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
}

/* * * * * */
/* layout  */
/* * * * * */

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}
/* for email page */
.unflexed {
  display: block;
  padding: 20px;
}

header {
  position: fixed;
  top: 20px;
  left: 20px;
  transition: opacity 0.5s;
}
/* dim header when primer is active*/
.fade {
  opacity: 0.4;
}
.fade:hover {
  opacity: 1;
}
/* for email/index */
.unfixed {
  position: relative;
  top: 0;
  left: 0;
}

img {
  width: 300px;
  border: 1px solid var(--text-color);
}

/* show on mobile only */
menu,
.progress-container {
  display: none;
}

section {
  display: none;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  padding: 10px;
  max-width: 845px;
  background-color: rgba(34, 34, 34, 0.7);
}
section.current {
  display: block;
}

/* * * * * */
/* spacing */
/* * * * * */

/* large */
.unfixed,
.title h4,
.margin-bottom-l {
  margin-bottom: var(--space-l);
}
/* medium */
h3 {
  margin-bottom: var(--space-m);
}
/* small */
h4,
p:not(:last-child),
li:not(:last-child),
img {
  margin-bottom: var(--space-s);
}

/* for unordered lists with no space between items */
.no-space li {
  margin-bottom: 0;
}
.no-space + p {
  margin-top: var(--space-s);
}

.email-body {
  display: inline-block;
  border-top: 1px dotted var(--text-color);
  border-bottom: 1px dotted var(--text-color);
  padding-top: var(--space-m);
  padding-bottom: var(--space-m);
}

/* * * */
/* red */
/* * * */

h1,
h1 a,
h1 a:hover,
.section-toggle.current,
.section-toggle:hover,
.menu-toggle.current,
.menu-toggle:hover,
.red {
  color: red;
}

/* * * * */
/* type  */
/* * * * */

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 3rem;
}
h3:after {
  content: " ";
  display: block;
  margin-top: 2rem;
  width: 50px;
  border-bottom: 1px solid var(--text-color);
}
h4 {
  font-size: 1.5rem;
  font-style: italic;
}
p, li {
  max-width: 825px;
  font-size: 2rem;
  line-height: 2.7rem;
}
li {
  margin-left: 30px;
  width: calc(100% - 30px);
}
a {
  color: var(--text-color);
  transition: color 0.2s;
}
a:hover {
  color: yellow;
}
h1 a {
  text-decoration: none;
}
/* numbers (indicating slides) for mobile only */
.number {
  display: none;
}

/* * * * * * * * */
/* title slides  */
/* * * * * * * * */

.title {
  text-align: center;
}
.title h2 {
  font-size: 5rem;
  font-weight: 600;
  font-style: italic;
}

/* * * * * */
/* buttons */
/* * * * * */

button {
  box-sizing: border-box;
  margin-top: var(--space-l);
  border: 0;
  padding: 10px;
  min-width: 75px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
  background-color: #efefef;
  transition: background-color 0.2s;
}
button:hover {
  background-color: #bebebe;
}
button + button {
  margin-left: 10px;
}
.bg-red,
.next {
  font-weight: 600;
  color: var(--text-color);
  background-color: #ea0202;
}
.bg-red:hover,
.next:hover {
  background-color: #b10000;
}
.primary {
  min-width: 150px;
}

/* * * * */
/* menus */
/* * * * */

footer {
  position: fixed;
  bottom: 20px;
  padding: 5px 10px;
  text-align: center;
}
.menu-link,
.menu-toggle,
.section-toggle {
  border: none;
  border-bottom: 1px solid var(--bg-color);
  padding: 5px;
  font-size: 1.5rem;
  color: var(--text-color);
  background: none;
  min-width: 0px;
}
.section-toggle.current {
  border-bottom: 1px solid red;
}
.menu-toggle:hover,
.section-toggle:hover {
  background: none;
}

/* * * * * */
/* mobile  */
/* * * * * */

@media (max-width: 845px) {
  
  /* * * * * * * * * * * */
  /* hide/show elements  */
  /* * * * * * * * * * * */
  
  .fade,
  footer,
  .hide-on-mobile {
    display: none;
  }

  /* * * * * */
  /* layout  */
  /* * * * * */
  
  body {
    display: block;
  }

  header:not(.unfixed) {
    position: relative;
    top: 0;
    left: 0;
    padding: var(--space-l) 10px 10px;
  }

  section {
    padding: var(--space-l) 10px;
  }

  .title.current {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
  }

  /* * * * * * * */
  /* mobile type */
  /* * * * * * * */

  .title h4 {
    margin-bottom: var(--space-m);
  }

  .number {
    display: inline-block;
    margin-left: 5px;
    font-style: normal;
  }

  button {
    padding: 15px;
    min-width: 100px;
    margin-top: var(--space-m);
  }

  /* * * * * * * */
  /* mobile menu */
  /* * * * * * * */

  menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding: 10px;
    background: var(--bg-color);
    box-shadow: -10px 10px 15px var(--bg-color);
  }
  .section-toggle,
  .menu-link {
    display: none;
  }
  .active .menu-link,
  .active .section-toggle,
  .menu-toggle {
    display: inline-block;
    align-self: flex-end;
    margin: 0;
    border-bottom: none;
    padding: 6px 15px;
  }

  /* * * * * * * * */
  /* progress bar  */
  /* * * * * * * * */

  .progress-container.active {
    display: block;
    position: absolute;
    top: 25px;
    left: 10px;
    z-index: 5;
    width: 50%;
    height: 2px;
    background-color: var(--text-color);
  }

  .progress-bar {
    position: absolute;
    height: 2px;
    background-color: red;
    transition: width 0.2s;
  }
}

/* * * * */
/* fonts */
/* * * * */

/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: local('Source Sans Pro SemiBold Italic'), local('SourceSansPro-SemiBoldItalic'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdi18S0xR41YDw.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: local('Source Sans Pro SemiBold Italic'), local('SourceSansPro-SemiBoldItalic'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18S0xR41.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRdu3cOWxy40.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu3cOWxw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lujVj9_mf.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJB9cme_xc.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'), url(https://fonts.gstatic.com/s/sourcesanspro/v13/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDJB9cme.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}