/* static/style.css */
:root {
  --darkBlue:           rgba( 26,  32,  53, 1.0);
  --veryDarkBlue:       rgba( 15,  19,  28, 1.0);
  --navyBlue:           rgba( 25,  35,  65, 1.0);
  --darkPurple:         rgba( 49,  43,  85, 1.0);
  --flatBlue:           rgba( 45,  55,  72, 1.0);
  --lightGrey:          rgba(230, 232, 235, 1.0);
  --mediumGrey:         rgba(156, 163, 175, 1.0);
  --lightBlue:          rgba( 96, 165, 250, 1.0);
  --veryLightBlue:      rgba(147, 197, 253, 1.0);

  --bgGradient-top:     var(--veryDarkBlue);
  --bgGradient-middle:  var(--navyBlue);
  --bgGradient-bottom:  var(--darkPurple);
  --textColor:          var(--lightGrey);
  --linkColor:          var(--lightBlue);
  --linkHoverColor:     var(--veryLightBlue);
  --bgColor-header:     var(--darkBlue);
  --bgColor-footer:     var(--darkBlue);
  --bgColor-code:       var(--darkBlue);
  --borderColor:        var(--mediumGrey);
  --mutedText:          var(--medium-grey);
}

@font-face {
  font-family: 'BerkMonoReg';
  src: url('BerkMonoVarReg.woff2') format('woff2');
  font-weight: lighter;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BerkMonoItal';
  src: url('BerkMonoVarReg.woff2') format('woff2');
  font-weight: lighter;
  font-style: italic;
  font-display: swap;
}


/*
 * GENERAL
 */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
  color: var(--textColor);
  background: linear-gradient(202.5deg, var(--bgGradient-top), var(--bgGradient-middle), var(--bgGradient-bottom)) fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-content {
  flex: 1;
}
main {
  margin-bottom: 3rem;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  font-weight: 600;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--borderColor);
  padding-bottom: 0.3em;
}
a {
  color: var(--linkColor);
  text-decoration: none;
}
a:hover {
  color: var(--linkHoverColor);
  text-decoration: underline;
}
figcaption {
  font-size: 0.8em;
}


/*
 * HEADER
 */
.site-header {
  background-color: var(--bgColor-header);
  border-bottom: 1px solid var(--borderColor);
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
}
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav .menu-icon {
  display: none; /* Show on mobile only */
}
.site-nav .page-link {
  margin-left: 1.2rem;
  color: var(--link-color);
  text-decoration: none;
}
.site-nav .page-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .site-nav {
    position: relative;
  }

  .site-nav .page-link {
    display: block;
    margin: 0.5rem 0;
  }

  .site-nav .trigger {
    padding-top: 1rem;
  }
}


/*
 * FOOTER
 */
.site-footer {
  background-color: var(--bgColor-footer);
  color: var(--textColor);
  padding: 2rem 0rem;
}
.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.footer-col-wrapper {
  display: flex;
  flex-wrap: wrap;
}
.footer-col {
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.footer-col-1 {
  padding-left: 0;
  flex: 0 0 40%;
}
.footer-col-2 {
  flex: 0 0 40%;
}
.contact-list,
.social-media-list {
  list-style: none;
  padding-left: 0;
}
@media (max-width: 800px) {
  .footer-col {
    padding: 0;
  }
  .footer-col-1,
  .footer-col-2 {
    flex: 0 0 100%;
  }
}


/*
 * PROJECT CARDS
 */
.date {
  font-weight: normal;
  color: var(--mutedText);
  font-size: 0.9em;
}

.description {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.sub-pages {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.sub-description {
  font-size: 0.9em;
}




.page-list {
  list-style: none;
  padding: 0;
}
.page-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--borderColor);
}
.page-list h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}
.page-meta {
  color: var(--mutedText);
  font-size: 0.9rem;
}
.page-link {
  font-size: 1.25rem;
  font-weight: 600;
}


/*
 * CODE
 */
pre, code {
  font-family: BerkMonoReg, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  font-weight: lighter;
}
code {
  padding: 0.2em 0.4em;
}
pre {
  padding: 0.67rem;
  overflow: auto;
  line-height: 1.1;
}
pre code {
  padding: 0;
  background-color: transparent;
}
div.sourceCode {
  border: 1px solid var(--borderColor);
  background-color: var(--bgColor-code);
}


/*
 * PAGE CONTENT
 */
article {
  margin-bottom: 2rem;
}
article header {
  margin-bottom: 1.5rem;
}
article time {
  color: var(--mutedText);
  font-size: 0.9rem;
}
blockquote {
  border-left: 4px solid var(--borderColor);
  padding-left: 1rem;
  margin-left: 0;
}
img {
  max-width: 100%;
  height: auto;
}
