:root {
  --bg: #f5f5f0;
  --fg: #1a1a1a;
  --muted: #777;
  --border: #d8d8d0;
  --max-width: 680px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.75;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

a:hover {
  text-decoration-color: var(--fg);
}

/* nav */

nav {
  padding: 1.25rem 2rem;
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

nav a {
  text-decoration: none;
}

nav a:first-child {
  font-weight: 700;
  margin-right: auto;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* main */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.3rem; margin-top: 0; }
h2 { font-size: 1.05rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 1rem; }

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

/* feed */

.feed {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.feed-item:first-child {
  border-top: 1px solid var(--border);
}

.feed-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding-top: 1px;
}

.feed-title a {
  text-decoration: none;
  font-weight: 700;
}

.feed-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed-tags {
  grid-column: 2;
  display: flex;
  gap: 1rem;
}

.feed-empty {
  color: var(--muted);
  font-size: 13px;
  margin-top: 1.5rem;
}

/* tags */

.tag {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.tag::before {
  content: '#';
}

.tag:hover {
  color: var(--fg);
}

/* post */

.post-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0.5rem 0 2.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-body {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.post-body p,
.post-body li {
  max-width: 60ch;
}

/* cv */

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  margin-top: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.cv-item {
  margin-bottom: 1.5rem;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cv-item-title {
  font-weight: 700;
}

.cv-item-dates {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-item-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 0.1rem;
}

.cv-item-body {
  margin-top: 0.5rem;
  font-size: 13px;
}

.cv-item-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cv-item-body li {
  margin-bottom: 0.25rem;
}

/* footer */

footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* responsive */

@media (max-width: 600px) {
  nav { padding: 1rem; gap: 1.25rem; }
  main { padding: 2rem 1rem 4rem; }

  .feed-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.75rem 0;
  }

  .feed-tags { margin-top: 0.25rem; }
}
