/* Redesign 2020, stripped down site that's a blog again */

/* Color Key 
 -----------------------------------
 Gray: rgb(190, 187, 100) or #bebbbb
 Light Blue: #C3D2D5
 Dark Blue: rgb (38, 70, 83) or #264653
 Light Blue: rgb (0, 110, 144) or #006E90
 Orange: rgb (221, 97, 74) or #DD614A
 another darker orange 874000
 another orange to try BA5902 */

/* CSS Variables */
:root {
    --color-orange: #DD614A;
    --color-dark-orange: #BA5902;
    --color-gray: #bebbbb;
    --color-blue-dark: #264653;
    --color-blue-light: #006E90; 
    --color-almost-black: #262626;
    --color-accent: var(--color-dark-orange);
    --color-black: var(--color-almost-black);
    --color-neutral: #eee;
    --font-serif: Georgia, serif;
    --font-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --max-width: 40rem;
    --margin-left-large: 5rem;
    --margin-left-small: 3rem;
    --font-size-one: .875rem;
    --font-size-two: 1rem;
    --font-size-three: 1.125rem;
    --font-size-four: 1.25rem;
    --font-size-five: 1.375rem;
    --font-size-six: 1.5rem;
    --font-size-seven: 1.75rem;
    --font-size-eight: 2rem;
}

/* --------------------------------------------------
 Reset
 ------------------------------------------------- */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

ins {
  text-decoration: none;
}

