/*
 * Media Queries
 */

/* All */
@media all {}

/* Printers */
@media print {}

/* Screens only / xs and up */
@media screen {}

/* xs-only */
@media screen and (max-width: 575.98px) {}

/* sm and up */
@media screen and (min-width: 576px) {}

/* sm-only */
@media screen and (min-width: 576px) and (max-width: 767.98px) {}

/* md and up */
@media screen and (min-width: 768px) {}

/* md-only */
@media screen and (min-width: 768px) and (max-width: 991.98px) {}

/* lg and up */
@media screen and (min-width: 992px) {}

/* lg-only */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {}

/* xl and up / xl-only */
@media screen and (min-width: 1200px) {}

/* Dark Mode */
@media (prefers-color-scheme: dark) {}



/*
 * Webfonts
 */

/* ibm-plex-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/ibm-plex-sans-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/ibm-plex-sans-v23-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/ibm-plex-sans-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/*
 * Variables
 */

:root {
  --size-content-inset-x: 10px;
  --size-content-inset-y: 8px;
  --size-document-inset: calc(var(--size-content-inset-x) * 3);
  --size-navigation-height: 51px;

  --font-sans-serif: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
  --font-family-brand: var(--font-sans-serif);

  --font-weight-bold: 700;
  --font-weight-medium: 500;
  --font-weight-regular: 400;

  --color-black: #000;
  --color-blue: #00f;
  --color-dark-gray: #757575;
  --color-gray: #ccc;
  --color-red: #f00;
  --color-white: #fff;

  --color-background: var(--color-white);
  --color-primary: var(--color-blue);
  --color-secondary: var(--color-gray);
  --color-text: var(--color-black);
}


/* Text selection */

mark,
::selection { background-color: var(--color-primary); color: var(--color-background); }

blockquote::selection,
#lead ::selection,
footer ::selection { background-color: var(--color-background); color: var(--color-primary); }


/*
 * Document
 */

html,
body {
  margin: 0;
  padding: 0;
  cursor: default;
  background: var(--color-background);
}

html {
  font-size: 62.5%;
}

body {
  font-size: 2rem;
  font-family: var(--font-family-brand);
  text-rendering: optimizeLegibility;
  color: var(--color-text)
}



/*
 * Tags
 */

address { margin: 1em 0; font-style: normal; }

strong { font-weight: var(--font-weight-bold); }

address,
p,
li {
  line-height: 3rem;
}

p {
  margin: .75rem 0;
  padding: 0;
}

a,
a:link,
a:visited {
  border-bottom: 1px solid var(--color-primary);
  text-decoration: none;
  color: var(--color-primary);

  &.inline {
    border-bottom: 0;
    color: var(--color-text);
  }
}

a:hover,
a:focus,
a:active {
  border-color: var(--color-text);
  color: var(--color-text);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: 4rem;

  &.bordered {
    margin-top: var(--size-document-inset);

    span {
        display: inline-block;
        padding-top: 2px;
        border-top: 5px solid var(--color-primary);
    }
  }
}

@media screen and (min-width: 768px) {
  h2.bordered { margin-top: 0; }
}

h3 { margin-top: 2em; font-size: 2.8rem; }

h3.subtitle {
  margin-top: 3rem;
  margin-bottom: .5rem;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
}

h4 { margin-top: 1em; font-size: 2.2rem; }

h5 { margin-top: 1em; font-size: 2rem; }

h6 { margin-top: 1em; font-size: 1.8rem; }



/* Badges */

.badge {
position: relative;
display: inline-block;
top: -8px;
margin-left: 4px;
padding: 3px 6px;
border-radius: 3px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--color-primary);
  color: var(--color-background);
}



/* Helper classes */

.text-center { text-align: center; }

[hidden],
.d-none,
hr { display: none; }

header ul,
nav.subnav ul,
ul.list-unstyled,
ul.list-inline,
ul.list-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

header ul li,
nav.subnav ul li,
ul.list-inline li { display: inline-block; }

ul.list-bullets {
  margin-bottom: 3rem;

  li {
    display: block;
    padding: var(--size-content-inset-x) var(--size-content-inset-y);
    border-bottom: 2px solid var(--color-text);
    font-weight: var(--font-weight-medium);

    &:last-child { /* border-bottom-width: 4px; */ }
  }
}



/* Header */

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

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  box-sizing: border-box;
  padding: var(--size-content-inset-y) var(--size-content-inset-x);

  /*border-bottom: 2px solid var(--color-secondary);*/

  background-color: rgba(255,255,255,.9);
  backdrop-filter: blur(2px);
  transition: background-color .2s ease-out;

  &:hover { background-color: rgba(255,255,255,1); }

  div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  h1 {
    display: inline-block;
    margin-right: 16px;
    font-weight: var(--font-weight-bold);
    font-size: 2rem;

    a,
    a:link,
    a:visited {
      border: 0;
      color: #000;
    }
  } /* /h1 */

  h2 {
    display: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.6rem;

    em { font-style: normal; }
  } /* /h2 */

  ul li {
    margin-right: 4px;

    &:last-child { margin-right: 0; }

    a,
    a:link,
    a:visited,
    span {
      border: 0;
      font-size: 1.6rem;
      font-weight: var(--font-weight-bold);

      &.active {
        border-botton: 1px solid var(--color-background);
        color: var(--color-text);
      } /* /a.active */
    } /* /a */
  } /* /ul li */

} /* /header */


/*
 * Content Area
 */

