@import "../0-base/reset";
@import "../1-modules/mixins";
@import "../1-modules/colors";
@import "../1-modules/content";
@import "../1-modules/header";
@import "../1-modules/stickyAside";
@import "../1-modules/footer";

@import "./_list";
@import "./_email";
@import "./_letter";

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "kern", "liga", "clig", "calt";
  -ms-font-feature-settings: "kern", "liga", "clig", "calt";
  -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
  font-feature-settings: "kern", "liga", "clig", "calt";
  background-color: var(--bg);
  font-family: "Source Code Pro", "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link_subtle);

  &:hover {
    border-color: var(--text_subtle);
  }

  &:focus {
    outline: none;
    border-bottom: 1px solid var(--text_subtle);
  }
}

em,
i {
  font-weight: 400;
  font-style: italic;
}

b,
strong {
  font-weight: 700;
}

h1 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;

  @include breakpoint(s) {
    font-size: 30px;
  }
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  margin-top: $x_2;

  @include breakpoint(s) {
    font-size: 22px;
  }
}

header,
footer {
  @include siteWidth;
}

p {
  max-width: 580px;
  margin-bottom: $x_2;
}

p.divider {
  &:before {
    content: "";
    display: block;
    width: $x_6;
    border-bottom: 1px solid var(--link_subtle);
    margin: $x_2 0 $x_3;
    max-width: 720px;
  }

  line-height: 1.6;
  margin-bottom: $x_2;
}

ul, ol {
  list-style: inherit;
  max-width: 580px;
  margin-left: $x_3;
  margin-bottom: $x_2;
}

.copyToClipboard {
  cursor: pointer;
  opacity: 0.7;
  margin-left: 0.5em;

  &:hover {
    opacity: 1;
  }
}

#___gatsby,
#gatsby-focus-wrapper {
  display: contents;
}

.beta-bubble {
    background: var(--beta);
    border-radius: 8px;
    padding: 2px 5px;
    margin: 0 8px;
    font-weight: bold;
    font-size: 12px;
    color: var(--beta-text)
}

.emojicon {
    padding: 0 8px 0 0;
    font-size: 20px;
    &-city::after {
      content: var(--emojicon-city)
    }
}

.react-inserted {
  display: inline-block;
  p {
    margin-bottom: 0;
  }
}
