/*!
Theme Name: APN
Theme URI: https://apn.works
Author: APN
Author URI: https://apn.works
Version: 1.0.0
*/

/* ------------------------------------------------------------ */

/*                        PSEUDO CLASSES                        */

/* ------------------------------------------------------------ */

:focus,
:focus-visible {
  outline: -webkit-focus-ring-color auto 0px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar {
  display: none;
  -webkit-appearance: none;
  width: 0 !important;
}

/* ------------------------------------------------------------ */

/*                           ELEMENTS                           */

/* ------------------------------------------------------------ */

*,
*::before,
*::after {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*::selection {
  background: transparent;
  color: rebeccapurple;
}

html {
  background: #fff;
  color: #000;
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
}

body.fade-out {
  opacity: 0;
}

ul,
ol,
menu {
  list-style: none;
}

a,
input,
button,
fieldset {
  all: unset;
}

a,
button {
  cursor: pointer;
}

/* Remove default browser focus outline/ring */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
fieldset:focus,
[tabindex]:focus {
  outline: none !important;
  box-shadow: none !important;
}

input[hidden]{
  display: none;
}

input::placeholder {
  color: inherit;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

figure.figure-media {
  display: flex;
  flex-direction: column;
  width: 100%;
}

figure.figure-media .has-aspect-ratio .media-container img,
figure.figure-media .has-aspect-ratio .media-container video {
	position: absolute;
	object-fit: cover;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

figure.figure-media .media-container {
  line-height: 0;
  position: relative;
}

picture,
img,
video {
  width: inherit;
}

/* ------------------------------------------------------------ */

/*                       UTILITY CLASSES                        */

/* ------------------------------------------------------------ */

.sans {
  font-family: 'NeueHaasGroteskText Pro', sans-serif;
  font-size: 11px;
}

.sans.medium {
  font-weight: 500;
}

.sans.bold {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.font-12 {
  font-size: 12px;
}

.font-14 {
  font-size: 14px;
}

.font-18 {
  font-size: 18px;
}

.font-20 {
  font-size: 20px;
}

.font-30 {
  font-size: 30px;
}

@media (min-width: 820px) {
  .font-14 {
    font-size: 16px;
  }
}
