/* ==========================================================================
   colors
   ==========================================================================
   #c62a14 - red links
   #ff3506 - red link hover color
   #636363 - h1s
   #946c46 - h3s, book date heading and language heading
   #959595 - nav links, breadcrumb hover
   #534741 - nav links hover, breadcrumb hover
   #d7d7d7 - dividers
   #707070 - venture
   ========================================================================== */

/* ==========================================================================
   setup
   ========================================================================== */

html,
html._header-thick,
html._header-thin { border: none; }

html { background: 0 0; }

body#home {
    background-image: url('/img/homepage/background.png');
    background-repeat: inherit;
    background-color: #fac773;
    background-attachment: fixed;
    background-size: auto;
    color: #636363;
    font-family: Source Sans Pro, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.125rem;
    min-height: 100%; 
    padding-bottom: 0.75rem; 
}

a {
    text-decoration: none;
    color: #c62a14;
}

a:hover { color: #e9951c; }

a[name] { color: #000; }

a img { border: 0; }

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #636363;
    margin: 0 0 2.375rem;
    line-height: 1.875rem;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #232323;
    margin: 1.4rem 0 1.4rem;
    line-height: 1.62rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: .125rem;
}

h3 {
    font-family: Source Sans Pro, Arial, sans-serif;
    font-size: 1rem;
    color: #946c46;
    margin: .8rem 0 .125rem;
}

/* ==========================================================================
   homepage
   ========================================================================== */

#home h1 {
    width: 347px;
    height: 32px;
    font-size: 0;
    margin: 0;
}

#home h1 svg { fill: #c62a14; }

#home h2 {
    border: none;
    color: #5a5959;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 .3rem 0;
    padding: 0;
}

#home #books,
#home #writings,
#home .home-footer-links {
    background: #fff;
    margin-top: .25rem;
    padding: 1.5rem 4.68rem;
    padding-bottom: 1.875rem;
    text-align: left;
    width: 100%;
}

/* ==========================================================================
   SW presentation / profile
   ========================================================================== */

#home #wrapper {
    text-align: center;
    max-width: 1180px;
    width: 100%;
    padding: 2.81rem 1.25rem 0 1.25rem;
    overflow: inherit;
    margin: 0 auto;
}

img#sw-portrait {
    background-attachment: fixed;
    background-color: #fac773;
    background-image: url('/img/homepage/background.png');
    background-repeat: inherit;
    background-size: auto;
}

#home #content {
    background: #fff;
    width: 100%;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 .3rem .62rem #f7dfad;
    margin: 0;
}

#home ul { list-style-type: none; }

#home #profile {
    max-height: 520px;
    padding-top: 4.4rem;
    margin-bottom: 1.2rem;
}

.home-left {
    text-align: left;
    padding-left: 5.9rem;
    order: 1;
}

.home-right {
    padding-right: 4.75rem;
    order: 2;
}

#home .twitter {
    padding-right: 4.75rem;
    order: 2;
    margin-left: 0;
    margin: 0 auto;
    text-align: center;
    align-self: self-start;
    margin-bottom: 1.25rem;
}

#home .twitter img { width: auto; }

#home .twitter a {
    background: 0 0;
    color: #5a5959;
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 1.25rem;
    text-transform: uppercase;
}

#home .twitter a:nth-child(-n+2) { margin-right: 1.2rem; }

#home .twitter a:active,
#home .twitter a:hover { color: #d32d14; }

#home .twitter a img {
    margin: -.25rem .25rem 0 0;
    vertical-align: middle;
}

.home-footer-links h2 {
    margin: 0;
    text-align: left;
    color: #5a5959;
}

.main-links {
    margin: 2.5rem 0 0 0;
    padding: 0;
}

.main-links li { position: relative; }

.main-links li:before {
    color: #d32d14;
    content: '■';
    display: block;
    font-size: 0.6rem;
    position: absolute;
    top: 0.15rem;
}

.main-links li.contact:before {
    content: none;
    display: block;
    font-size: 1rem;
    position: absolute;
    top: -.125rem;
}

