:root {
  --bg: #fdfcf9;
  --text: #2d2a26;
  --muted: #6b675f;
  --accent: #1f6f54;
  --accent-soft: #dcebe3;
  --card: #ffffff;
  --border: #e8e4dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

h1, h2, .logo {
  font-family: Georgia, 'Times New Roman', serif;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.logo {
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a.active {
  text-decoration: underline;
  font-weight: 600;
}

.icons {
  display: flex;
  gap: 0.9rem;
  font-size: 1.1rem;
}

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

main {
  padding: 2.5rem 0 3rem;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 2px 10px;
  margin: 0 6px 6px 0;
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

/* About hero */
.hero {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.hero-photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: var(--accent-soft);
  border-radius: 50%;
  z-index: 0;
}

.hero-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-text h1 {
  margin-top: 0;
  font-size: 1.9rem;
}

.hero-text p {
  color: var(--text);
}

.tags {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-photo-wrap,
  .hero-photo-wrap img {
    width: 160px;
    height: 160px;
  }
}

/* CV / Publications */
section.block {
  margin-bottom: 2rem;
}

section.block h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

section.block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section.block li {
  margin-bottom: 0.8rem;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Guestbook form */
form.gb-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

form.gb-form label span.field-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

form.gb-form .hint {
  display: block;
  font-weight: normal;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

form.gb-form input,
form.gb-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
}

form.gb-form textarea {
  min-height: 90px;
  resize: vertical;
}

form.gb-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
}

#form-msg {
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.entry {
  margin-bottom: 1rem;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.reply {
  margin-top: 0.7rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.6rem 0.8rem;
  border-radius: 0 8px 8px 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
