.title::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.5em;
    background: url('logo.svg') no-repeat center/contain;
}
.subtitle {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    color: #aaa;
    letter-spacing: 1px;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1em;
    min-width: 100%;
}
footer {
    font-size: 0.8em;
    color: #888;
    margin-top: 5em;
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 2em;
    line-height: 1.7;
  }
  
  ::selection {
    background: yellow;
    color: #000;
  }
  
.title::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.5em;
    background: url('logodark.svg') no-repeat center/contain;
}

  h1 {
    font-size: 2.8em;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid #444;
  }

  .subtitle {
    color: #aaa;
  }

  h2 { color: #eeeeee; border-left: 4px solid #555; padding-left: 15px;}
  h3 { color: #cccccc; }
  h4, h5, h6 { color: #bbbbbb; }

  a {
    color: #80c0ff;
    border-bottom: 1px dotted #80c0ff;
  }
  a:hover {
    color: #a0d0ff;
    border-bottom: 1px solid #a0d0ff;
  }

  pre, code {
    background: #1e1e1e;
    color: #f0f0f0;
  }

  blockquote {
    background: #1a1a1a;
    border-left: 4px solid #666;
    color: #aaa;
  }

  table {
    background: #1b1b1b;
    color: #ddd;
    border: 1px solid #333;
  }

  th, td {
    border: 1px solid #333;
  }

  th {
    background-color: #252525;
    color: #f2f2f2;
  }

  tr:nth-child(even) {
    background-color: #202020;
  }

  tr:hover {
    background-color: #2a2a2a;
  }

  hr {
    border-top: 1px dashed #444;
  }

  .todo {
    background: #333;
    color: #fff;
  }

  .done {
    background: #2a2a2a;
    color: #888;
  }

  .tag {
    background: #444;
    color: #fff;
  }

  .timestamp {
    background: #222;
    color: #ccc;
  }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
  body {
    background: seashell;
    color: #111;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 2em;
    line-height: 1.7;
  }
  
  ::selection {
    background: yellow;
    color: #000;
  }

  h1 {
    font-size: 2.8em;
    font-weight: 400;
    color: black;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid black;
  }

  .subtitle {
    color: #444;
  }

  h2 { color: #222; border-left: 4px solid #000; padding-left:15px;}
  h3 { color: #333; }
  h4, h5, h6 { color: #444; }

  a {
    color: #000;
    border-bottom: 1px dotted #111;
  }
  a:hover {
    color: #666;
    border-bottom: 1px solid #666;
  }

  pre, code {
    background: #f5f5f5;
    color: #111;
  }

  blockquote {
    background: #fafafa;
    border-left: 4px solid #222;
    color: #444;
  }

  table {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
  }

  th, td {
    border: 1px solid #ccc;
  }

  th {
    background: #f5f5f5;
    color: #111;
  }

  tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  tr:hover {
    background-color: #eee;
  }

  hr {
    border-top: 1px dashed #222;
  }

  .todo {
    background: #eee;
    color: #000;
  }

  .done {
    background: #f5f5f5;
    color: #888;
  }

  .tag {
    background: #222;
    color: #fff;
  }

  .timestamp {
    background: #fafafa;
    color: #222;
  }
}