/* ------------------------------------------------------------------------------
  base.css — fonts, icon glyphs, reset and the grid/utility classes the views use.

  Replaces Google Fonts, bootstrap.min.css, bootstrap-grid.min.css, ionicons and
  linearicons from the static site. Only what the markup uses is kept; values match
  the Bootstrap 4 defaults the old pages rendered with.
------------------------------------------------------------------------------ */

/* 1. Fonts (self-hosted, SIL OFL 1.1 — see ../fonts/OFL-*.txt). Latin subset. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-italic.woff2') format('woff2');
}

/* 2. Icon fonts, subset to the glyphs listed below. To add a glyph, re-subset the
      original font (pyftsubset --unicodes=...) and add its class here. The full fonts
      and their class lists are in git history under legacy/fonts and legacy/css. */

@font-face {
  font-family: 'Linearicons';
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url('../fonts/linearicons-subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Ionicons';
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url('../fonts/ionicons-subset.woff2') format('woff2');
}

[class^="icon-"],
[class*=" icon-"] {
  font-family: 'Linearicons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-server:before { content: "\e666"; }
.icon-smartphone-embed:before { content: "\e7a9"; }
.icon-laptop-phone:before { content: "\e7ae"; }
.icon-window:before { content: "\e7b2"; }
.icon-sync:before { content: "\e8da"; }
.icon-enter-left:before { content: "\e8f9"; }
.icon-cross2:before { content: "\e935"; }

.ion-social-github:before,
.ion-social-linkedin:before {
  display: inline-block;
  font-family: 'Ionicons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ion-social-github:before { content: "\f233"; }
.ion-social-linkedin:before { content: "\f239"; }

/* 3. Reset (Bootstrap 4 reboot, trimmed) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  text-align: left;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

blockquote,
figure {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small,
.small {
  font-size: 80%;
  font-weight: 400;
}

a {
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  text-decoration: underline;
}

img {
  vertical-align: middle;
  border-style: none;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

button {
  border-radius: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="submit"] {
  -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* 4. Grid */

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-sm-6, .col-sm-12,
.col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-12,
.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7,
.col-xl-3, .col-xl-4, .col-xl-8 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .offset-xl-1 { margin-left: 8.333333%; }
}

/* 5. Utilities */

.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.overflow-hidden { overflow: hidden !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .mt-md-5 { margin-top: 3rem !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .pt-md-5 { padding-top: 3rem !important; }
}

@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .mt-lg-0 { margin-top: 0 !important; }
}

@media (min-width: 1200px) {
  .mt-xl-0 { margin-top: 0 !important; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
