:root {
  --paper: #fffdf4;
  --ink: #191919;
  --muted: #5d5d5d;
  --line: #191919;
  --panel: #f4f0df;
  --accent: #6b2fb9;
  --link: #b11b1b;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: var(--link); }
a:visited { color: #315f35; }
a:hover { color: #d4008f; }

.site-header,
.site-shell,
.site-footer {
  width: min(900px, calc(100% - 28px));
  margin-inline: auto;
}

.welcomeBanner {
  margin-top: 14px;
  padding: 10px 18px;
  border: 3px outset var(--accent);
}

.welcomeBanner h1,
.welcomeBanner p { margin: 0; }
.welcomeBanner h1 { font-size: clamp(2rem, 7vw, 4rem); line-height: 1; }
.welcomeBanner h1 a { color: inherit; text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-shell { padding: 24px 0 56px; }
.site-shell > :first-child { margin-top: 0; }

.site-footer {
  display: flex;
  gap: 8px;
  padding: 14px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.content-list { list-style: none; padding: 0; }
.content-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
}

.post-date, .meta { color: var(--muted); font-size: .9rem; }
.entry-header { margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.entry-header h1 { margin-bottom: 4px; }
.entry-body img { max-width: 100%; height: auto; }
.entry-body { font-size: 1.08rem; }

blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

code {
  padding: 1px 4px;
  background: var(--panel);
}

pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
th { background: var(--panel); }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171713;
    --ink: #f3efdf;
    --muted: #b8b3a3;
    --line: #d9d2bd;
    --panel: #27261f;
    --link: #ff7777;
  }
}

@media (max-width: 560px) {
  .content-list li { display: block; }
  .post-date { display: block; margin: 2px 0 0; }
}
