:root {
  --paper: #f7f8f4;
  --paper-deep: #eef1ec;
  --ink: #202521;
  --muted: #667068;
  --line: #d9ded6;
  --line-strong: #bec8bf;
  --accent: #3f746f;
  --accent-strong: #245e59;
  --coral: #b75f50;
  --violet: #6b6098;
  --gold: #d8a94d;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(39, 54, 47, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(105deg, rgba(63, 116, 111, 0.08), transparent 23%, rgba(183, 95, 80, 0.07) 57%, transparent 82%),
    repeating-linear-gradient(0deg, rgba(32, 37, 33, 0.018), rgba(32, 37, 33, 0.018) 1px, transparent 1px, transparent 7px),
    var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
  padding: 50px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 34px;
  align-items: center;
  padding: 4px 0 36px;
}

.portrait {
  position: relative;
  width: 248px;
  justify-self: end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.76rem;
  font-weight: 500;
  line-height: 1.05;
}

.intro {
  max-width: 720px;
  color: #313832;
}

.intro p {
  margin-bottom: 12px;
}

.text-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.text-link:hover {
  color: #193f3c;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.text-link-underline,
.text-underline {
  background: linear-gradient(transparent 66%, rgba(216, 169, 77, 0.38) 0);
}

.text-link-underline:hover {
  background: linear-gradient(transparent 54%, rgba(183, 95, 80, 0.24) 0);
}

.institution {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--accent-strong);
  font-weight: inherit;
  line-height: 1;
  text-decoration: none;
  vertical-align: -0.16em;
  white-space: nowrap;
}

.institution:hover {
  color: #193f3c;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.institution-logo {
  width: 1.12em;
  height: 1.12em;
  flex: 0 0 auto;
  border: 1px solid rgba(63, 116, 111, 0.28);
  border-radius: 4px;
  background: #fffdfa;
}

.institution-logo {
  object-fit: contain;
  padding: 1px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.profile-link {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #46514a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  border-color: rgba(63, 116, 111, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.profile-icon {
  width: 19px;
  height: 19px;
  display: block;
}

.profile-link-mark {
  display: inline-grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 5px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

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

.section-heading {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.news-list {
  max-height: 264px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  scrollbar-color: var(--line-strong) transparent;
}

.news-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.news-text {
  margin: 0;
  color: #343b36;
}

.publication-list {
  display: grid;
  gap: 22px;
}

.publication {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.publication-figure {
  width: 154px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-deep);
  object-fit: cover;
}

.publication-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  margin: 1px 0 4px;
}

.publication-title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.34;
  text-decoration: none;
}

.publication-title:hover {
  color: var(--accent-strong);
}

.publication-resource {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.publication-resource:hover {
  color: var(--coral);
}

.publication-authors {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.publication-authors .is-me {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(216, 169, 77, 0.82);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.16em;
}

.author-marker {
  margin-left: 0.04em;
  color: var(--coral);
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.publication-type,
.publication-note {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border-radius: 5px;
  font-weight: 800;
}

.publication-type {
  justify-content: center;
  width: 1.45rem;
  border: 1px solid rgba(63, 116, 111, 0.42);
  color: var(--accent-strong);
  font-size: 0.75rem;
}

.publication-note {
  padding: 0 7px;
  border: 1px solid rgba(183, 95, 80, 0.28);
  background: rgba(183, 95, 80, 0.08);
  color: #8e4137;
  font-size: 0.76rem;
}

.publication-year {
  color: var(--muted);
}

.misc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.misc-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.misc-item h3 {
  margin-bottom: 7px;
  color: var(--accent-strong);
  font-size: 0.98rem;
}

.misc-item p {
  margin: 0;
  color: #3f4741;
  font-size: 0.94rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-copy span {
  display: inline-flex;
  align-items: center;
}

.visitor-badge-link {
  display: inline-flex;
  align-items: center;
}

.visitor-badge {
  display: block;
  max-width: 112px;
  max-height: 18px;
  object-fit: contain;
}

.footer-copy span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--line-strong);
}

.visitor-map {
  min-height: 108px;
}

.map-svg,
.map-embed,
.map-image,
.visitor-map img {
  width: 100%;
  height: 108px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  object-fit: cover;
}

.map-embed,
.map-image-link {
  display: block;
}

.map-water {
  fill: rgba(238, 243, 241, 0.96);
}

.map-land {
  fill: rgba(63, 116, 111, 0.16);
  stroke: rgba(63, 116, 111, 0.18);
  stroke-width: 1;
}

.map-dot {
  fill: var(--coral);
  stroke: #fff7f4;
  stroke-width: 1.4;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1000px);
    padding-top: 28px;
  }

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

  .portrait {
    width: min(248px, 72vw);
    justify-self: start;
    order: -1;
  }

  h1 {
    font-size: 2.24rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .publication {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .publication-figure {
    width: 108px;
  }

  .misc-list,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile-link {
    flex: 0 0 32px;
  }

  .publication {
    grid-template-columns: 1fr;
  }

  .publication-figure {
    width: 100%;
    max-width: 360px;
  }
}
