:root {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 20px;
  font-family: Cambria, Times, "Times New Roman", serif;
  color: #000;
  font-weight: 400;
}

#wrapper {
  position: relative;
  max-width: 400px;
  margin: 16px auto;
  border: 2px solid #000;
  overflow: hidden;
  background-color: #fff;
}

h1 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

h1 strong {
  font-size: 50px;
}

h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
}

h3 {
  margin: 16px 0 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}

h2 strong {
  display: block;
}

p:not(:last-of-type) {
  margin-bottom: 16px;
}

header {
  padding: 16px;
  background-color: #FFF8A7;
}

article {
  padding: 16px 120px 16px 16px;
  background: #fff url('../images/foto.jpg') no-repeat center right;
}

footer {
  padding: 16px;
  background-color: #FFF8A7;
  text-align: center;
  font-weight: bold;
}

footer strong {
  font-size: 1.125em;
}

footer div>div {
  margin: 6px 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

span {
  white-space: nowrap;
}

@media all and (max-width:400px) {
  #wrapper {
    margin: 0;
    border: none;
  }

  :is(p, ul) {
    hyphens: auto;
    text-wrap: pretty;
  }

  br:not(footer br) {
    display: none;
  }

  article {
    padding: 16px 16px 220px 16px;
    background: #fff url('../images/foto.jpg') no-repeat center bottom 16px;
  }
}