/* MQ xs and up */
@media screen {
  /* leave space for navigation */
  body { padding-top: var(--size-navigation-height); }

  main section {
    padding: var(--size-content-inset-x);

    /* leave space between sections */
    margin-top: var(--size-document-inset);
    padding-top: calc(var(--size-document-inset) * 2);

    &:first-child {
      margin-top: 0;
      padding-top: 0;
    }

    &:last-child {
      padding-bottom: calc(var(--size-document-inset) * 3);
    }
  }
}


/* MQ md and up */
@media screen and (min-width: 768px) {
  /* inset page + leave space for navigation */
  /* body { padding: var(--size-navigation-height) var(--size-document-inset) var(--size-document-inset); } */
  .area-centered,
  footer section,
  main {
    padding-left: var(--size-document-inset);
    padding-right: var(--size-document-inset);
  }

  /* unset MQ xs padding */
  main section {
    padding-left: 0;
    padding-right: 0;
  }
}


/* MQ lg and up */
@media screen and (min-width: 992px) {
  .area-centered,
  footer section,
  main {
    max-width: 960px;
    margin: 0 auto;
  }


  main {
    padding-top: calc(var(--size-document-inset) * 2);
    min-height: 60vh;
  } /* /main */
} /* /MQ lg and up */



/* Lead */

#lead {
  box-sizing: border-box;
  padding: 32px;
  background-color: var(--color-primary);
  color: var(--color-background);

  h2 {
    padding: 15% 0 15%;
    font-size: 3rem;

    span {
      font-weight: var(--font-weight-regular);
      color: var(--color-primary);
      color: var(--color-background);
    }
  }
}


/* Lead Text */

p.lead {
  margin: 32px 0;
  padding: 0;
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  text-align: center;

  small {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;

    a,
    a:link,
    a:visited {
      opacity: .75;
      border-bottom: 0;
      color: var(--color-text);
    }
  }
}


/* Notifications */

@media screen {
  .notification {
    margin-bottom: 1em;
    padding: var(--size-content-inset-x);
    border: 3px solid var(--color-red);
    color: var(--color-red);
    font-weight: var(--font-weight-medium);

    &::selection {
      background-color: var(--color-red);
      color: var(--color-background);
    }
  }
}

@media screen and (min-width: 992px) {
  .notification {
    max-width: 50%;
    margin: 0 auto;
  }
}


/* Buttons, Call To Action */

.call-to-action {
  margin: 32px 0 0;
  padding: 0;
  text-align: center;
}

button,
a.btn,
a.btn:link,
a.btn:visited,
.call-to-action a,
.call-to-action a:link,
.call-to-action a:visited {
  display: inline-block;
  padding: 8px 12px;
  /* border-radius: 4px; */
  border: 4px solid var(--color-primary);
  background-color: var(--color-background);
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);

  transition: all .2s ease-out;
}

button:hover,
button:focus,
button:active,
a.btn:hover,
a.btn:focus,
a.btn:active,
.call-to-action a:hover,
.call-to-action a:focus,
.call-to-action a:active {
  cursor: pointer; /* for <button> */
  background-color: var(--color-primary);
  color: var(--color-background);
}

button {
  margin-top: 16px;
}


/* Quote */

#section_quote {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-content: flex-end;
  align-items: flex-end;

  img {
    width: 128px;
    height: auto;
    margin-bottom: 70px;
    border-radius: 128px;
  }
}

@media screen and (min-width: 992px) {
  #section_quote img { margin-bottom: 24px; }
}

blockquote {
  position: relative;
  margin: 0 0 4px calc(20px + 12px);
  padding: var(--size-content-inset-x);
  background-color: var(--color-primary);
  font-size: 2.4rem;
  line-height: 3.4rem;
  font-weight: var(--font-weight-medium);
  text-align: right;
  color: var(--color-background);

  &:after {
    content: '';
    position: absolute;
    left: 0;
    top: 67%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: var(--color-primary);
    border-left: 0;
    margin-top: -20px;
    margin-left: -20px;
  }
}

.blockquote-caption {
  margin: 0;
  padding: 0;
  text-align: right;
  font-size: 1.8rem;
  line-height: 2.6rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}


/* Forms */

label {
  display: block;
  font-weight: var(--font-weight-medium);

  small { display: block; }
}

@media screen and (min-width: 992px) {
  label small { display: inline; }
}

.form-text {
  margin: -24px 0 24px;
}

label,
.form-text {
  &.is-invalid {
    color: var(--color-red);
  }
}

input[type=text],
input[type=email],
textarea {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 4px 0 24px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 3px solid var(--color-secondary);
  background-color: var(--color-background);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-brand);
  font-size: 2.4rem;
  line-height: 3.2rem;
  color: var(--color-text);

  &:focus,
  &:active {
    outline: none;
    border-color: var(--color-primary);
  }

  &.is-invalid {
    border-color: var(--color-red);

    &::selection {
      background-color: var(--color-red);
      color: var(--color-white);
    }
  }
}


/* Footer */

footer {
  padding: 32px;
  background-color: var(--color-primary);
  color: var(--color-background);

  a,
  a:link,
  a:visited {
    border: 0;
    color: var(--color-background);

    &.active { border-bottom: 1px solid var(--color-background); }
  }

  h1 { font-size: 3.2rem; }

  h2 { font-size: 2rem; }
  h2 em { font-style: normal; }

  p {
    margin: 0;
    padding: 0;
  }

  section {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* Footer navigation */
  ul { text-align: right; }
} /* </footer> */
