* {
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
  /*font-family: 'Spectral', 'Georgia', serif;*/
  color: #111;

  max-width: 670px;
  min-height: 100vh;
  margin: 0 auto;

/*  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
*/
  padding-left: 10px;
  padding-right: 10px;

  font-size: 1.25rem;
  line-height: 1.5;

  display: flex;
  flex-direction: column;

  text-decoration-thickness: 2px;
}

.spoiler {
  background-color: #111;
}

section.footer {
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

p {
  margin-bottom: 1em;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  margin-bottom: 1em;
}

a, a>* {
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 0, 0.6);
  color: inherit;

  /*color: rgb(100, 0, 0);*/

  /*background: rgba(255, 0, 0, 0.1);*/
  /*padding-bottom: 1px;*/
  /*border-bottom: 1px solid rgba(255, 0, 0, 0.5);*/
  /*text-shadow: 1px 1px 0 white;*/

}
a:hover, a>*:hover {
  background: rgba(255, 179, 179, 0.38);
  /*text-shadow: 0 0 1px rgba(255, 0, 0, 0.5);*/
}

.nounderline, .nounderline > * {
  text-decoration: none;
}

.post-item a, .post-item a > * {
  text-decoration-color: rgba(255, 0, 0, 0.25);
}

.summary {
  font-size: 70%;
  font-style: italic;
  margin-top: 0.2em;
}

section.header {
  font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
  padding-top: 5px;
}

section.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
section.header > * {
  margin-left: 10px;
  margin-right: 10px;
}
section.header > *:first-child {
  margin-left: 0;
}
section.header > *:last-child {
  margin-right: 0;
}

section.header * {
  text-decoration: none;
}
section.header .name {
  text-decoration: underline;
  text-decoration-color: red;
}

nav li {
  display: inline;
  margin-left: 20px;
  font-size: 90%;
}

li {
  margin-bottom: 0.5em;
}

ol li {
  padding-left: 0.6em;
}

ul, ol {
  margin-left: 1em;
}

nav ul, nav ol {
  padding-left: 0;
}

.page-heading {
  margin-top: 0;
  margin-bottom: 0.5em;
  display: inline-block;
  text-transform: lowercase;
  font-variant: small-caps;
  font-size: 115%;
  text-decoration: underline;
  text-decoration-color: red;
}
.blog-heading .page-heading {
  margin-bottom: 0;
}

h2 {
  display: block;
  font-size: 105%;
  margin-top: 1.2em;
  margin-bottom: 1em;

  text-decoration: underline;
  text-decoration-color: red;
  text-transform: lowercase;
  font-variant: small-caps;
  text-align: center;
}

.title-container {
  font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
}

.title-container, .content > .page-heading {
  margin-bottom: 1em;
}

.title-container .meta {
  display: block;
  font-size: 70%;
}

.inline-math {
  display: inline;
  margin: 0;
  margin-left: 0.05em;
  margin-right: 0.02em;
  vertical-align: bottom;
  z-index: -1;
}

.display-math {
  margin-top: 1.5rem;
  margin-bottom: 2.2rem;
}

.fading-in {
  animation: fadein 0.4s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

section.main .no-bullet {
  display: block;
  margin-top: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
}
section.main .no-bullet:first-child {
  margin-top: 0.75rem;
}
section.main .post-item .meta {
  display: none;
}
section.main .post-item {
  display: block;
  font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
}
section.main .post-link {
  margin-top: 0.3em;
  margin-bottom: 0.7em;
}

.icon {
  display: inline-block;
  margin-right: 3px;
  opacity: 0.4;
}
section.header-icons .icon {
  margin-top: 0.2em;
}
section.header-icons .icon {
  width: 20px;
  height: 20px;
}
section.footer .icon {
  width: 16px;
  height: 16px;
}
section.icons a {
  background: none;
}
.icon:hover {
  background: none;
  opacity: 1.0;
}

.legacy img {
  max-width: 350px;
  max-height: 300px;
}

em {
  font-style: italic;
}
strong {
  font-weight: bold;
}

.subscribe-container {
  font-size: 80%;
  margin-top: 2.5em;
  display: inline-block;
  border-top: 1px solid #eee;
  padding-top: 0.5em;
  padding-right: 1em;
}
.subscribe {
  display: flex;
  font-family: sans-serif;
}

.link-summary {
  position: absolute;
  font-size: 75%;
  margin-left: 1.5em;
  margin-right: 0.5em;
  background-color: white;
  border: 1px solid #eee;
  padding: 0.5em 0.7em;
  display: none;
  max-width: 400px;
}

a:hover ~ .link-summary {
  display: inline-block;
  animation-name: fadein;
  animation-duration: 0.3s;
}

@keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}

video {
  max-width: 100%;
  max-height: 25em;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 2.5em;
}

section.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

section.main .display-image {
  margin-bottom: 1em;
}

section.main .caption {
  font-style: italic;
  font-size: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 1em;
  max-width: 90%;
}

.flex-vertical {
  display: grid;
  grid-template-rows: 1fr auto;
/*  display: flex;
  flex-direction: column;
  justify-content: space-between;
*/}
.flex-top {
  /*flex: 1 0 auto;*/
  flex: 1;
}
.flex-bottom {
/*  margin-top: auto;
  flex-shrink: 0;
*/
  grid-row-start: 2;
  grid-row-end: 3;
}

#mc_embed_signup .button {
  max-width: 100px;
}

#mc_embed_signup .email {
  max-width: 250px;
}

.blockquote {
  margin-left: 2em;
  font-size: 85%;
  font-style: italic;
  margin-bottom: 1.5em;
}
.figcaption {
  font-style: italic;
  font-size: 85%;
  margin: 0 1.5em;
  margin-bottom: 2.5em;
}
