body {
    font-family: 'Source Serif Pro', serif;
    margin: 1rem;
    color: #222;
    font-size: min(24px, max(16px, 2.4vw));
}

.heading {
    container-type: inline-size;
}

header h1 {
    font-family: 'Vollkorn', 'Garamond', serif;
    line-height: 1em;
    margin: 1em 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the flex items (name parts) */
    width: 100%;
    text-align: center;
    row-gap: 0.25em;
}

.name-part {
    white-space: nowrap;
}

main {
    max-width: 35em;
    margin: 0 auto 2em auto;
    align-items: center;
}

main h1,h2,h3,h4 {
  font-size: 0.9em;
}

article {
  hyphens: auto;
}

pre {
  overflow: auto
}

ol {
    list-style-type: none;
    padding: 0;
}

footer {
    display: block;
    text-align: center;
    padding: 1em 0;
}

nav ul {
  margin: 0;
  display: inline-flex;
  padding: 0;
  list-style: none;
}

nav ul li:not(:first-child) {
  padding-left: 0.4;
}

nav ul li {
  position: relative;
  padding-right: 1em;
}

nav ul li::after {
  content: "·";
  position: absolute;
  right: 0.4em;
}

nav ul li:last-child::after {
  content: "";
}

a {
  color: #b27300;
  text-decoration: none;
}

.fleuron {
    text-align: center;
    margin: 1em 0;
    font-size: 1.3em;
}

.til {
    margin: auto;
    padding: 0;
}

.til li {
}

.til li code {
    width: 50%;
    text-align: right;
    padding-right: 0.5em;
}

.til li a {
    width: 50%;
    padding-left: 0.5em;
    color: initial;
}

.til li a:hover {
  text-decoration: underline;
  text-decoration-thickness: auto;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.til li a:visited {
  color: hsl(0, 0%, 50%);
}

section h2,h3,h4 {
  margin-top: 1.3em;
  margin-bottom: 0.35em;
  font-size: 1em;
  font-variant: small-caps;
  line-height: 1.2em;
  letter-spacing: 0.04em;
}

main h1 {
    font-size: 1.5em;
}

.title-area {
  float: left;
  margin-left: -3em;
  width: 15em;
  margin-right: 2em;
  margin-bottom: 0.1em;
  padding-top: 2.5em;
  padding-bottom: 2.5em;
  padding-right: 2em;
  border-right: 1px solid #444;
  text-align: right;
}

.article-title {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 0.9em;
  font-size: 2.6em;
  text-transform: uppercase;
  margin: 0 0 0.5em 0;
}

article section p:first-of-type {
  font-size: 1.15em;
  line-height: 1.3;
}

.article-date {
  margin: 0;
  font-size: 0.9em;
  margin-top: -0.25em;
  margin-bottom: 0.5em;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

article section {
  margin: 0em 0.8em;
}

.title-area + article > section {
  margin: 2em 0.8em;
}

article code {
  background: #F0F0F4;
  font-size: 90%;
}

article pre {
  background: #F0F0F4;
  padding: 1em;
  font-size: 0.85em;
}

article p {
  margin: 0 0 1em 0;
  line-height: 1.45;
}

article li {
  line-height: 1.45;
  margin-bottom: 0.5em;
  list-style-type: circle;
}

article img {
  border: 1px solid #ccc;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
}

/* Mobile Devices (up to 767px) */
@media screen and (max-width: 767px) {
    header h1 {
        margin: 0.5em 0 0 0;
    }

    .fleuron {
        margin: 0.5em 0;
    }

    main {
      max-width: initial;
    }

    .title-area {
      float: none;
      width: inherit;
      border: none;
      text-align: right;
      margin: 0 0 1em 0;
      padding: 2em 1em 1em 1em;
      border-bottom: 1px solid #444;
    }

    .title-area + article > section {
      margin: 2em 0;
    }
}

@media (max-width: 40em) {
  ul {
    padding-left: 1em;
  }

  ol.til {
    list-style-type: disc;
    padding-left: 1em;
    margin: 0;
  }

  ol.til li {
    display: list-item;
  }

  ol.til li a {
    padding-left: 0;
  }

  ol.til code {
    display: none;
  }

  article section {
    margin: 0;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #f9f9fa;
    background-color: #2a2a2e;
  }

  a {
    color: #e6b470;
  }

  .til li a {
    color: #f9f9fa;
  }
  .til li a:visited {
    color: hsl(0, 0%, 75%);
  }

  article code, article pre {
    background-color: #222222;
  }
}


@container (min-width: 25em) { /* Adjust this breakpoint as needed */
    header h1 {
        flex-direction: row;
        gap: 0.25em;
    }
}