/* Minimal text-first theme */

:root {
  --ink: #111;
  --text: #222;
  --muted: #888;
  --faint: #999;
  --bg: #fdfcf9;
  --highlight: #d9f99d;
  --highlight-ink: #111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --text: #d8d8d8;
    --muted: #8a8a8a;
    --faint: #6f6f6f;
    --bg: #141414;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.minimal {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.minimal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.minimal-page h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.minimal-page p {
  margin: 0 0 18px;
}

.minimal-page strong {
  color: var(--ink);
  font-weight: 600;
}

/* Highlighter links: thin underline that fills on hover */
.minimal-page a {
  color: var(--ink);
  text-decoration: none;
  padding: 0 1px;
  background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 100% / 100% 0.32em;
  transition: background-size 0.18s ease, color 0.18s ease;
}

.minimal-page a:hover,
.minimal-page a:focus-visible {
  color: var(--highlight-ink);
  background-size: 100% 100%;
  outline: none;
}

.minimal-section {
  margin-top: 40px;
}

.minimal-section h2 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.minimal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.9;
}

.minimal-list li {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  align-items: baseline;
  margin-bottom: 4px;
  line-height: 1.6;
}

.minimal-list--wide li {
  grid-template-columns: 6.5em minmax(0, 1fr);
}

.minimal-list .date {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.minimal-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 56px;
  font-size: 16px;
}

.minimal-nav a:first-child {
  font-weight: 600;
}

/* Posts */
.post-header {
  margin-bottom: 32px;
}

.post-date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
}

.minimal-page .post-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.post-body h2 { font-size: 24px; }
.post-body h3 { font-size: 20px; }
.post-body h4 { font-size: 18px; }

.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 3px solid var(--highlight);
  color: var(--muted);
}

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

.post-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--faint);
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}

.post-body :not(pre) > code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(127, 127, 127, 0.14);
}

.post-body pre,
.post-body .highlight {
  margin: 0 0 18px;
  overflow-x: auto;
  border-radius: 6px;
}

.post-body pre {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.post-body table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.post-body th,
.post-body td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
  text-align: left;
  vertical-align: top;
}

.post-comments {
  margin-top: 56px;
}

.minimal-footer {
  margin-top: 56px;
  color: var(--faint);
  font-size: 14px;
}

@media (max-width: 600px) {
  body.minimal {
    font-size: 17px;
  }

  .minimal-page {
    padding: 56px 20px 48px;
  }
}