.main-links li.grey:before { color: #636363; }

.main-links li.grey.search { border-top: 1px solid #c7c7c7; }

.main-links a {
    color: #000;
    display: block;
    font-family: Source Sans Pro, Arial, sans-serif; 
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: .3rem 0 1.4rem;
    padding-left: 1rem;
}

.main-links a:hover { color: #d32d14; }

.main-links .contact a { font-weight: 400; }

.main-links .grey a {
    color: #636363;
    font-weight: 400;
}

.main-links .grey a:hover { color: #d32d14; }

#search-form {
    border-top: 1px solid #c7c7c7;
    max-width: 300px;
    padding-top: .5rem;
    position: relative;
    top: -.5rem;
    width: 100%;
}

#search-label {
    color: #636363;
    cursor: pointer;
    display: block;
    font-family: Source Sans Pro, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    margin: .3rem 0;
    padding-left: 1rem;
    position: relative;
}

#search-label:before {
    background: transparent url('/img/homepage/search-icon.png') no-repeat;
    content: '';
    display: block;
    height: 16px;
    left: -.25rem;
    position: absolute;
    top: 0;
    width: 16px;
}

#search-submit {
    background: transparent url('/img/homepage/search-icon.png') no-repeat;
    border: none;
    height: 16px;
    left: 8px;
    margin: 0;
    padding: 0;
    position: absolute;
    text-indent: -999999999999px;
    top: 8px;
    width: 16px;
}

#search-close {
    background: transparent url('/img/homepage/search-close.png') no-repeat;
    border: none;
    height: 10px;
    right: 11px;
    margin: 0;
    padding: 0;
    position: absolute;
    text-indent: -999999999999px;
    top: 11px;
    width: 10px;
}

#search-input {
    border-radius: 6px;
    border: 1px solid #c7c7c7;
    color: #636363;
    padding: 6px 28px;
    width: 100%;
}

.header-links {
    margin: 1rem 0 .3rem 0;
    font-size: 0.85rem;
    color: #636363;
}

.header-links a,
.header-links p {
    font-weight: 700;
    margin: 0;
    font-size: .68rem;
    color: #636363;
}

.header-links, .header-links a {
    font-size: 0.85rem;
    line-height:1.6;    
}



.header-links a:hover, .wolfram-links li a:hover,a.more:hover { color: #c62a14; }

/* ==========================================================================
   Writings & Books
   ========================================================================== */

#home #bottom {
    margin-top: 0.3rem;
    background: #fff;
}

#home #books>a {
    display: inline-block;
    line-height: 0;
    margin: .5rem .375rem .375rem 0;
    vertical-align: middle;
}

#home #books>a:active img,
#home #books>a:hover img { opacity: .85; }

#home #bottom a h3 {
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
#home #bottom a h3 .subtitle { display: none; }
#home #bottom a p {
    color: #000;
    font-size: .8rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

#home #bottom a:active h2,
#home #bottom a:active h3,
#home #bottom a:active p,
#home #bottom a:hover h2,
#home #bottom a:hover h3,
#home #bottom a:hover p { color: #d32d14; }

#home #bottom #writings  { padding-right: 0; }

#home #bottom #writings a p {
    color: #797979;
    font-size: .85rem;
    font-weight: 400;
    padding-top:.15rem
}

#home #bottom #books  { padding-left: 0; }

#home #writings {
    flex:0 50%;
    margin-top: 0;
    padding: 1.5rem 0rem 1.5rem 5.9rem;
}

#home #books {
    flex: 0 45.5%;
    margin-top: 0;
    padding: 1.5rem 6rem 1.5rem 4rem;
}

#home .home-footer-links {
    margin-top: 0;
    padding: 1.5rem 4rem;
}

.book-shadow { box-shadow: 0px 0px 5px #c8c8c8; }

div#book-shelf { padding-top: 0.5rem; }

#home #books #book-shelf a {
    text-align: center;
    margin-bottom: 13px;
}

a.more {
    color: #636363;
    font-size: 0.9rem; 
    margin-top: .625rem;
}

a.more:hover { color: #c11451; }

#swBlogFeed a { padding-bottom: 1rem; }

#home #writings #swBlogFeed a:nth-of-type(7),#home #writings #swBlogFeed a:nth-of-type(8) { display: none; }

#home #writings #swBlogFeed a:hover img, 
#home #books #book-shelf a:hover img { 
	box-shadow: 0 0 1px 2px #f8c15f; 
}

#home #writings #swBlogFeed img {
	box-shadow: 0 0 1px 1px #ccc; 
    height: 54px;
    width: 64px;
}

#home #writings #swBlogFeed a {
    flex: 0 49%
    margin-top: 0.9rem;
}

#home #writings #swBlogFeed a:first-of-type { margin-top: 0.3rem; }

