@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Caudex&family=Open+Sans:wght@300&family=Syne&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caudex&family=Syne&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caudex&display=swap");
*, *:before, *:after {
  box-sizing: border-box;
}

html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: none;
}

footer, header, nav, section, main {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input {
  -webkit-appearance: none;
  border-radius: 0;
}

body, html {
  font-family: "Open Sans", sans-serif;
  color: #001423;
  font-size: 1rem;
  line-height: 1.4rem;
  -webkit-text-size-adjust: none;
}

h1, h2, h3, h4 {
  font-family: "Syne", sans-serif;
}

h1 {
  position: relative;
  text-transform: lowercase;
  font-size: 1.2rem;
  line-height: 2rem;
  color: #286388;
}
h1:before {
  content: "- ";
}

h2 {
  font-size: 1.3rem;
  line-height: 1.7rem;
  margin-bottom: calc(0.5 * 20px);
  color: #286388;
}

p {
  margin-bottom: calc(0.5 * 20px);
}
p:last-child {
  margin-bottom: 0;
}

a {
  position: relative;
  top: 0;
  color: #286388;
  text-decoration: none;
  cursor: pointer;
  transition: top 150ms ease-out;
}
a:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid #C3D0D8;
  transition: bottom 150ms ease-out;
}
a:hover:after {
  bottom: -1px;
}

q {
  font-family: "Caudex", serif;
  font-size: 1.6rem;
  line-height: 2rem;
  quotes: "“" "”" "‘" "’";
  text-align: center;
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

i {
  font-family: "Caudex", serif;
  font-style: italic;
}

.text--small {
  font-size: 0.875rem;
}

html,
body {
  width: 100%;
}

header {
  padding: calc(0.5 * 20px) 20px 0;
}
header ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  max-width: 960px;
  margin: 0 auto;
}
header ul li {
  padding-left: calc(0.5 * 20px);
}

article {
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "title" "background";
  height: calc(100vh - 2rem - calc(2 * 20px));
  min-height: 500px;
  width: 100%;
}
.hero__title {
  grid-area: title;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin: 0 calc(0.5 * 20px);
  overflow-x: hidden;
}
.hero__logo {
  width: 100%;
  max-width: 220px;
}
.hero__background {
  grid-area: background;
  position: relative;
}
.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}
.hero__image--active {
  opacity: 1;
}
.hero__content {
  grid-area: background;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero__content .block {
  padding-top: calc(0.5 * 20px);
  padding-bottom: calc(0.5 * 20px);
  background-color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.block {
  margin: 0 auto;
  padding: 20px;
  max-width: 700px;
}

.photoblock {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 0;
}
.photoblock__image {
  position: relative;
  flex: 1 1 160px;
}
.photoblock__image:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.photoblock__image--wide {
  flex: 1 1 320px;
}
.photoblock__image--wide:before {
  padding-top: 50%;
}
.photoblock__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  padding: 20px;
  background-color: #001423;
  color: #C3D0D8;
}
footer ul li a {
  color: #C3D0D8;
}
footer ul li a:after {
  border-color: #286388;
}

@media (min-width: 768px) {
  header {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "title title" "content background";
  }
  .hero__title {
    grid-area: title;
    margin: calc(0.5 * 20px);
  }
  .hero__content {
    grid-area: content;
  }
  .hero__background {
    grid-area: background;
  }
  footer ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    max-width: 960px;
    margin: 0 auto;
  }
  footer ul li {
    padding-left: calc(0.5 * 20px);
  }
  footer ul li:last-child {
    order: -1;
  }
}
