/* The website layaout is banal:
   HEADER {row1=logo+navbar, row2=pathnav}
   MAIN   {defer to page display}
   FOOTER {copyright row}
*/


body {
  display: flex;
  flex-direction: column;
  max-width:100ch;
  min-height: 100vh;
  line-height:1.2;
  font-size:1.2em;
  margin: 0 0;
  padding: 0;
  background-color: #111;
  color: #eee;
  font-family: sans-serif;
}

h1,h2,h3{line-height:1.2;}


/* -- header -------------------------------------------------------------- */

header {
    line-height:1.0;
    display: flex;
    flex-direction: column;
}

header a {
    display: inline-block;
    color: white;
    text-decoration: none;
}

header nav {
  display: flex; 
  align-items: center;
  list-style-type: none;
}

.header-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 10px 20px;
}

.header-row1 a {
    padding: 10px 20px;
}

.header-row2 {
    background-color: #333;
    margin: 0 0;
    padding: 0px 20px;
}

.header-row2 a {
    padding: 5px 5px;
}

header a:hover {
    color: #00bfac;
    outline: solid 1px;
}

header a.dead {
    color: #b66;
    text-decoration: line-through;
}

header a:hover.dead {
    color: #b66;
    outline: solid 1px;
}


/* -- content ------------------------------------------------------------- */

main {
  flex: 1;
  margin: 0;
  padding: 0 40px;
  background-color: #fff;
  color: #222;
}

main a {
    color: #007f70;
    font-weight: bold;
    text-decoration: none;
}

main a:hover,
main a:focus-visible {
    color: #00574d;
    outline: solid 1px;
    text-decoration: none;
}

main a.dead {
    color: #622;
    text-decoration: line-through;
}

main a:hover.dead {
    color: #622;
    outline: solid 1px;
}

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

main img {
    max-width: 100%;
    padding: 10px 20px;
    
}

main video {
    max-width: 100%;
}

.figure {
    font-size: 0.8em;
    /* padding: 1em 2em 0 2em; */
}


main pre {
    background-color: #222;
    color: white;
    position: relative;
    padding: 1em;
    font-family: monospace;
    overflow: auto;
}


/* -- notes page -- */

.news dt {
    font-weight: bold;
}

.news dd {
    margin: 20px 20px;
}

.links dd {
    margin: 10px 10px;
}


/* -- posts page --  */
dl.posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

dl.posts dt {
    display: flex;
    align-items: baseline;
    gap: 1em; /* Adjust space between date and title */
    margin-bottom: 0.5em;}

dl.posts time {
    flex: 0 0 7em; /* Fixed width: doesn't grow, doesn't shrink, stays 120px */
    color: #555;
}

dl.posts dd {
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
}


/* -- single post -- */

section.post .byline {
    color: #555;
    font-size: 0.8em;     /* same as .figure */
    margin: -0.5em 0 1.5em;
}

.author {
    font-weight: bold;
}


/* -- footer -------------------------------------------------------------- */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 10px 20px;
}
