/* Base styles for any device */

body {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  line-height: 1.4;
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: 'DM Serif Text', serif;
  font-weight: 400;
}

main {
  padding: 40px 80px 40px;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100vh;
  float: left;
  width: calc(100% - 400px);
}

.logo {
  & img {
  }
  & figcaption {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
  }
}

section {
  margin: 40px 0 80px;
}

h1 {
  font-size: 54px;
  margin-bottom: 40px;
  line-height: 1.1;
}

.address {
  display: flex;
  align-items: center;
  column-gap: 12px;
  & img {
  }
  & figcaption {
    font-weight: 300;
    font-style: italic;
  }
}

p {
  margin: 20px 0;
}

.columns {
  display: flex;
  column-gap: 40px;
  margin: 40px 0;

  & > h3:not(:last-child) {
    margin-right: 80px;
  }
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  & strong {
    display: block;
    font-size: 54px;
    font-weight: normal;
    position: relative;

    &::before {
      content: '';
      position: absolute;
      width: 36px;
      height: 36px;
      left: -10px;
      top: 0;
      background-image: url('/images/autopsy-mark.svg');
      mix-blend-mode: darken;
      opacity: 0.8\9;
    }
  }
}

button {
  background-color: #000;
  padding: 12px 24px;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Fira Sans Condensed', sans-serif;
  cursor: pointer;

  &.button-secondary {
    background-color: #999;
  }
}

h2 {
  font-size: 36px;
  margin-bottom: 36px;
  line-height: 1.2;
}

ul {
  list-style: none;
  padding-left: 30px;
  & li {
    margin: 20px 0;
    position: relative;
    &::before {
      content: '';
      background-image: url('/images/autopsy-bullet.svg');
      width: 12px;
      height: 12px;
      position: absolute;
      left: -30px;
      top: 4px;
    }
  }
}

ol {
  list-style: none;
  margin-left: 30px;
  & li {
    margin: 12px 0;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

aside {
  width: 400px;
  background-color: #efefef;
  padding: 40px;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100vh;
  float: right;
}

h4 {
  font-size: 20px;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

article {
  margin: 32px 0 48px;
  & a:hover h3 {
    text-decoration: underline;
  }
  & p {
    font-weight: 300;
    margin-top: 12px;
  }
}

dialog {
  margin: 12px auto;
  border: none;
  padding: 40px;
  width: 100%;
  max-width: 750px;
  position: relative;

  & h1 {
    margin-bottom: 24px;
  }

  & .dialog-context:empty {
    display: none;
  }
}

.close {
  background-image: url('/images/close.svg');
  float: right;
  position: sticky;
  margin-right: -40px;
  margin-top: -40px;
  z-index: 100;
  top: -40px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 12px;
  box-sizing: content-box;
}

form {
  margin: 20px 0;

  & h3 {
    margin: 20px 0 8px;
  }

  & button {
    margin-top: 24px;
    width: 100%;
  }
}

label {
  display: inline-block;
  padding: 8px;
}

input[type='text'],
input[type='email'],
input[type='search'],
textarea {
  background: #efefef;
  border: none;
  height: 46px;
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  margin: 4px 0;

  aside & {
    background: #fff;
  }
}

textarea {
  min-height: 84px;
  min-width: 100%;
  max-width: 100%;
}

.subscribtion-form {
  display: flex;
  align-items: center;

  & input {
    flex-grow: 1;
  }

  & button {
    margin: 0;
    width: auto;
  }
}

.menu-opener {
  position: fixed;
  top: 0;
  right: 0;
  display: none;
}