html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  display: flex;
  min-height: 100dvh;
  box-sizing: border-box;
  flex-direction: column;
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-right: max(10px, env(safe-area-inset-right));
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: max(10px, env(safe-area-inset-left));
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.6;
}

.site-logo,
.post-list a {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  display: inline-block;
  padding-bottom: 20px;
}

.site-logo pre {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: .55rem;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: pre;
}

.post-list > div {
  margin-bottom: .5rem;
}

.post-list a,
article h1 {
  text-transform: lowercase;
}

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

article h1 {
  font-size: 1.5rem;
}

.not-found > header,
.not-found > footer {
  display: none;
}

.not-found main {
  position: fixed;
  inset: 0;
}

.not-found .error-page,
.not-found .ascii-animation {
  width: 100%;
  height: 100%;
}

.ascii-animation {
  position: relative;
  height: min(60vh, 24rem);
  overflow: hidden;
}

.ascii-404 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #26de81;
  font-family: "Courier New", Courier, monospace;
  font-size: .7rem;
  line-height: 1.1;
}

.content {
  text-align: justify;
}

main {
  flex: 1;
}

footer {
  padding: 20px 0;
  font-size: .8rem;
  text-align: center;
}

.theme-option {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.theme-option[aria-pressed="true"] {
  font-weight: 700;
}

body[data-theme="light"] {
  background: #fff;
  color: #111;
}

body[data-theme="dark"] {
  background: #111;
  color: #eee;
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme]) {
    background: #111;
    color: #eee;
  }
}
