/* ---- Custom font ---- */
@font-face {
  font-family: 'Trattatello';
  src: url('../fonts/Trattatello.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ---- Reset-ish basics ---- */
html, body, img, a {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 90px 40px 20px;
  background-color: #ffffff;
  font-family: 'Trattatello', 'Brush Script MT', cursive;
  color: #111111;
  display: flex;
  justify-content: center;
}

/* ---- Page layout ---- */
.page {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Intro text ---- */
.intro {
  font-size: 1.70rem;
  line-height: 1.4;
  max-width: 420px;
  margin: 0 0 6px;
}

/* ---- Portrait ---- */
.portrait {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ---- Nav links ---- */
.links {
  margin: 24px 0 20px;
  font-size: 1.60rem;
}

.links a {
  color: #111111;
  text-decoration: none;
}

.links a:hover,
.links a:focus {
  display: inline-block;
  transform: rotate(-3deg);
}

/* ---- Contact / door ---- */
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #111111;
}

.door-wrap {
  position: relative;
  display: block;
  width: 140px;
}

.door {
  width: 140px;
  height: auto;
  display: block;
}

.door-open {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.contact-word {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.60rem;
}

.contact-link:hover .door-closed,
.contact-link:focus .door-closed {
  opacity: 0;
}

.contact-link:hover .door-open,
.contact-link:focus .door-open {
  opacity: 1;
}

.contact-link:hover .contact-word,
.contact-link:focus .contact-word {
  transform: rotate(-3deg);
}