:root {
  color-scheme: light;
  --text: #263238;
  --muted: #64717b;
  --link: #1769b3;
  --link-hover: #c46b20;
  --line: #e5e9ec;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.page { width: min(100% - 40px, 800px); margin: 0 auto; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(185px, 1fr);
  align-items: center;
  gap: 38px;
  padding: 58px 0 35px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; font-weight: 500; line-height: 1.2; text-align: center; margin-bottom: 23px; }
.intro p { margin-bottom: 14px; }
.profile-links { text-align: center; margin-top: 19px; white-space: nowrap; }
.profile-links span { color: #a2aeb7; margin: 0 8px; }

.portrait-wrap { width: 100%; max-width: 238px; justify-self: end; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 36%; border-radius: 50%; }

.section { margin: 0 0 44px; }
.section h2 { font-size: 22px; font-weight: 500; line-height: 1.25; margin-bottom: 19px; }

.paper { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; }
.paper-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 170px;
  height: 170px;
  padding: 15px;
  background: #edf4f8;
  color: #183b55;
}
.cover-index, .cover-footer { position: relative; z-index: 1; color: #557084; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cover-title { position: relative; z-index: 1; font-size: 17px; font-weight: 700; line-height: 1.18; }
.cover-traces { position: absolute; right: -8px; bottom: 14px; width: 108px; height: 90px; opacity: .38; transform: rotate(-23deg); }
.cover-traces i { position: absolute; display: block; border: 2px solid #4c93bc; border-left: 0; border-bottom: 0; border-radius: 50%; width: 90px; height: 54px; }
.cover-traces i:nth-child(2) { top: 15px; left: 10px; }
.cover-traces i:nth-child(3) { top: 30px; left: 20px; }
.paper-copy h3 { font-size: 16px; line-height: 1.4; margin-bottom: 5px; }
.paper-copy p { margin-bottom: 4px; }
.paper-authors strong { font-weight: 700; }
.paper-meta { font-style: italic; color: var(--muted); }
.paper-links span { color: #9ba7af; padding: 0 5px; }
.paper-summary { padding-top: 6px; }

.entry { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 21px; }
.entry + .entry { border-top: 1px solid var(--line); padding-top: 21px; }
.entry-main { min-width: 0; }
.entry h3 { font-size: 15px; line-height: 1.45; margin-bottom: 4px; }
.entry p { margin-bottom: 5px; }
.entry p:last-child { margin-bottom: 0; }
.entry-date { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; flex: 0 0 auto; }

.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 35px; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .page { width: min(100% - 32px, 520px); }
  .intro { grid-template-columns: 1fr; gap: 19px; padding-top: 30px; }
  .portrait-wrap { grid-row: 1; max-width: 175px; justify-self: center; }
  h1 { margin-bottom: 18px; }
  .profile-links { white-space: normal; }
  .paper { grid-template-columns: 118px minmax(0, 1fr); gap: 17px; align-items: start; }
  .paper-cover { width: 118px; height: 145px; padding: 10px; }
  .cover-title { font-size: 14px; }
  .cover-index, .cover-footer { font-size: 9px; }
  .entry { display: block; }
  .entry-date { text-align: left; margin-top: 5px; }
  .footer { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .paper { display: block; }
  .paper-cover { margin-bottom: 15px; }
}
