*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: none;
  text-decoration: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
  border: none;
  list-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

*:visited,
*:active {
  color: inherit
}

@font-face {
  font-family: "Campton";
  src: url("fonts/ffa2a131-998b-4420-8aa9-7526939a00ef.woff2") format("woff2")
}

@font-face {
  font-family: "Didot LT";
  src: url("fonts/650d0d58-e300-4679-853a-3e756a508990.woff2") format("woff2")
}

:root {
  --c-bg: hsl(1, 17%, 95%);
  --c-text: hsl(0, 15%, 55%);
  --font-family: "Campton", sans-serif;
  --font-serif: "Didot LT", Didot, serif;
  --font-size: 17px;
  --font-lineheight: 26px;
  --font-weight: 400;
  --font-style: normal;
  --font-scale-xs: 0.79;
  --font-scale-s: 0.889;
  --font-scale-m: 1.125;
  --font-scale-l: 1.226;
  --font-scale-xl: 1.2;
  --font-scale-xxl: 3;
  --l-regular: 24rem;
  --l-wide: 36rem;
  --l-archive: 37rem;
  --l-archive-wide: 57rem;
  --l-text: 19rem;
  font-size: var(--font-lineheight);
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-style: var(--font-style);
  background: var(--c-bg);
  color: var(--c-text)
}

@media (min-width: 700px) {
  :root {
    --font-size: 21px;
    --font-lineheight: 34px
  }
}

@media (min-width: 700px) {
  :root {
    --font-scale-xl: 1.35
  }
}


@media all and (max-width: 768px) {
  h1 {
    font-size: calc(1.5rem * var(--smaller));
  }
  
  li {
    font-size: calc(1.125rem * var(--smaller));
  }
  
  li span {
    font-size: calc(1.875rem * var(--smaller));
  }
}

li {
  display: inline-block;
  font-size: 1.5em;
  list-style-type: none;
  padding: 1em;
  text-transform: uppercase;
}

li span {
  display: block;
  font-size: 4.5rem;
}

::-moz-selection {
  background: var(--c-text);
  color: var(--c-bg)
}

::selection {
  background: var(--c-text);
  color: var(--c-bg)
}

body,
html {
  width: 100%;
  height: 100%
}

body *,
html * {
  font-size: var(--font-size);
  letter-spacing: 0.05em
}

body {
  overflow: auto
}

.opening {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  position: relative
}

.opening::before,
.opening::after {
  content: "";
  display: block;
  width: 90%;
  height: 35%;
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  left: 0;
  right: 0;
  margin: 0 auto
}

.opening::before {
  background-position: center bottom;
  top: 5vmin;
  background-image: url("../res/illustration_1.jpg")
}

.opening::after {
  background-position: center top;
  bottom: 5vmin;
  background-image: url("../res/illustration_2.jpg")
}

.opening-title {
  /* display: -webkit-box;
  display: -webkit-flex;
  display: flex; */
  text-align: center;
  line-height: 0.8;
  margin: auto;
  font-family: var(--font-serif);
  font-size: 7vmin
}

.opening-title span {
  display: inline;
  font-size: inherit;
  letter-spacing: 0.2em
}

.opening-title span:nth-child(2) {
  margin: 0 .3em
}

.text {
  text-align: center;
  text-transform: uppercase;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 0 1rem
}

@media (min-width: 700px) {
  .text {
    margin-top: 4rem;
    margin-bottom: 4rem
  }
}

.text .optional br {
  display: none
}

@media (min-width: 1000px) {
  .text .optional br {
    display: initial
  }
}

.text p:not(:last-child) {
  margin-bottom: 1rem
}

.opening+.text {
  margin-top: 0
}

@media (min-width: 700px) {
  .opening+.text {
    margin-top: 4rem
  }
}

.text-big {
  font-size: calc(var(--font-size) * var(--font-scale-xl));
  line-height: 1.2rem;
  letter-spacing: 0.1em;
  letter-spacing: 0.1em
}

.text-big:not(:last-child) {
  margin-bottom: .5rem
}

.text a {
  background: -webkit-linear-gradient(bottom, var(--c-text) 1px, transparent 1px);
  background: linear-gradient(to top, var(--c-text) 1px, transparent 1px);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-transition-property: color, background-size;
  transition-property: color, background-size;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
  -webkit-transition-timing-function: ease-in-out;
  transition-timing-function: ease-in-out
}

.text a:hover {
  background-size: 100% 100%
}

.date {
  margin-top: 4rem;
  margin-bottom: 3rem;
  padding: 0 1rem
}

.date-image {
  display: block;
  width: 100%;
  height: auto
}

@media (min-width: 500px) {
  .date-image {
    height: 2rem;
    width: auto;
    margin: 0 auto
  }
}

.date-caption {
  position: absolute;
  top: -999999px;
  left: -999999px
}

.illustration-container {
  max-width: 22rem;
  margin: 2rem auto;
  padding: 0 1rem
}

@media (min-width: 700px) {
  .illustration-container {
    margin: 4rem auto
  }
}

.illustration-container-small {
  max-width: 16rem
}

.illustration-container-final {
  max-width: 8rem;
  margin-bottom: 0;
  padding-bottom: 2rem
}

@media (min-width: 700px) {
  .illustration-container-final {
    padding-bottom: 4rem
  }
}

.illustration {
  display: block;
  width: 100%;
  height: auto
}