:root {
  --bg: #ffffff;
  --text: #1c1d1f;
  --muted: #828282;
  --accent: #b509ac;
  --border: #e9ecef;
  --serif: 'Roboto Slab', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.site-title .last {
  font-weight: 700;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 1rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:first-child { margin-left: 0; }

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
  margin: 0.5rem 0 0.25rem;
  font-weight: 300;
}

h2 {
  font-size: 1.4rem;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  font-weight: 500;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.about-photo {
  position: sticky;
  top: 1.5rem;
}

.profile {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.profile-caption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
  display: block;
  font-style: italic;
}

/* Entry lists */
ul.entries {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.entries li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--border);
}

ul.entries li:last-child {
  border-bottom: none;
}

.entry-date {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.1rem;
}

.entry-body strong {
  display: inline-block;
  margin-bottom: 0.15rem;
}

.entry-body em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 680px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo {
    position: static;
    max-width: 220px;
    margin: 0 auto;
  }

  ul.entries li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  h1 { font-size: 2rem; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav a:first-child { margin-left: 0; }
  .site-nav a { margin-left: 1rem; }
}
