html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
}

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

body {
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: "Quattro", sans-serif;
  background: #f5f5f5;
  color: black;
  max-width: 72ch;
  line-height: 1.5rem;
}

a {
  color: #004ae6;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-weight: 300;
  line-height: 1.1;
}

h1 {
  color: #dd4814;
  margin-top: 3rem;
  font-size: 2rem;
}

h1.page-title {
  margin-top: 1rem;
  font-weight: bold;
}

h2 {
  color: #dd4814;
  margin-top: 2rem;
  font-size: 1.2rem;
}

h3 {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

/* Layout wrappers used by the Hugo templates */
.container {
  margin: 0;
  padding: 0;
}

.page-description {
  font-style: italic;
}

.site-header {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px dotted gray;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand {
  color: #004ae6;
  text-decoration: none;
  font-weight: 600;
  margin-top: 3px;
}

.brand > img {
  height: 35px;
  vertical-align: middle;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: inherit;
}

.site-nav a.is-active {
  text-decoration: underline;
}

.intro {
  margin: 1.5rem 0 2rem;
}

.post-list ul,
.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li,
.page-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dotted gray;
}

.post-list li:last-child,
.page-list li:last-child {
  border-bottom: 0;
}

.post-list details {
  border-top: 1px dotted gray;
}

.post-list details summary {
  text-align: center;
  cursor: pointer;
  color: #004ae6;
  font-weight: 600;
  margin-top: 0.75rem;
}

.post-list details summary:hover {
  text-decoration: underline;
}

.post-list details summary::marker {
  content: "";
}

.post-list details[open] summary {
  display: none;
}

.post-title {
  font-weight: 600;
  margin-right: 0.5rem;
}

.post-list time,
.page-list time {
  white-space: nowrap;
}

.post-list time,
.page-list time,
.page header .page-meta {
  color: gray;
  font-size: 0.9rem;
}

.page header time.old-date {
  color: #dd4814;
  cursor: help;
}

.page header time.old-date::before {
  color: #dd4814;
  content: "⚠ ";
}

.page header .page-meta > * {
}

.page header .page-meta > * + *::before {
    content: " · ";
    font-weight: bold;
}

.page header {
  margin-bottom: 1rem;
}

/* Content typography */
ol,
blockquote {
  padding-left: 1rem;
  margin-left: 1rem;
  margin-right: 0;
  padding-right: 0;
}

blockquote {
  border-left: 1px solid gray;
}

pre {
  white-space: pre-wrap;
  padding: 1rem;
  line-height: 1.2;
  border: 1px solid lightgray;
  border-radius: 4px;
  font-family: monospace;
}

code {
  font-family: monospace;
}

ol li {
  margin: 0.4rem 0;
}

ol li::marker {
  color: lightgray;
}

p {
  margin: 0.75rem 0;
}

main img,
main video,
main audio {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

main video,
main audio {
  width: 100%;
}

main video {
  border: 1px solid lightgray;
  aspect-ratio: 16 / 9;
}

header .back-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  gap: 0.5rem;
  line-height: 1;
}

.site-footer {
  padding-top: 1rem;
  margin-top: 4rem;
  border-top: 1px dotted gray;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

table {
  border: 1px solid gray;
  border-collapse: collapse;
  border-spacing: 0;
}

thead th {
  background: #f2f2f2;
  border: 1px solid gray;
  color: black;
  padding: 0.5rem;
  text-align: left;
}

tbody td {
  border: 1px solid lightgray;
  padding: 0.5rem;
}

figcaption {
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }
}

hr {
  border: none;
  border-bottom: 1px dotted gray;
}

.prev-next-nav {
  margin-top: 2rem;
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
}

.prev-next-nav > div {
  min-width: 16rem;
}

.prev-next-nav > .next-link {
  text-align: right;
  flex-grow: 1;
}

.old-post-warning {
  background: #ffad91;
  border: 1px #dd4814 dotted;
  margin-top: 1rem;
  padding: 0.5rem;
}

@font-face {
  font-family: 'Quattro';
  src: url('/fonts/iAWriterQuattroS-Regular.woff2') format('woff2'),
       url('/fonts/iAWriterQuattroS-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quattro';
  src: url('/fonts/iAWriterQuattroS-Bold.woff2') format('woff2'),
       url('/fonts/iAWriterQuattroS-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quattro';
  src: url('/fonts/iAWriterQuattroS-Italic.woff2') format('woff2'),
       url('/fonts/iAWriterQuattroS-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


@font-face {
  font-family: 'Quattro';
  src: url('/fonts/iAWriterQuattroS-BoldItalic.woff2') format('woff2'),
       url('/fonts/iAWriterQuattroS-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}