#home #writings #swBlogFeed a>* {
    display: table-cell;
    margin: 0;
    padding: .3rem 0;
    vertical-align: middle;
}

#home #writings #swBlogFeed a>:first-child { width: 80px; }

#home #writings #swBlogFeed a {
    flex:0 95%;
}

#home .socialLinks h2 {
    margin: 0 1rem;
    color: #636363;
    opacity: .65;
}

ul.wolfram-links {
    margin: 0;
    padding: 0;
    text-align: left;
}

#home .wolfram-links li {
    flex: 0 32%;
    height: 1.56rem;
    margin: .425rem .625rem 0 0;
    width: 218px;
}

.wolfram-links li a { color: #636363; }

.wolfram-links li a:hover { color: #d32d14; }

.wolfram-links li img {
    vertical-align: middle;
    margin-right: .3rem;
}

#home ul.socialLinks {
    line-height: 0;
    margin: 1.5rem 0;
    padding: 0;
    text-align: left;
}

.socialLinks a {
    display: inline-block;
    max-height: 1.93rem;
    margin: 0 .625rem 0 0;
}

ul.socialLinks h2 { display: none; }

.socialLinks a:active img,
.socialLinks a:hover img { opacity: .85; }

#home #credits {
    box-sizing: border-box;
    clear: both;
    color: #636363;
    font-family: Source Sans Pro, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    border-left: none;
    padding: 1rem;
    opacity: .65;
}

#home .home-footer-links {
    border-top: .3rem solid #ffda71;
    padding: 1.5rem 4rem 1.8rem 5.9rem;
}

.home-footer-links a { display: inline-block; }

/* ==========================================================================
   2020 Physics Banner
   ========================================================================== */

.banner {
    margin: 0;
    font-size: .975rem;
    border-bottom: .25rem solid #c1afd8;
    background: #f1edf6;
}

.banner img {
    margin-right: .625rem;
    vertical-align: middle;
}

.banner p {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    font-weight: 700;
    color: #636363;
}

.banner a { color: #714aa5; }

.banner a.bottom {
    color: #636363;
    font-weight: 400;
}

.banner a:hover { color: #c11451; }

/* ==========================================================================
   Media
   ========================================================================== */

@media (max-width: 1200px) {
    #home .wolfram-links li {
        flex: 0 31%;
    }
    #home #books #book-shelf a img{
        width: 10.3vw;
        height: auto;
    }
    
    #home #books #book-shelf a img.wide {
        width:35vw;
        height:auto;
    }
}

@media (min-width: 1000px) {
	#home #writings #swBlogFeed a:nth-of-type(7) { display: block; }
}

@media all and (max-width: 900px) {
    body#home {
        background-image: none;
        background-color: rgb(255, 207, 111);
    }

    #home #profile,
    #home #bottom #books,
    #home #bottom #writings,
    #home #bottom .home-footer-links {
        padding: 1.5rem;
        padding-left: 7%;
        padding-right: 7%;
    }

    #home #wrapper {
        margin-top: 0;
        padding: 0.5rem;
    }

    #home #profile {
        max-height: 600px;
        padding-top: 4rem;
        margin-bottom: .5rem;
        padding-bottom: .7rem;
    }
    
    .header-links { width: 44vw; }

    .main-links {
        margin: 2rem 0 0 0;
    }

    #home .home-right {
        padding-right: 0;
        max-width: inherit;
    }

    .home-right img {
        width: 35vw;
        max-width:250px;
        height: auto;
    }

    #home .twitter a {
        font-size: .7rem;
    }

    #home .twitter {
        padding-right: 0;
    }

    #home .home-left {
        padding: 0;
        max-width: 280px;
    }

    #home .home-left h1,
    #home .home-left h1 img {
        max-width: 280px;
        height: auto;
    }

    #home #bottom #books  {
        border-top: .3rem solid #ffda71;
        padding-left: 2%;
        padding-right: 2%;
    }

    #home #bottom #books h2 {
        padding: 0px 7% 7px 5.2%;
    }

    #home #writings,
    #home #books {
        flex:0 100%;
    }

    #home #writings #swBlogFeed a {
        flex:0 48%;
    }

    #home .wolfram-links li {
        flex: 0 31%;
    }

    div#book-shelf {
    	flex-wrap: nowrap;
        width: 89.5%;
        margin: auto;
    }
    
    .repeatingbackground {
    	padding-bottom:8px;
    }
    
    .repeatingbackground a {
    	width: 776px;
        height: 221px;
    	background-image: url(/img/homepage/banner-bg.png);
    	background-repeat: repeat-x;
    	background-size: contain;
    }
    
    .justify-content-se__900, .heirs-justify-content-se__900 > * {
    	justify-content: space-between;
	}

    #home #books #book-shelf a img{
        width:calc(1.25 * 6.676vw);
        height:auto;
    }
    
    #home #books #book-shelf a img.wide{
        width:378px;
        height:221px;
    }

    #home #books>a {
        margin: .5rem .375rem .375rem 5%;
    }
