:root{
    --ae_gray:  #262627;
}
html{
    -webkit-text-size-adjust:100%;
    font-size: 20px;
    scroll-behavior: smooth;
}

/** { outline: 1px solid rgba(255,0,0,.2); }*/

@media (max-width:700px){
  html{font-size:16px;}
}

body{
    margin: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    
}
header {
    
    background-color: var(--ae_gray);
    
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-left: 2.5rem;
}
header p {
    margin: 0;
}
header p a {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
}

.nav_bar {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    background-color: var(--ae_gray);
    color: white;

    padding-left: 2rem;

    border-color: white;
    border-width: 1px 0px 1px 0px;
    border-style: solid;

    box-shadow: 0 0 6px black;

    list-style: none;
    margin: 0; 

    display: flex;
    flex-flow: row wrap;
}

.nav_bar > li {
    display: block;
    padding: 0;
    transition: background-color 0.25s ease;
}

.nav_bar > li > a {
    padding: 5px 10px 5px 10px;
    color: white;
    text-decoration: none;
    display: block;
}

.nav_bar li:hover {
    background: black;
}

footer {
    bottom: 0;
    background-color: var(--ae_gray);
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 4px;

    box-shadow: inset 0 12px 6px -6px black;
}

footer p {
    margin: 0;
}

footer a {
    color: white;
}

.social_links {
    font-family: 'Source Serif 4', serif;
    font-optical-sizing: auto;
    font-size: 1rem;

    display: flex;
    align-items: center;
    flex-flow: row wrap;
    justify-content: center;

    margin-top: 1em;
    margin-bottom: 0;
    padding: 0;
}

.social_links > li {
    display: block;
    padding: 0;
    transition: background-color 0.25s ease;
}

.social_links > li > a {
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    display: block;
}


