:root {
  --bg: #f7f6f5;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #5f5b57;
  --line: #e3e0dc;
  --accent: #1d5c63;
}

* { box-sizing: border-box; }

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

h1, h2, h3, .brand-name { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.2; }
a { color: var(--accent); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.brand-name { font-size: 1.6rem; }
.brand-tag { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { border-bottom-color: var(--accent); }

/* Content */
main.wrap { padding-top: 40px; padding-bottom: 60px; }
section { margin-bottom: 48px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.page-head h1 { font-size: 2.4rem; margin: 0 0 8px; }

.hero { padding: 40px 0 20px; }
.hero h1 { font-size: 3rem; margin: 0; }
.hero h2 { margin: 4px 0 16px; color: var(--muted); font-size: 1.4rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-block; padding: 10px 20px; background: var(--accent); color: #fff; text-decoration: none; border: 2px solid var(--accent); border-radius: 4px; }
.btn-outline { background: transparent; color: var(--accent); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; padding-bottom: 16px; }
.card-img { display: block; width: 100%; height: 150px; object-fit: cover; background: #d9e4e2; }
.card h3, .card p, .card .more { margin-left: 16px; margin-right: 16px; }
.card h3 { margin-top: 16px; margin-bottom: 4px; }
.card p { margin-top: 0; color: var(--muted); flex: 1; }
.card .more { color: var(--accent); }
.card:hover { border-color: var(--accent); }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.callout h2 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 16px; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links a { color: var(--muted); }
.copyright { margin-top: 20px; font-size: 0.8rem; }
.card-img.person-img { height: 280px; object-position: center 40%; }
.card-img.person-img[src="professorTrusina.png"] { object-position: top; }
.card .credit { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; flex: 0; }

/* People grid: 3 columns, fewer on small screens */
.people-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }
.person p { flex: 0; margin-bottom: 6px; }
.person .role { color: var(--accent); margin-top: 0; }
.person .contact { margin-top: auto; padding-top: 6px; }

/* Text pages */
main h3 { font-size: 1.2rem; margin-bottom: 4px; }
main ul { padding-left: 20px; }
main li { margin-bottom: 4px; }
