/*
  Contact details (site/templates/about.php): labelled rows in the same
  style as the notes list, under a heading with the plum rule used for
  the home page sections. On wide screens the labels form a left-hand
  column like the note dates.
*/
.contact {
  max-width: 48rem;
  margin-bottom: 3rem;
  /* leaves some air above the heading when jumped to via #yhteystiedot */
  scroll-margin-top: 2rem;
}
.contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.contact-title::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}
.contact-list {
  margin: 0;
}
.contact-row {
  display: grid;
  gap: .25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
}
.contact-row:last-child {
  border-bottom: 1px solid var(--color-border);
}
.contact-row dt {
  font-family: var(--font-family-mono);
  font-size: .875rem;
  font-weight: normal;
  color: var(--color-text-grey);
}
.contact-row dd {
  margin: 0;
  line-height: 1.55;
}
.contact-row ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  margin: 0;
}
.contact-row li {
  margin: 0;
}
.contact-row a {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s ease, text-decoration-thickness .2s ease;
}
.contact-row a:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}
/* The address people are most likely to want, set a size up. */
.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
}

@media screen and (min-width: 45rem) {
  .contact-row {
    grid-template-columns: 7.5rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}
