:root {
  --bg: #6e8269;
  --text: #1c2b22;
  --muted: #2a4133;
  --faint: #304a3a;
  --border: #1c2b22;
  --accent: #99c8ad;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
}

a { color: var(--accent); }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}

.social {
  display: flex;
  gap: 0.9rem;
}

.social a {
  color: var(--muted);
  font-size: 1.35rem;
  display: flex;
  transition: color 0.2s;
}

.social a:hover { color: var(--text); }

.social svg { width: 1em; height: 1em; }

/* Intro */
.intro p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Two buttons */
.buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.btn:hover {
  border-color: var(--faint);
  background: color-mix(in srgb, var(--border) 35%, transparent);
}

/* Back link */
.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back:hover { color: var(--text); }

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

/* List of posts / projects */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li { border-bottom: 1px solid var(--border); }
.list li:first-child { border-top: 1px solid var(--border); }

.list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--text);
  text-decoration: none;
}

.list a:hover .title { color: var(--accent); }

.list .title { font-weight: 500; transition: color 0.2s; }

.list .meta {
  color: var(--faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

.list .desc {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Individual post / project page */
article h2 { margin-bottom: 0.25rem; }

article .date {
  color: var(--faint);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

article p, article li { color: var(--muted); }

article img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

@media (max-width: 480px) {
  .container { padding-top: 3rem; }
  .buttons { flex-direction: column; }
}
