/* Michal Masny - site styles */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 35px 20px 60px;
  background: #fff;
  color: #000;
  font-family: Avenir, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: -0.02em;
}

header, main {
  max-width: 550px;
  margin: 0 auto;
}

/* Name */
h1 {
  margin: 0 0 24px;
  color: rgb(65, 65, 65);
  font-size: 36px;
  font-weight: 400;
  line-height: 66px;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
}

/* Section headings */
h2 {
  margin: 0;
  padding: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 40px;
}

p {
  margin: 0;
  padding-bottom: 12px;
  text-align: justify;
  hyphens: auto;
}
p.plain { text-align: left; }

section + section { margin-top: 12px; }

/* Bio + photo */
.intro {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 26px;
  align-items: start;
  margin-bottom: 24px;
}
.intro img {
  grid-column: 2;
  grid-row: 1;
  width: 180px;
  height: auto;
}
.bio { grid-column: 1; grid-row: 1; }

/* Publications */
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pubs li {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding-bottom: 16px;
}

/* Links */
a, a:visited { color: steelblue; text-decoration: none; }
a:hover { border-bottom: 1px dotted #000; }

/* Phones */
@media (max-width: 600px) {
  h1 { font-size: 28px; line-height: 44px; letter-spacing: 3px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro img, .bio { grid-column: 1; }
  .intro img { grid-row: 1; justify-self: center; }
  .bio { grid-row: 2; }
  .pubs li { grid-template-columns: 1fr; }
  .year { font-weight: 400; }
  p { text-align: left; }
}
