:root {
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --bg: #fdfdfb;
  --accent: #1c1c1c;
  --border: #e5e3de;
  --max-width: 640px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a.active { color: var(--text); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.lang-switch .lang-current {
  color: var(--text);
  font-weight: 600;
}

.lang-switch .lang-link {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch .lang-link:hover { color: var(--text); }
.lang-switch .lang-sep { color: var(--border); }

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

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.photo-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  flex-shrink: 0;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.date { color: var(--muted); font-size: 0.85rem; }

.post-list, .pub-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list a { color: var(--text); text-decoration: none; }
.post-list a:hover { text-decoration: underline; }

.pub-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item h3 {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 0;
}

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

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
