:root {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --link: #2b5797;
  --border: #d8d8d8;
  --max-width: 700px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  line-height: 1.6;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

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

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.avatar {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  margin-top: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
}
.nav a:hover { text-decoration: underline; }

.section {
  padding-top: 2.3rem;
}
.section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.section p {
  margin: 0.9rem 0 0;
}

.entry, .project {
  margin-top: 1.6rem;
}
.entry:first-of-type, .project:first-of-type {
  margin-top: 0.9rem;
}

.entry-header, .entry-subheader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 1rem;
}
.entry-header strong, .project h3 {
  font-size: 1.05rem;
}
.project h3 {
  margin: 0;
  font-weight: 700;
}
.project-subtitle {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}
.entry-date, .entry-location {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.entry-subheader {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry ul, .project ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}
.entry li, .project li {
  margin-top: 0.35rem;
}

.entry-links {
  margin-top: 0.7rem !important;
  font-size: 0.92rem;
}

.poster-embed {
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.poster-embed embed {
  width: 100%;
  height: 520px;
  display: block;
}

.project-photo {
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.project-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-photo-full {
  display: flex;
  justify-content: center;
  background: #f7f7f7;
}
.project-photo-full img {
  width: auto;
  height: auto;
  max-width: 380px;
  max-height: 480px;
  object-fit: contain;
}

.project .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

@media (max-width: 480px) {
  .header { flex-direction: column-reverse; }
  .header h1 { font-size: 1.8rem; }
}
