﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #200e00;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

#wrapper {
  max-width: 700px;
  margin: 16px auto;
  border: 2px solid #000;
  padding: 30px 16px 12px;
  background: #fff url(background.jpg) no-repeat;
  overflow: hidden;
}

:is(header, footer) {
  display: flex;
  gap: 16px;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding-right: 18px;
}

footer {
  padding: 8px 10px 0 0;
}

p:not(:last-of-type) {
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 4px;
  padding-left: 24px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  color: #005f9d;
}

h1:before {
  content: '\2010';
  float: left;
  font-size: 44px;
  text-indent: -24px;
  margin: -4px 0 0;
}

h2 {
  margin: 30px 0 16px;
  font-size: 25px;
  line-height: 29px;
  font-weight: 700;
}

a {
  color: #200e00;
  text-decoration: none;
  white-space: nowrap;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

@media all and (max-width: 700px) {
  #wrapper {
    margin: 0;
    border: none;
    hyphens: auto;
    background-size: cover;
  }
}

@media all and (max-width: 678px) {
  #wrapper {
    padding: 16px;
    background: #e5ebf5;
  }

  header {
    background: #eddee2;
    padding: 0;
    align-items: normal;
    margin: -16px -16px 0;
  }

  .logo {
    background: #f0f4f9;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header p {
    padding: 16px;
    flex: 1 1 0;
  }

  footer {
    background: #d7e5f0;
    margin: 0 -16px -16px;
    padding: 16px;
  }

  footer div {
    flex: 1 1 0;
  }

  br {
    display: none;
  }
}

@media all and (max-width: 595px) {
  :is(header, footer) {
    flex-direction: column;
  }

  header {
    gap: 0;
  }

  footer div {
    width: 100%;
  }
}