:root {
  --text: #1f2933;
  --muted: #5f6c7b;
  --line: #e6e8eb;
  --accent: #2f5d73;
  --bg: #ffffff;
  --soft: #f7f9fa;
  --max: 1050px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a { color: var(--text); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, .7fr);
  gap: 55px;
  align-items: center;
  padding: 34px 0 42px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 500;
}

h2 {
  font-size: 1.75rem;
  margin: 0 0 22px;
  font-weight: 500;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.fields {
  font-style: italic;
  margin: 16px 0 26px;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 9px 15px;
  border-radius: 4px;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.photo-card {
  width: 100%;
  max-width: 300px;
  justify-self: end;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: block;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 25px;
}

.section {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.section p {
  max-width: 820px;
}

.paper {
  margin: 0 0 34px;
  max-width: 880px;
}

.paper-title {
  font-weight: 700;
  font-size: 1.08rem;
}

.paper-meta {
  color: var(--muted);
  font-style: italic;
  margin: 4px 0 8px;
}

.paper-links {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  margin-top: 8px;
}

.course-list {
  padding-left: 20px;
}

.contact {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

.page-title {
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.note {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 18px 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .photo-card {
    justify-self: start;
    max-width: 240px;
    order: -1;
  }

  main { padding-top: 34px; }
}
