:root {
  --bg: #ffffff;
  --text: #141415;
  --muted: #6b7280;
  --link: #0a58ca;
  --border: #e5e7eb;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --text: #e7e8ee;
    --muted: #a3a3ad;
    --link: #7ab0ff;
    --border: #25262f;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

/* Page layout: sidebar left, content right */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* LEFT SIDEBAR */
.sidebar-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.sidebar-email {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.sidebar-email a {
  color: inherit;
  text-decoration: none;
}

.sidebar-email a:hover {
  text-decoration: underline;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.sidebar-nav li {
  margin: 0.25rem 0;
}

.sidebar-nav a {
  color: var(--text);
  text-decoration: none;
}

.sidebar-nav a[aria-current="page"] {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-nav a:hover {
  text-decoration: underline;
}

/* RIGHT CONTENT COLUMN */
main {
  max-width: 640px;
}

h1, h2, h3 {
  margin: 0.7rem 0 0.3rem;
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 1.4rem;
}

p {
  margin: 0.5rem 0;
}

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

/* Lists in main content */
main ul {
  margin: 0.3rem 0 0.8rem 1.25rem;
  padding: 0;
}

/* Metadata (dates, etc.) */
.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Post lists */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}

.post-list li {
  margin: 0.4rem 0;
}

.post-list a {
  text-decoration: none;
  color: var(--text);
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list .date {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