.content {
    width:100%;
    max-width:calc(680px + 2rem);
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
    flex: 1;

    box-sizing:border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

.content.bio {
    margin-top: clamp(20px, 3vw, 40px);
    max-width: calc(960px + 2rem);
    margin-bottom: 0;
}

.content.bio img{
  flex: 0 0 clamp(140px, 28vw, 300px);
  width: clamp(140px, 28vw, 300px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid black;
  box-shadow: 3px 3px 6px 0 #ccc;
  margin-left: clamp(0.75rem, 2.42vw, 1.5rem);
  margin-right: clamp(0.75rem, 2.42vw, 1.5rem);
}


.content.bio .bio_text {
    padding-right: clamp(0.75rem, 2.42vw, 1.5rem);
}

@media (max-width: 600px){
  .content.bio .col_container{
    flex-direction: column;
    align-items: center;
  }
  .content.bio img{
    flex: 0 0 auto;
    width: min(60vw, 250px);
    margin: 0 0 0.75rem 0;
  }
  .content.bio .bio_text{
    flex: 1 1 auto;
    padding-right: 0;
  }
}

.content.list {
    width:100%;
    max-width: calc(960px + 2rem);
}

.content .title_block {
    border-color: black;
    border-width: 3px 0px 3px 0px;
    border-style: solid;
    padding-top: 0.5rem;
    padding-bottom: 0.7rem;
    margin-top:1rem;
    margin-bottom: 1rem;
}

.content .list_title_block {
    border-color: black;
    border-width: 3px 0px 3px 0px;
    border-style: solid;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top:1rem;
    margin-bottom: 1rem;
}

.content .list_title_block h1 {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.content .title_block h1 {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.content .title_block h2 {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 300;
    font-weight: normal;
    font-size: 1.2rem;
    margin: 0;
}

.content p {
    font-family: 'Source Serif 4', serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    line-height: 150%;
    margin-top: 0.5rem;
}

.content > h3 {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
}

.content .card {
    border-color: black;
    border-width: 1px;
    border-style: solid;

    box-shadow: 3px 3px 6px 0px #ccc;

    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.content.list {
    padding-left: clamp(10px, 1.5vw, 15px);
    padding-right: clamp(10px, 1.5vw, 15px);
}

.content.list a {
    text-decoration: none;
}
.content.list a:hover {
    color: inherit;
}

.content.list .card {
    transition: border 0.25s ease, box-shadow 0.25s ease;
    border-color: white;
    box-shadow: 3px 3px 6px 0px white;

}

.content.list .card:hover {
    border-color: black;
    box-shadow: 3px 3px 6px 0px #ccc;
}


.content.list .card .col_container img{
  flex: 0 0 clamp(100px, 28vw, 250px);
  width: clamp(100px, 28vw, 250px);
  height: auto;
  object-fit: contain;
  padding: clamp(5px, 1.5vw, 15px);
  min-width: 0;
  max-width: none;
}

.content.list .card .col_container > div{
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 450px){
  .content.list .card .col_container{ 
    flex-direction: column; 
    align-items: center;
  }
  .content.list .card .col_container img{
    max-width: 250px;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: clamp(5px, 1.5vw, 15px) clamp(5px, 1.5vw, 15px) 0 clamp(5px, 1.5vw, 15px);
    box-sizing: border-box;
  }
}

.content.list .card h2 {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    padding-left: clamp(5px, 1.5vw, 15px);
    padding-right: clamp(5px, 1.5vw, 15px);
    margin-bottom: 0;
    margin-top: 20px;
}

.content.list .card p {
    margin-top: 0.25em;
    margin-bottom: 0.5em
}

.content .card h3 {
    background-color: var(--ae_gray);
    color: white;

    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1rem;
    font-weight: normal;

    margin: 0;
    padding-left: clamp(5px, 1.5vw, 15px);
    padding-right: clamp(5px, 1.5vw, 15px);

    padding-top: 5px;
    padding-bottom: 5px;
}

.content .card h3 a {
    color: white;
}

.content .card p {
    padding-left: clamp(5px, 1.5vw, 15px);
    padding-right: clamp(5px, 1.5vw, 15px);
}

.col_container {
    display: flex;
}

.col_v_center {
    align-items: center;
}

.col_container .col {
    flex-grow: 1;
    flex-basis: 0;
}

.col_h_center {
    display: flex;
    justify-content: center;
}

.col_h_right {
    display: flex;
    justify-content: flex-end;
}

.col_container .vr {
    align-self: stretch;
    flex-grow: 0;
    border-width: 0 0 0 1px;
    border-color: black;
    border-style: solid;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.col_container p {
    padding-left: 15px;
    padding-right: 15px;
}

hr {
    border-color: black;
    border-width: 0 0 1px 0;
    border-style: solid;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.content a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.25s ease;

}

.content a:hover {
    color: #316fea;
}

.content.list a.rectangle_link {
    font-family: 'Source Serif 4', serif;
    font-optical-sizing: auto;

    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    
    padding: 0.5em;
    text-align: center;

    border-width: 1px;
    border-color: black;
    border-style: solid;

    transition: box-shadow 0.25s ease;
    box-shadow: 3px 3px 6px 0px white;

}

.content.list a.rectangle_link:hover {
    box-shadow: 3px 3px 6px 0px #ccc;
}

footer .footer_nav {
    list-style: none;

    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding: 0;

    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1em;
}

footer .footer_nav > li {
    display: block;
    flex-grow: 1;
    flex-basis: 0;
}

footer .footer_nav > li > a {
    padding: 5px 10px 5px 10px;
    color: white;
    text-decoration: none;
    display: block;
    transition: background-color 0.25s ease;
}

footer .footer_nav > li > a:hover {
    background-color: black;
}

footer p {
    line-height: 1.5em;
}

code[class*="language-"], pre[class*="language-"] {
    font-size: 0.72rem !important;
}

figure {
    margin: 1.5rem 0 1rem 0;
    text-align: center; 
}

figure img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

figure iframe{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  border:0;
  display:block;
}

figcaption {
    text-align: left;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.2em;
    margin-top: 0.5em;
    font-weight: 500;
}