del {
  text-decoration: line-through;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

article, aside, figure, footer, header, hgroup, nav, section {
  display: block;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img {
  width: 100%;
}

.skip,
.a11y {
  left: -1000em;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 0;
}

/* --------------------------------------------------
 Basic styles
 ------------------------------------------------- */

html, body {
    height: 100%;
}

body {
    color: var(--color-almost-black);
    box-sizing: border-box;
    background-color: #fefefe;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-two);
    font-family: --font-serif;
}

.footer-position-wrapper {
    flex: 1 0 auto;
}


ul, ol {
  list-style-type: none;
}


.listImage li {
  list-style-image:url(/images/build/list.png);
  margin:0 0 0 .2em;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

a:link, 
a:visited,
a:active {
  color:var(--color-almost-black);
  padding: 12px 0;
  text-decoration: underline;
  -webkit-transition: color 0.25s ease-in-out;
  -moz-transition: color 0.25s ease-in-out;
  -o-transition: color 0.25s ease-in-out;
  transition: color 0.25s ease-in-out;
}

a:hover {
  color: var(--color-accent);
  text-decoration:none;
}


::selection {
  background-color: var(--color-accent);
  color: #fff;
}

::-moz-selection {
  background-color: var(--color-accent);
  color: #fff; 
}

.ally {
    display: block;
    left: -9999em;
    height: 0;
    position: absolute;
    width: 0;
}

.ally:active,
.a11y:focus,
.a11y:hover {
    left: 0; 
    top: 0;
    width: auto; 
    height: auto; 
    overflow: visible; 
}

/* ---------------------------------------
// Type Styles
//---------------------------------------- */

.hdg-a,
.hdg-b,
.hdg-c,
.hdg-d,
.hdg-e {
    clear: both;
    color: var(--color-almost-black);
    font-family: var(--font-sans-serif);
    font-weight: 500;
    line-height: 1.2;
    padding: 0 0 .1em 0;
    margin: 0 0 .2em 0;
}

.hdg-a {
  font-size: var(--font-size-six);
}

@media (min-width: 50em) {
   .hdg-a {
       font-size: var(--font-size-seven);
   } 
}

.hdg-b {
  font-size: var(--font-size-five);
}

@media (min-width: 50em) {
   .hdg-b {
        font-size: var(--font-size-six);
    } 
}

.hdg-c {
  font-size: var(--font-size-four); 
}

@media (min-width: 56em) {
    .hdg-c {
        font-size: var(--font-size-five);
    }
}

.hdg-d {
  border-bottom: 1px solid var(--color-almost-black);
  font-size: var(--font-size-four);
  line-height: 1.2;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

.hdg-e {
  font-size: var(--font-size-two);
}

.hdg-border {
    border-bottom: 1px solid var(--color-almost-black);
    padding-bottom: .25em;
    margin-bottom: 1em;
}

/* Copy styles */

p {
    clear:both; 
    font-size: var(--font-size-three);
    line-height: 1.3;
    margin:0 0 1.25rem 0;
}

ul.decorated {
    margin-bottom: 2rem;
}

ul.decorated > li {
    list-style-type: disc;
    font-size: var(--font-size-three);
    line-height: 1.5;
    margin:0 0 .25rem 1em;
}

.small {
  font-size: var(--font-size-two);
}


.post-summary {
    font-size: var(--font-size-three);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* -----------------------------------------
// Footer
// ----------------------------------------- */

.global-footer {
    background-color: #262626;
    box-sizing: border-box;
    color: #fff;
    flex: 1 0 auto;
    font-family: var(--font-sans-serif);
    font-size: var(--font-size-one);
    font-weight: 400;
    padding: 4em 1em;
}

@media (min-width: 50em) {
    .global-footer {
        padding: 4em 0;
    }
}

.global-footer p {
    margin-bottom: 1.5em;
}

.global-footer a:link, 
.global-footer a:visited,
.global-footer a:active {
    color: #fff;
}

.global-footer-inner a:hover,
.global-footer-inner a:focus {
    text-decoration: none;
}
@media (min-width: 50em) {
    .footer-text {
       max-width: var(--max-width);
       margin-left: var(--margin-left-large); 
    }
}

.footer-p {
    margin-bottom: 2rem;
}

.footer-hdg {
    color: #fff;
    font-size: var(--font-size-two);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.global-footer p a:link,
.global-footer p a:visited,
.global-footer p a:active {
    color: #fff;
    text-decoration: underline;
}

.global-footer p a:hover,
.global-footer p a:focus {
    color: #fff;
    text-decoration: none;
}

.global-footer .hdg-e {
  border-bottom: none;
  color: #fff;
  display: inline-block;
}
.global-footer .rss-links {
  display: inline-block;
  margin-bottom: 1rem;
}

.global-footer .rss-links li {
  display: inline;
  font-size: var(--font-size-two);
  margin-right: .2rem;
}


/*----------------------------
 Simple layout for the entire site except photo main page
---------------------------- */

.page {
    max-width: var(--max-width);
    padding: 2rem 1rem 3rem;
}

@media (min-width: 50em) {
    .page {
        margin-left: var(--margin-left-large);
        padding: 2rem 0;
    }
}

.photo-list-wrapper {
    padding: 2rem 1rem 3rem;
}

.rule {
    background-color: --coloraccent;
    border: none;
    height: 3px;
    margin: 2rem 0;
    padding: 0;
}

@media (min-width: 50em) {
    .content-wrapper,
    .photo-list-wrapper {
        padding: 3rem 1rem 3rem;
    }
}

/* -----------------------------------------
// Navigation
// ----------------------------------------- */

.nav-wrapper {
    align-content: center;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    padding: 2rem 0 1rem;
}

.nav-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-main > li {
      margin-right: 1rem;
      margin-bottom: 1em;
  }
  
.nav-main > li:last-child {
  margin-right: 0;
}


.nav-main > li a,
.nav-main > li a:active {
  text-decoration: none;
  color: var(--color-almost-black);
  font-family: var(--font-sans-serif);
  font-size: var(--font-size-three);
}

.nav-main > li a:hover,
.nav-main > li a:focus {
  color: var(--color-accent);
}

.nav-main > li a:visited {
    color: var(--color-almost-black);
}

.logo-container {
  display: inline-block;
  margin: 0 auto 2rem;
}

.logo-container a {
  height: 80px;
  padding: 0;
}

.logo-link {
  display: inline-block;
}

a.logo-link .logo,
a.logo-link:active .logo {
  display: inline-block;
  fill: var(--color-orange);
  height: 80px;
}

a.logo-link:hover .logo,
a.logo-link:focus .logo {
  fill: var(--color-almost-black);
}

@media (min-width: 50em) {
  .nav-wrapper {
      flex-direction: row;
      justify-content: flex-start;
      align-items: flex-end;
  }
  
  .logo-container {
    display: block;
    margin-bottom: 0;
    margin-left: var(--margin-left-large);
    margin-top: 0;
    margin-right: 2em; 
  }
  
  .nav-main {
    flex-wrap: nowrap;
  }
  
  .nav-main > li a,
  .nav-main > li a:active {
    display: inline-block;
    font-size: var(--font-size-four);
    padding-left: 0;
  }
}

/*---------------------------
// Home and about page styles
// -------------------------- */
.home-page,
.about-page {
  display: flex;
  flex-direction: column-reverse;
  flex: 1;
  max-width: 50 rem;
  padding: 2rem;
}

@media screen and (min-width: 50em) {
  .home-page,
  .about-page {
    margin-left: var(--margin-left-large);
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    padding: 2rem 0;
  }

  .home-page-text,
  .about-page-text {
    margin-left: 2rem;
  }

  .home-page figure,
  .about-page figure {
    max-width: 50%;
  }

  .about-page-figure {
    margin-top: 4rem;
  }

  .home-page-text p,
  .about-page-text p {
    max-width: 80%;
  }
}

@media screen and (min-width: 60em) {
  .home-page-text {
    margin-top: 4rem;
  }
}

/*---------------------------
// Pagination styles
// -------------------------- */

.pagination-links {
    display: flex;
    justify-content: space-between;
    flex: 1; 
}

.pagination-links a {
    font-size: var(--font-size-two);
    text-decoration: none;
}

.pagination-link-previous:before {
    content: "«";
}

.pagination-link-next:after {
    content: "»";
}

/*---------------------------
// Posts and pages styles
// -------------------------- */

.post-title {
    display: inline-block;
}

.date {
    font-family: var(--font-serif);
    font-style: italic;
}

.post-entry {
    border-top: 1px solid var(--color-accent);
    margin-bottom: 2.5rem;
    padding-top: 2.5rem;
}

@media (min-width: 40em) {
  .post-entry-layout {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }
  .post-entry-layout .date {
    text-align: right;
    margin-bottom: 0;
    width: 30%;
  }

  .post-entry-tldr {
    margin-top: 1rem;
  }

  .links .post-entry-layout {
    margin-bottom: 1.5rem;
  }
}

.post-entry:first-child {
    border-top: none;
}

/* -----------------------------------------
// Post styles
// ----------------------------------------- */

.date {
  display: block;
  font-style: italic;
  margin-bottom: 1em;
}

.post .date {
  margin-bottom: 2em;
}

.post figure,
.page figure {
  margin-bottom: 1.25rem;
  margin-top: 1.5rem;
}

.post figure img,
.page figure img {
  margin-bottom: .5rem;
}

@media screen and (min-width: 40em) {
    .post figure.left {
        float: left;
        margin: 0 1rem 1rem 0;
        width: 30%;
    }
}

.post figcaption,
.page figcaption {
  font-size: 15px;
  
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.4;
}

@media screen and (min-width: 40em) {
  .post figure.small-img img {
    margin: 0 auto;
  }
}

code {
  font-size: 15px;
  
  background-color: #ddd;
  font-family: "Menlo", monospace;
  padding: 0 3px;
}

.post blockquote,
.post-entry blockquote {
  border-left: 2px solid var(--color-accent); 
  padding: 3px 0 3px 20px;
  margin-bottom:2em;
  margin-left: 1%;
  margin-top:2em;
}

.post-entry blockquote p {
  margin-bottom: 0;
}

.post blockquote p {
  margin-bottom: 0;
}

.post ul,
.post ol {
  margin-bottom: 1.5rem;
}

.post ol li,
.post ul li {
  font-size: var(--font-size-three);
  margin: 0 0 .625rem 1.25rem;
  line-height: 1.4;
}

.post ol li {
  list-style-type:decimal;
}

.post ul li {
  list-style-type:disc;
}

.post hr {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  display: block;
  margin: 50px auto;
  width: 75%;
}

.post h2 {
  font-family: var(--font-sans-serif);
  font-size: var(--font-size-four);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: .5em;
  margin-top: 1em;
}

@media (min-width: 50em) {
    .post h2 {
        font-size: var(--font-size-five);
        margin-top: 1.5em;
    }
}

.post h3 {
  font-family: var(--font-sans-serif);
  font-size: var(--font-size-three);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: .5em;
  margin-top: .5em;  
}

@media (min-width: 50em) {
    .post h3 {
        font-size: var(--font-size-four);
    }
}

/* Special styles for blockquotes in reading section */

.reading blockquote {
  border-left: none;
  margin: 1em 0 2rem 0;
  border-top: 1px solid var(--color-accent);
  padding: 2rem .5rem 0 .5rem;
}


/* Index Page specific (maybe?) */

.figcaption {
    font-size: 15px;
    
    font-family: var(--font-serif);
    font-style: italic;
    margin: .5rem 0;
}

/* for when a border would help an image out */

.img-border {
    border: 1px solid rgba(0, 0, 0, .3);
}

/* Photos main page */

.photo-list {
    display: grid;
    grid-template-columns: 1fr;
}

.photo-list-item {
    margin-bottom: 2rem;
}

 .photo-list-text .hdg-b {
    margin: 1rem 1rem 0;
}

.photo-list-text .date {
    margin-left: 1rem;
    margin-right: 1rem;
}

a.photo-list-link:link,
a.photo-list-link:active {
    border: 1px solid var(--color-neutral);
    display: block;
    font-size: 0;
    padding: 0;
    text-decoration: none;
}

a.photo-list-link:visited {
    border: 1px solid var(--color-neutral);
}

a.photo-list-link:hover {
    border: 1px solid var(--color-accent);
    color: var(--color-almost-black);
}

.photo-list-cover {
    width: 100%;
    height: 190px;
}

.photo-list-img {
    height: 190px;
    object-fit: cover;
    width: 100%;
}

@media (min-width: 35em) {
    .photo-list {
        grid-column-gap: 1.5rem;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 55em) {
    .photo-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 75em) {
    .photo-list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 95em) {
    .photo-list {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
}

/* Photo page for MS Edge for now */

@supports not (display: grid) {
    .photo-list {
        max-width: 800px;
    }
    
    .photo-list:after {
        clear: both;
        content: "";
        display: table;
    }
    
    .photo-list-item {
        float: left;
        margin-right: 1%;
        width: 48%;
    }
    
    .photo-list-item:nth-child(2n) {
        margin-right: 0;
    }
    
    .photo-list-item:nth-child(2n+1) {
        clear: left;
    }
}





