:root {
  --text: #222;
  --muted: #555;
  --link: #0066cc;
  --border: #e6e6e6;
  --bg-soft: #fafafa;
  --tab-hover: #eef5ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.65;
  color: var(--text);
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 0;
}

h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.hero-photo-wrap {
  text-align: center;
  flex-shrink: 0;
}

.hero-photo {
  width: 150px;
  height: auto;
}

.photo-caption {
  font-size: 0.72em;
  color: #777;
  margin-top: 4px;
}

nav {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}

nav a {
  display: inline-block;
  margin: 3px 5px 3px 0;
  padding: 6px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--link);
  white-space: nowrap;
}

nav a:hover {
  background: var(--tab-hover);
  text-decoration: none;
}

nav a.active {
  background: var(--link);
  color: white;
}

section {
  margin-bottom: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

ul {
  padding-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 12px;
}

.item-title {
  font-weight: 650;
}

.meta {
  color: var(--muted);
  font-size: 0.95em;
}

footer {
  margin-top: 60px;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}

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

@media (max-width: 700px) {
  body {
    margin: 28px auto;
  }

  .hero {
    flex-direction: column;
  }

  .hero-photo {
    width: 130px;
  }

  nav {
    margin-top: 18px;
  }
}
