@import url('/css/fonts.css');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Alegreya', Georgia, serif;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  color: #222;
  background: #f9f9f9;

  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

a {
  color: #1a0dab;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
/*  font-variant: small-caps;*/
  letter-spacing: 0.1em;
  font-weight: 600;
}

header h1 a {
  color: inherit;
}

.section-nav {
  float: right;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.section-nav .current {
  color: #000;
  font-weight: 500;
  border-top: 1px solid #ddd;
}

.post-nav-sections .current {
  color: #000;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
}

.section-nav .sep {
  color: #999;
  margin: 0 0.3rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-list .date {
  color: #666;
  font-size: 0.9rem;
}

.post-list .title {
  font-size: 1.2rem;
}

article {
  line-height: 1.6;
  font-size: 1.2rem;
}

article em {
  letter-spacing: 0.02em;
}

article h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.1em;
}

article h1 + div.poem-lines,
article h1 + p {
  margin-top: 2rem;
}

article h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2em;
  margin: 3rem 0 1rem;
}

article .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

article hr {
  height: 1px;
  border: none;
  border-top: 1px solid #aaa;
}

blockquote {
  border-left: 3px solid #ddd;
  margin-left: 0;
  padding-left: 1rem;
  color: #555;
}

.greentext {
  white-space: pre-line;
}

pre, code {
  background: #f0f0f0;
  font-family: monospace;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

pre.poem {
  padding: 0;
  overflow: auto;
  background: transparent;
  font-family: inherit;
  padding-left: 0.5em;
  text-indent: -0.5em;
}

hr + div.poem-lines {
  margin-top: 1rem;
}

div.poem-lines {
  padding-left: 0.5em;
}

div.poem-lines p {
  margin: 0;
  text-indent: -0.5em;
  line-height: 1.6em;
  white-space: pre-wrap;
}

div.poem-lines br {
  display: block;
  height: 0.8em;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
}

.post-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-sizing: border-box;
  padding-right: 1em;
}

.post-nav-items a {
  display: block;
  font-size: inherit;
}

.post-nav-items .arrow {
  display: inline-block;
  width: 1em;
  text-align: center;
}

.post-nav-items .current-title {
  color: #333;
  padding-left: 1em;
  font-weight: 500;
}

.post-nav-sections {
  text-align: right;
  white-space: nowrap;
}

.post-nav-sections .current {
  color: #333;
}

.post-nav-sections .sep {
  color: #999;
  margin: 0 0.3rem;
}

@media (max-width: 450px) {
/*  .post-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .post-nav-sections {
    text-align: left;
  }*/
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
}

ins.loom {
 text-decoration: none;
 font-style: normal;
 font-size: 1rem;
 opacity: 0.5;
}

.artifact-id {
  opacity: 0.5;
/*  font-style: italic;*/
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
/*  font-weight: 600;*/
  text-transform: uppercase;
}

.source-link {
  opacity: 0.7;
  margin-top: -0.25rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
