@font-face {
    font-family: 'Isenheim';
    src: url('https://silverquill.neocities.org/fonts/Isenheim-Regulier.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://silverquill.neocities.org/fonts/GeistMono-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://silverquill.neocities.org/fonts/GeistMono-Italic-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: auto;
}


  :root {
    --width: 694px;
    --font-body: 'Geist Mono', monospace;
    --font-title: 'Isenheim', serif;

    /* varies based on theme */
    --background-color: #9CA985;
    --selection-color: #eebbcc;
    --text-color: #282B22;
    --link-color: #5D4F9E;
    --visited-color: #5D4F9E;
    --blockquote-color: #282B22;

    --weight-body: 400;
    --weight-medium: 550;
    --weight-bold: 700;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --background-color: #1B230C;
      --selection-color: #1122ee;
      --text-color: #AAB1A3;
      --link-color: #7AA054;
      --visited-color: #7AA054;
      --blockquote-color: #AAB1A3;

      --weight-body: 320;
      --weight-medium: 500;
      --weight-bold: 650;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--weight-body);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    color: var(--text-color);
  }


  strong {
    font-weight: var(--weight-bold);
  }



  *::selection {
    color: var(--text-color);
    background-color: var(--selection-color);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: lowercase;
  }

  h1 {
    font-size: 48px;
    line-height: 1.2;

    margin-block-end: 20px;
  }

  h2 {
    font-size: 40px;
    line-height: 1.1;

    margin-block-start: 58px;
    margin-block-end: 28px;
    padding: 0px;
  }

  h3 {
    font-size: 30px;

    margin-block-start: 58px;
    margin-block-end: 10px;
    padding: 0px;
  }

  h4 {
    font-size: 24px;

    margin-block-start: 32px;
    margin-block-end: 8px;
  }

  a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  .header-graphic {
    height: 48px;
    background-image: url("https://silverquill.neocities.org/images/header_light.png");
    background-size: 694px 48px;
    background-position: right;

    margin-block-start: 28px;
    margin-block-end: 58px;
    opacity: 0.5;
  }

  @media (prefers-color-scheme: dark) {
    .header-graphic{
      background-image: url("https://silverquill.neocities.org/images/header_dark.png");
    }
  }

  nav {
    font-family: var(--weight-medium);
    margin-block-end: 3em;
  }

  nav a {
    margin-right: 16px;
  }

  button {
    margin: 0;
    cursor: pointer;
  }

  time {
    font-style: normal;
  }

  time.in-post {
    font-weight: var(--weight-medium);
  }

  table {
    width: 100%;
  }

  hr {
    border: 0;
    height: 1px;
    background-color: var(--text-color);
    margin-block: 6em;
  }

  img {
    max-width: 100%;
  }

  code {
    font-family: monospace;
    padding: 2px;
    border-radius: 3px;
  }

  blockquote {
    margin-inline: 0px;
    margin-block: 3em;
    padding-inline-start: 2em;
    padding-inline-end: 0px;
    border-left: 1px solid var(--text-color);
    color: var(--blockquote-color);
    font-style: italic;
  }

  footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block-start: 8em;
    font-size: 13px;
    padding: 25px 0 48px 0;
  }

  #footer-divider {
    max-width: 64px;
    height: 8px;
    background-color: var(--link-color);
    opacity: 0.2;
    margin-block-end: 2em;
  }

  .title:hover {
    text-decoration: none;
  }

  .title h1 {
    font-size: 1.5em;
  }

  .inline {
    width: auto !important;
  }

  .highlight,
  .code {
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
  }

  .highlight pre,
  .code pre {
    min-width: 100%;
    width: max-content;
  }

  /* normal uls */
  ul {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding-inline-start: 0.5em;
  }

  ul li {
    list-style-type: "•";
    padding-inline-start: 1em;
  }
  ul li::marker{
    /*a trick to make markers better.*/
    font-family: "Tahoma", sans-serif;
  }


  /* blog post list */
  ul.posts {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding-inline-start: none;

    list-style-type: none;
    padding: unset;
  }

  ul.posts li {
    display: flex;
    padding-inline-start: 0px;
  }

  ul.posts li span {
    flex: 0 0 130px;
  }

  ul.posts li a:visited {
    color: var(--visited-color);
  }
