/* style.css */

@import url("https://fonts.googleapis.com/css?family=B612+Mono&display=swap") screen;
@import url("https://fonts.googleapis.com/css?family=Noto+Sans&display=swap") screen;
@import url("https://fonts.googleapis.com/css?family=Noto+Serif&display=swap") screen;

:root {
    --tng-blue: #79b8b1;
    --body-text: #b0c4de;
    -moz-osx-font-smoothing: grayscale;
    max-width: 40em;
    background-color: #1c4e63;
     /*   #ffe8cc; */
     /*   #fffff8; */
}

html {
    height: 100%;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    font-family: "Noto Serif", serif;
    font-size: 1.5em;
    line-height: 1.5;
}

body {
    padding-top: 1.5em;
    padding-bottom: 0;
    padding-left: 1em;
    padding-right: 1em;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100%;
    margin-left: 1em;
    margin-right: 1em;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
}

p {
    color: var(--body-text); 

}

h1 {
    font-weight: 800;
    font-size: 2.1em;
    line-height: 1;
}

h2 {
    font-weight: 600;
    font-size: 1.5em;
    line-height: 1;
}

h3 {
    font-weight: 600;
    font-size: 1.25em;
    line-height: 1;
}

h4 { 
    font-weight: 600;
    font-size: 1em;
    line-height: 1;
}

h1, h2, h3, h4, h5 {
    font-family: "Noto Sans", sans-serif;
    color: var(--tng-blue);
}

header {
    margin-top: 23px;
    line-height: 1.0;
}

.fixed {
    display: table;
    width: 100%;
    background-color: #fdeef4;  /*#fffff8; */
    opacity: 1;
}

.scrolled {
    border-bottom: 3px solid var(--tng-blue);
}

h1 {
    display: table-row;
    font-size: 2.0em;
    font-style: italic;
}

h1 span {
    display: table-cell;
    text-align: right;
    vertical-align: bottom;
}

h1 .text {
    text-align: left;
    vertical-align: bottom;
}

h1 .logo {
    text-align: right;
    margin-top: 0em;
}

h1 {
    margin-top: 0;
    margin-bottom: 0;
}

h2 {
    margin-top: 2;
    margin-bottom:0;
    /* font-style: italic; */
}

code {
    font-family: "B612 Mono", monospace;
}

.logo {
    max-height: 52px;
    vertical-align: baseline;
}

main {
}

#postamble {
    font-size: 0.5em;
}

.org-ul {
    padding-left: 60px;
}

.navigation {
    position: relative;
    top: -80px;     /* Move navigation up by roughly the title height */
    text-align: right;
    z-index: 10;    /* Ensure it appears above other content */
    background-color: #ffe4cc;  /* Prevent text overlap */
    margin-bottom: -40px;     /* Pull following content up to close gap */
}

.title {
    position: relative;
    z-index: 1;     /* Lower than navigation */
}


footer {
    margin-top: 4em;
    margin-bottom: 1em;
    padding-bottom: 0;
    font-size: 0.8em;
}

footer hr {
    max-width: 1in;
    margin: 0;
}

a,
a:visited {
    color: inherit;
}

sup a,
sup a:visited {
    text-decoration: none;
}

cite {
    font-style: italic;
}
