:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  padding: 1.5rem clamp(1rem, 3vw, 3rem) 3rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
    background: #111;
  }
  a {
    color: #7ab7ff;
  }
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  margin-bottom: 2rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: inherit;
}

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

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.post-list time {
  color: #777;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post h1 {
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.meta {
  color: #777;
  font-size: 0.9rem;
  margin-top: 0;
}

.content img {
  max-width: 100%;
  height: auto;
}

.audio-player,
.youtube-player {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
}

.youtube-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.audio-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #777;
}

.audio-player audio {
  display: block;
  width: 100%;
}

.audio-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #777;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 6px;
  background: #272822;
  color: #f8f8f2;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  background: rgba(128, 128, 128, 0.15);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ccc;
  color: #555;
}

@media (prefers-color-scheme: dark) {
  blockquote {
    border-left-color: #444;
    color: #aaa;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid rgba(128, 128, 128, 0.3);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  color: #777;
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
