:root {
  --ink: #16262d;
  --muted: #5e6b70;
  --paper: #f5f2ea;
  --paper-deep: #ece7db;
  --accent: #9d5d3d;
  --accent-soft: #ddc5b3;
  --line: rgba(22, 38, 45, 0.16);
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(157, 93, 61, 0.09), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 80px;
  min-height: calc(100vh - 176px);
  padding-block: clamp(76px, 9vw, 116px);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.8vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.identity-block {
  margin: 24px 0 32px;
}

.role {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
}

.institution {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-summary {
  max-width: 720px;
  margin: 0;
  color: #35444a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  letter-spacing: 0;
  line-height: 1.62;
}

.contact {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact a:hover {
  color: var(--ink);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.topic-list span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.38);
  font-size: 0.74rem;
}

.portrait-mark {
  position: relative;
  display: grid;
  width: 260px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 130px 130px 18px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 55%),
    var(--paper-deep);
  box-shadow: 24px 26px 0 rgba(157, 93, 61, 0.08);
}

.portrait-mark::before,
.portrait-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.portrait-mark::before {
  top: -30px;
  right: -40px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--accent-soft);
}

.portrait-mark::after {
  bottom: -55px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(157, 93, 61, 0.1);
}

.portrait-mark span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
}

.portrait-mark small {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

footer {
  padding-block: 30px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: min(100% - 36px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
    padding-block: 80px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 10.5vw, 3.5rem);
  }

  .portrait-mark {
    width: min(68vw, 250px);
    justify-self: center;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 72px;
  }

  .hero {
    padding-block: 62px 72px;
  }

  .identity-block {
    margin: 20px 0 28px;
  }

  .hero-summary {
    font-size: 1.06rem;
  }

  footer {
    padding-block: 28px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