;
}

/** ********************************** **/

@media (max-width: 785px) {

    #home .wolfram-links li {
        flex: 0 48%;
    };
}

/** ********************************** **/

@media (max-width: 650px) {

    div#book-shelf {
    	flex-wrap: wrap;
    }
}

/** ********************************** **/

@media all and (max-width: 600px) {

    #home #wrapper {
        padding: 0.5rem 0.5rem 0;
    }
    
    #home .banner {
        position: initial;
        width: 100%;
        left: 0;
        top: 0;
    }

    #home #profile {
        max-height: 100%;
        padding: 10px 1rem 0 1rem;
    }
    
    .main-links { margin: 1rem 0 0 0; }
    
    #home h1 {
    	width: 100%;
    	height: auto;
    	font-size: 0;
    	margin: 0 0 0.25rem 0;
	}
    
    #home h1 img { 
    	max-width: 15.625rem; 
    	width: 100%; 
    }

     body#home {
		background: rgb(255, 207, 111);
   		background-image: none;
    }

    #home .home-left h1,
    #home .home-left h1 img {
        width: 100%;
    }

    #home .home-left, #home .home-right {
        margin: 0 auto;
        padding: 0;
    }

    #home .home-left {
        order: 2;
        padding-top: 0;
    }
    
    .header-links { width: inherit; }
    
    #home ul.socialLinks img {
    	width: 25px;
		height: auto;
	}

    #home .twitter {
        order: 3;
        padding-right: 0;
        border-top: 1px solid #d1d1d1;
        justify-content: space-between;
        max-width: 285px;
    }

    .home-right img {
        width: 55vw;
        max-width: 205px;
    }

    #home .home-right {
        margin-top: 30px;
        order: 1;
    }

    #home #bottom h2 {
        text-align: center;
    }

    #home #writings,
    #home #books,
    #home .home-footer-links {
        padding: 1rem;
    }

    #home #writings #swBlogFeed a {
        flex: 0 100%;
    }

    #home .wolfram-links li {
        flex: 0 100%;
    }

    #book-shelf a {
        flex:0 32%;
    }

    div#book-shelf {
    	flex-wrap:wrap;
        width: 89.5%;
        margin: auto;
    }
    
    .justify-content-se__900, .heirs-justify-content-se__900 > * {
    	justify-content: space-evenly;
	}
	
	.repeatingbackground a {
    	width: auto;
        height: auto;
    }

    #home #books #book-shelf a img{
        width: calc(1.85 * 12vw);
        height:auto;
    }
    
    #home #books #book-shelf a img.wide {
        width:74vw;
        height:auto;
    }

    #home #writings>a,
    #home #books>a {
        display: block;
        margin: 0;
        padding: 0;
        text-align:center;
    }

    ul.wolfram-links {
        margin-left: 0px;
        max-width: 200px;
        margin: auto;
    }

    div#swBlogFeed {
        max-width: 385px;
        margin: auto;
    }

    #swBlogFeed a {
        padding-left: 10px;
    }
    
    #home #writings #swBlogFeed img {
    	height: 38px;
    	width: 45px;
    }
    
    #home #writings #swBlogFeed a>:first-child {
    	width: 58px;
	}
	
    #home #profile, #home #bottom #books, #home #bottom #writings, #home #bottom .home-footer-links {
    	padding-left: 4%;
    	padding-right: 4%;
	}
}

/** ********************************** **/

@media (max-width: 480px) {
    #home .wolfram-links li {
        flex: 0 100%;
    }
    ul.wolfram-links {
        margin-left: 22%;
    };
    #home #books #book-shelf a img{
        width: calc(1.85 * 12.676vw);
        height:auto;
    }
}

/** ********************************** **/

@media (max-width: 320px) {
    #home #books #book-shelf a img{
        width: calc(1.85 * 13.676vw);
        height:auto;
    }
}

